1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

scripts: unified and renamed wallpaper script(s)

This commit is contained in:
2024-05-18 05:01:46 +02:00
parent f662768a04
commit 0ef1b10781
8 changed files with 38 additions and 58 deletions

View File

@@ -8,9 +8,9 @@ extern=HDMI2
case "$1" in
toggle) (xrandr | grep "$extern disconnected")
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && wallpaper) & exit)
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && wallpaper desktop) & exit)
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
wallpaper
wallpaper desktop
;;
*) cat << EOF
monitor: cli script to enable and disable monitors.