Update scripts.
This commit is contained in:
parent
9eb0fa22a9
commit
614e626902
12 changed files with 201 additions and 101 deletions
72
gaming-time
72
gaming-time
|
@ -1,53 +1,53 @@
|
|||
#!/bin/sh
|
||||
|
||||
disableCronJobs () {
|
||||
crontab -l | sed '2 s/./#&/' | crontab
|
||||
disableCronJobs() {
|
||||
crontab -l | sed '2 s/./#&/' | crontab
|
||||
}
|
||||
|
||||
enableCronJobs () {
|
||||
crontab -l | sed '2s/^.//' | crontab
|
||||
enableCronJobs() {
|
||||
crontab -l | sed '2s/^.//' | crontab
|
||||
}
|
||||
|
||||
wayland_off () {
|
||||
start-program wbg ~/pics/wallpapers/spooky_spill.jpg
|
||||
start-program waybar
|
||||
wayland_off() {
|
||||
start-program wbg ~/pics/wallpapers/spooky_spill.jpg
|
||||
start-program waybar
|
||||
}
|
||||
|
||||
wayland_on () {
|
||||
kill-nicely wbg
|
||||
kill-nicely waybar
|
||||
wayland_on() {
|
||||
kill-nicely wbg
|
||||
kill-nicely waybar
|
||||
}
|
||||
|
||||
x11_off () {
|
||||
start-program picom
|
||||
# start-program polybar top -r
|
||||
start-program xmobar ~/.config/xmobar/xmobarrc
|
||||
start-program unclutter --timeout 5
|
||||
toggle-xrandr on
|
||||
sleep 2
|
||||
start-program trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 24 -l
|
||||
x11_off() {
|
||||
start-program picom
|
||||
# start-program polybar top -r
|
||||
start-program xmobar ~/.config/xmobar/xmobarrc
|
||||
# start-program unclutter --timeout 5
|
||||
toggle-xrandr on
|
||||
sleep 2
|
||||
start-program trayer --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 24 -l
|
||||
}
|
||||
|
||||
x11_on () {
|
||||
kill-nicely picom
|
||||
# kill-nicely polybar
|
||||
kill-nicely xmobar
|
||||
kill-nicely trayer-srg
|
||||
kill-nicely unclutter
|
||||
toggle-xrandr off
|
||||
x11_on() {
|
||||
kill-nicely picom
|
||||
# kill-nicely polybar
|
||||
kill-nicely xmobar
|
||||
kill-nicely trayer
|
||||
# kill-nicely unclutter
|
||||
toggle-xrandr off
|
||||
}
|
||||
|
||||
if [ -f "$HOME"/.cache/gaming.lock ]; then
|
||||
[ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_off || x11_off
|
||||
start-program transmission-daemon
|
||||
start-program syncthing
|
||||
rm "$HOME"/.cache/gaming.lock
|
||||
quick-notify "Gaming Time" "OFF"
|
||||
[ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_off || x11_off
|
||||
# start-program transmission-daemon
|
||||
start-program syncthing
|
||||
rm "$HOME"/.cache/gaming.lock
|
||||
quick-notify "Gaming Time" "OFF"
|
||||
else
|
||||
[ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_on || x11_on
|
||||
transmission-remote --exit
|
||||
syncthing cli operations shutdown
|
||||
kill-nicely ferdium
|
||||
touch "$HOME"/.cache/gaming.lock
|
||||
quick-notify "Gaming Time" "ON"
|
||||
[ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_on || x11_on
|
||||
# transmission-remote --exit
|
||||
syncthing cli operations shutdown
|
||||
kill-nicely ferdium
|
||||
touch "$HOME"/.cache/gaming.lock
|
||||
quick-notify "Gaming Time" "ON"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue