Guest User

Untitled

a guest
Jan 16th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
  4. eval `dbus-launch --sh-syntax --exit-with-session`
  5. fi
  6.  
  7. xrdb -merge ~/.Xresources
  8. #feh --bg-fill ~/img/wallpapers/blue_butterflies.jpg
  9. #compton --config .config/compton.conf &
  10. #killall polybar
  11. #polybar example -r &
  12.  
  13.  
  14. if upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -P "(?<=state:)\s*(charging|fully-charged)"; then
  15. swaymsg "workspace 8; exec /usr/bin/termite -e 'mutt'"
  16. swaymsg "workspace 9; spotify &"
  17. swaymsg "workspace 7; exec /usr/bin/termite -e 'vtop -t seti'"
  18. swaymsg "workspace 7; exec /usr/bin/termite -e 'slurm -z -i wlp3s0 -L -t foo'"
  19. fi
  20.  
  21. # xrandr --output eDP1 --auto && xrandr --output DP2 --above eDP1 && feh --bg-fill img/wallpapers/blue_butterflies.jpg
Add Comment
Please, Sign In to add comment