diff --git a/.scripts/changebg b/.scripts/changebg index 9a6c6f1..f664c29 100755 --- a/.scripts/changebg +++ b/.scripts/changebg @@ -28,7 +28,7 @@ PATH_TO_IMG="${args[0]}" echo $PATH_TO_IMG wal -i $PATH_TO_IMG -feh --bg-center $PATH_TO_IMG +feh --bg-fill $PATH_TO_IMG # overwrite .Xresources file cat ~/.cache/wal/colors.Xresources > ~/.Xresources @@ -41,7 +41,7 @@ xrdb -merge ~/.Xresources # aur package is themix-full-git # generate new gtk themes -#/opt/oomox/plugins/theme_oomox/change_color.sh ~/.cache/wal/colors-oomox -o Wal -t ~/.themes/ -d true -m gtk3 +/opt/oomox/plugins/theme_oomox/change_color.sh ~/.cache/wal/colors-oomox -o Wal -t ~/.themes/ -d true -m gtk3 xmobar_change killall xmobar diff --git a/.scripts/poweroff b/.scripts/poweroff old mode 100644 new mode 100755 diff --git a/.scripts/toggleMonitor b/.scripts/toggleMonitor new file mode 100755 index 0000000..e227c37 --- /dev/null +++ b/.scripts/toggleMonitor @@ -0,0 +1,12 @@ +#!/bin/bash + +primary=DP-1 +secondary=HDMI-0 + +if xrandr | grep "$secondary connected 1920x1080"; then + echo "Turing second monitor off" + xrandr --output "$secondary" --off +else + echo "Turing second monitor on" + xrandr --output "$secondary" --left-of "$primary" --auto +fi