More docking scripting
This commit is contained in:
parent
5cd31af69d
commit
6d4cfc298b
|
@ -183,9 +183,7 @@ bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures
|
||||||
### Rofi234
|
### Rofi234
|
||||||
bindsym $mod+d exec --no-startup-id rofi -show drun -config ~/.config/rofi/config
|
bindsym $mod+d exec --no-startup-id rofi -show drun -config ~/.config/rofi/config
|
||||||
|
|
||||||
#Bars
|
|
||||||
exec --no-startup-id ~/.config/polybar/polybar.sh
|
|
||||||
|
|
||||||
# System Scripts
|
# System Scripts
|
||||||
|
exec --no-startup-id ~/.config/i3/scripts/undock.sh
|
||||||
exec --no-startup-id ~/.config/i3/scripts/applets.sh
|
exec --no-startup-id ~/.config/i3/scripts/applets.sh
|
||||||
exec --no-startup-id ~/.config/i3/scripts/music.sh
|
exec --no-startup-id ~/.config/i3/scripts/music.sh
|
||||||
|
|
|
@ -1,6 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. ~/.config/i3/env
|
. ~/.config/i3/env
|
||||||
|
|
||||||
|
if [[ $(iwgetid -r) = *adazio* ]];
|
||||||
|
then
|
||||||
|
echo "@Work"
|
||||||
|
~/.config/i3/scripts/work-layout.sh &
|
||||||
|
fi
|
||||||
|
if [[ $(iwgetid -r) = *moerks.dk* ]];
|
||||||
|
then
|
||||||
|
echo "@Home"
|
||||||
|
~/.config/i3/scripts/home-layout.sh &
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $PRIMARY
|
||||||
|
echo $SECONDARY
|
||||||
|
echo $LAPTOP
|
||||||
|
|
||||||
|
sleep 1
|
||||||
i3-msg "workspace 1: Comms; move workspace to output $SECONDARY"
|
i3-msg "workspace 1: Comms; move workspace to output $SECONDARY"
|
||||||
i3-msg "workspace 2: Web; move workspace to output $PRIMARY"
|
i3-msg "workspace 2: Web; move workspace to output $PRIMARY"
|
||||||
i3-msg "workspace 3: IDE; move workspace to output $PRIMARY"
|
i3-msg "workspace 3: IDE; move workspace to output $PRIMARY"
|
||||||
|
@ -11,18 +27,3 @@ i3-msg "workspace 7: OC; move workspace to output $PRIMARY"
|
||||||
i3-msg "workspace 8: Logs; move workspace to output $PRIMARY"
|
i3-msg "workspace 8: Logs; move workspace to output $PRIMARY"
|
||||||
i3-msg "workspace 9: Terminals; move workspace to output $PRIMARY"
|
i3-msg "workspace 9: Terminals; move workspace to output $PRIMARY"
|
||||||
i3-msg "workspace 10: Terminals; move workspace to output $PRIMARY"
|
i3-msg "workspace 10: Terminals; move workspace to output $PRIMARY"
|
||||||
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
if [[ $(iwgetid -r) = *adazio* ]];
|
|
||||||
then
|
|
||||||
echo "@Work"
|
|
||||||
. ~/.config/i3/scripts/work-layout.sh
|
|
||||||
fi
|
|
||||||
if [[ $(iwgetid -r) = *moerks.dk* ]];
|
|
||||||
then
|
|
||||||
echo "@Home"
|
|
||||||
. ~/.config/i3/scripts/home-layout.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg
|
|
|
@ -12,3 +12,4 @@ export HDPI_PROFILE="laptop"
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
~/.config/polybar/home-polybar.sh
|
~/.config/polybar/home-polybar.sh
|
||||||
|
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg
|
|
@ -11,4 +11,5 @@ export LDPI_PROFILE="laptop"
|
||||||
export HDPI_PROFILE="laptop"
|
export HDPI_PROFILE="laptop"
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
~/.config/polybar/laptop-polybar.sh
|
~/.config/polybar/laptop-polybar.sh &
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. ~/.config/i3/env
|
. ~/.config/i3/env
|
||||||
|
|
||||||
|
~/.config/i3/scripts/laptop-layout.sh &
|
||||||
|
|
||||||
i3-msg "workspace 1: Comms; move workspace to output $LAPTOP"
|
i3-msg "workspace 1: Comms; move workspace to output $LAPTOP"
|
||||||
i3-msg "workspace 2: Web; move workspace to output $LAPTOP"
|
i3-msg "workspace 2: Web; move workspace to output $LAPTOP"
|
||||||
i3-msg "workspace 3: IDE; move workspace to output $LAPTOP"
|
i3-msg "workspace 3: IDE; move workspace to output $LAPTOP"
|
||||||
|
@ -11,8 +13,3 @@ i3-msg "workspace 7: OC; move workspace to output $LAPTOP"
|
||||||
i3-msg "workspace 8: Logs; move workspace to output $LAPTOP"
|
i3-msg "workspace 8: Logs; move workspace to output $LAPTOP"
|
||||||
i3-msg "workspace 9: Terminals; move workspace to output $LAPTOP"
|
i3-msg "workspace 9: Terminals; move workspace to output $LAPTOP"
|
||||||
i3-msg "workspace 10: Terminals; move workspace to output $LAPTOP"
|
i3-msg "workspace 10: Terminals; move workspace to output $LAPTOP"
|
||||||
|
|
||||||
sleep 1
|
|
||||||
. ~/.config/i3/scripts/laptop-layout.sh
|
|
||||||
|
|
||||||
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg
|
|
|
@ -12,3 +12,4 @@ export HDPI_PROFILE="laptop"
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
~/.config/polybar/work-polybar.sh
|
~/.config/polybar/work-polybar.sh
|
||||||
|
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg
|
|
@ -2,3 +2,4 @@
|
||||||
|
|
||||||
killall polybar
|
killall polybar
|
||||||
polybar topbar1 -c ~/.config/polybar/laptop-config &
|
polybar topbar1 -c ~/.config/polybar/laptop-config &
|
||||||
|
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg &
|
Loading…
Reference in New Issue