Added sublime configs. Added startup layout scripts

This commit is contained in:
jfm 2018-05-04 08:59:45 +02:00
parent fef8875ec7
commit 2c51dad6ca
6 changed files with 29 additions and 8 deletions

View File

@ -426,3 +426,4 @@ mode "$mode_gaps_outer" {
#### Custom Config #### Custom Config
exec --no-startup-id dockd --daemon exec --no-startup-id dockd --daemon
exec --no-startup-id systemctl --user start mopidy exec --no-startup-id systemctl --user start mopidy
exec --no-startup-id /home/jfm/.i3/scripts/start_layout.sh

View File

@ -2,13 +2,11 @@
if [[ $(iwgetid -r) = *adazio* ]]; if [[ $(iwgetid -r) = *adazio* ]];
then then
echo "@Work"
~/.i3/scripts/work-monitors.sh & ~/.i3/scripts/work-monitors.sh &
~/.i3/scripts/work-layout.sh & ~/.i3/scripts/work-layout.sh &
fi fi
if [[ $(iwgetid -r) = *moerks.dk* ]]; if [[ $(iwgetid -r) = *moerks.dk* ]];
then then
echo "@Home"
~/.i3/scripts/home-monitors.sh & ~/.i3/scripts/home-monitors.sh &
~/.i3/scripts/home-layout.sh & ~/.i3/scripts/home-layout.sh &
fi fi
@ -16,10 +14,6 @@ fi
sleep 1 sleep 1
. ~/.i3/env . ~/.i3/env
echo $PRIMARY
echo $SECONDARY
echo $LAPTOP
sleep 1 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"

12
i3/.i3/scripts/start_layout.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
CONNECTED_CMD="xrandr --query | grep connected | grep -v disconnected | wc -l"
monitors=`eval $CONNECTED_CMD`
echo $monitors
if [ $monitors -gt 1 ]
then
~/.i3/scripts/dock.sh &
else
~/.i3/scripts/undock.sh &
fi

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
. ~/.i3/env . ~/.i3/env
i3-msg "workspace 8:Media; append_layout ~/.i3/layouts/workspace8-media.json" i3-msg "workspace 8:Media; append_layout ~/.i3/layouts/workspace8-media.json"
i3-msg "workspace 8:Media; exec urxvt -name newsboat -e newsboat" i3-msg "workspace 8:Media; exec urxvt -fn xft:Terminus:pixelsize=20 -name newsboat -e newsboat"
i3-msg "workspace 8:Media; exec urxvt -name ncmpcpp -e ncmpcpp" i3-msg "workspace 8:Media; exec urxvt -fn xft:Terminus:pixelsize=20 -name ncmpcpp -e ncmpcpp"
i3-msg "workspace 8:Media; move workspace to output $LAPTOP" i3-msg "workspace 8:Media; move workspace to output $LAPTOP"

View File

@ -0,0 +1,8 @@
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"ignored_packages":
[
"Vintage"
],
"theme": "Material-Theme-Darker.sublime-theme"
}

View File

@ -0,0 +1,6 @@
// These settings override both User and Default settings for the Python syntax
{
"tab_size": 4,
"translate_tabs_to_spaces": true,
"rulers": [80]
}