Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3c60117501 | |||
|
e9519cd5b4 |
37
animatedWallpaper
Executable file
37
animatedWallpaper
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PIDFILE="/var/run/user/$UID/bg.pid"
|
||||||
|
|
||||||
|
# Declare PIDs array
|
||||||
|
declare -a PIDs
|
||||||
|
|
||||||
|
_screen() {
|
||||||
|
# g specify geometry heightxwidth+xcoord+ycoord
|
||||||
|
# ni Ignore Input
|
||||||
|
# ov For Desktop background
|
||||||
|
# fs fullscreen
|
||||||
|
# vo=gpu gpu accelerated video output
|
||||||
|
# hwdec=vdpau use vdpau for gpu acceleration
|
||||||
|
xwinwrap -ov -ni -g "$1" -- mpv -fs\
|
||||||
|
--no-stop-screensaver\
|
||||||
|
--vo=gpu --hwdec=vaapi\
|
||||||
|
--loop-file --no-audio --no-osc --no-osd-bar\
|
||||||
|
-wid WID --no-input-default-bindings\
|
||||||
|
"$2" &
|
||||||
|
# Needs more testing not in fullscreen mode
|
||||||
|
#xwinwrap -ov -ni -g "$1" -- sxiv "$2" -f -b -a -e WID &
|
||||||
|
PIDs+=($!)
|
||||||
|
}
|
||||||
|
|
||||||
|
while read p; do
|
||||||
|
[[ $(ps -p "$p" -o comm=) == "xwinwrap" ]] && kill -9 "$p";
|
||||||
|
done < $PIDFILE
|
||||||
|
|
||||||
|
sleep 0.5
|
||||||
|
|
||||||
|
for i in $(xrandr -q | grep ' connected' | grep -oP '\d+x\d+\+\d+\+\d+')
|
||||||
|
do
|
||||||
|
_screen "$i" "$1"
|
||||||
|
done
|
||||||
|
|
||||||
|
printf "%s\n" "${PIDs[@]}" > $PIDFILE
|
9
click_test.sh
Executable file
9
click_test.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
xdotool search --class "Minecraft\*\ 1\.16\.4" mousemove --window %1 950 350 click 1;
|
||||||
|
while true; do
|
||||||
|
sleep 1;
|
||||||
|
xdotool search --class "Minecraft\*\ 1\.16\.4" click 1;
|
||||||
|
echo "click";
|
||||||
|
done
|
||||||
|
|
20
dmenu_quit
Executable file
20
dmenu_quit
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
test=$(echo -e "Shutdown\nLogout\nSuspend\nReboot\nCancel" | dmenu -i -p "$1" -h 25)
|
||||||
|
|
||||||
|
case "$test" in
|
||||||
|
Shutdown)
|
||||||
|
poweroff
|
||||||
|
;;
|
||||||
|
Logout)
|
||||||
|
#herbstclient quit
|
||||||
|
killall xinit
|
||||||
|
;;
|
||||||
|
Suspend)
|
||||||
|
systemctl suspend
|
||||||
|
;;
|
||||||
|
Reboot)
|
||||||
|
reboot
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
9
launch_multimc_instance
Executable file
9
launch_multimc_instance
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
instance=$(ls -I _MMC_TEMP -I instgroups.json ~/.local/share/multimc/instances | dmenu -i -p "Choose minecraft instance: " -h 25)
|
||||||
|
|
||||||
|
multimc --launch "$instance"
|
||||||
|
|
5
udmenu
Executable file
5
udmenu
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
grep -v "#" ~/.local/bin/unicode | dmenu -i -h 25 -l 20 -fn "JoyPixels:pixelsize=10" | awk '{print $1}' | tr -d '\n' | xclip -selection clipboard
|
||||||
|
|
||||||
|
pgrep -x dunst > /dev/null && notify-send "$(xclip -o -selection clipboard) copied to clipboard"
|
Loading…
Reference in New Issue
Block a user