diff --git a/home/scripts/.local/scripts/toggl-current b/home/scripts/.local/scripts/toggl-current index 3feaf7d..a56678e 100755 --- a/home/scripts/.local/scripts/toggl-current +++ b/home/scripts/.local/scripts/toggl-current @@ -1,7 +1,6 @@ #!/bin/sh #your toggl api token -TOGGL_API_TOKEN=7b42e9971bd0e27f68f9270a446ed7d2 res=$(curl -u $TOGGL_API_TOKEN:api_token \ -X GET https://api.track.toggl.com/api/v8/time_entries/current) echo $res diff --git a/home/xmonad/.config/xmobar/bin/xmobarstatus b/home/xmonad/.config/xmobar/bin/xmobarstatus index 016347b..3975d9e 100755 --- a/home/xmonad/.config/xmobar/bin/xmobarstatus +++ b/home/xmonad/.config/xmobar/bin/xmobarstatus @@ -75,7 +75,7 @@ esac diskspace () { #might be another /dev/sda... - echo "—{ "$(df -h | grep sda2 | grep -oh "[0-9]*%")"}" + echo "—{ "$(df -h | grep $MAIN_DISK | grep -oh "[0-9]*%")"}" } wifi () diff --git a/home/xmonad/.config/xmobar/bin/xmobarstatus2 b/home/xmonad/.config/xmobar/bin/xmobarstatus2 index 37f7f7f..47b910f 100755 --- a/home/xmonad/.config/xmobar/bin/xmobarstatus2 +++ b/home/xmonad/.config/xmobar/bin/xmobarstatus2 @@ -73,7 +73,7 @@ esac diskspace () { #might be another /dev/sda... - echo "—{ "$(df -h | grep sda2 | grep -oh "[0-9]*%")"}" + echo "—{ "$(df -h | grep $MAIN_DISK | grep -oh "[0-9]*%")"}" } wifi () diff --git a/home/xmonad/.xmonad/xmonad.hs b/home/xmonad/.xmonad/xmonad.hs index a33d9a3..f22ef7e 100644 --- a/home/xmonad/.xmonad/xmonad.hs +++ b/home/xmonad/.xmonad/xmonad.hs @@ -411,8 +411,9 @@ myStartupHook = do spawnOnce "syncthing" spawnOnce "sh ssh-agent bash ; ssh-add ~/.ssh/arch" spawnOnce "eval '$(ssh-agent -s)'; ssh-add ~/.ssh/id_rsa" - spawnOnce ("enact --pos left --watch &") - spawnOnce ("xrandr --output HDMI1 --left-of eDP1&") + spawnOnce ("$HOME/.cargo/bin/enact --watch --pos left") + spawnOnce ("sleep 1; $HOME/.cargo/bin/enact --pos left") + -- spawnOnce ("xrandr --output HDMI1 --left-of eDP1&") spawnOnce (home ++ ".local/scripts/status/launch &") spawnOnce (home ++ ".local/scripts/touchpad.sh &") -- spawnOnce ("cd /home/horhik/Freenet/downloads/fms; ./fms --daemon &")