dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 8cda0ab28870e4fed593ad1c1dd99c4398007f8b
parent 8d1a36754f0d45efdb002b3b39eb6aa5c5f1b82c
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 29 Aug 2020 06:47:21 -0400

my: screen and wallpaper updates

Diffstat:
Mbin/my | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/my b/bin/my @@ -109,6 +109,10 @@ case $command in exec xset dpms force off ;; wallpaper) + if my processes | grep rio >/dev/null 2>&1 + then + return + fi xsetroot -solid "#444444" [ -x "$HOME/.fehbg" ] && "$HOME/.fehbg" >> $log 2>&1 ;; @@ -187,7 +191,7 @@ case $command in # defer to local script if it exists if [ -x "$HOME/bin/my-screen.local" ] then - exec "$HOME/bin/my-screen.local" + exec "$HOME/bin/my-screen.local" "$@" fi xrandr_options=`xrandr -q | grep ' disconnected' | awk '{print $1}'` for option in $xrandr_options @@ -219,7 +223,7 @@ case $command in [ $option != $selection ] && xrandr --output $option --off done fi - exec my wallpaper + my wallpaper ;; brightness) if type xbacklight > /dev/null 2>&1