diff --git a/i3/.i3/config b/i3/.i3/config index 80cd6b8..63095f6 100644 --- a/i3/.i3/config +++ b/i3/.i3/config @@ -426,3 +426,4 @@ mode "$mode_gaps_outer" { #### Custom Config exec --no-startup-id dockd --daemon exec --no-startup-id systemctl --user start mopidy +exec --no-startup-id /home/jfm/.i3/scripts/start_layout.sh \ No newline at end of file diff --git a/i3/.i3/scripts/dock.sh b/i3/.i3/scripts/dock.sh index cae41d6..c0ec821 100755 --- a/i3/.i3/scripts/dock.sh +++ b/i3/.i3/scripts/dock.sh @@ -2,13 +2,11 @@ if [[ $(iwgetid -r) = *adazio* ]]; then - echo "@Work" ~/.i3/scripts/work-monitors.sh & ~/.i3/scripts/work-layout.sh & fi if [[ $(iwgetid -r) = *moerks.dk* ]]; then - echo "@Home" ~/.i3/scripts/home-monitors.sh & ~/.i3/scripts/home-layout.sh & fi @@ -16,10 +14,6 @@ fi sleep 1 . ~/.i3/env -echo $PRIMARY -echo $SECONDARY -echo $LAPTOP - sleep 1 i3-msg "workspace 1:Comms; move workspace to output $SECONDARY" i3-msg "workspace 2:Web; move workspace to output $PRIMARY" diff --git a/i3/.i3/scripts/start_layout.sh b/i3/.i3/scripts/start_layout.sh new file mode 100755 index 0000000..d2c8513 --- /dev/null +++ b/i3/.i3/scripts/start_layout.sh @@ -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 diff --git a/i3/.i3/workspaces/ws08.sh b/i3/.i3/workspaces/ws08.sh index 365413e..9724274 100755 --- a/i3/.i3/workspaces/ws08.sh +++ b/i3/.i3/workspaces/ws08.sh @@ -1,6 +1,6 @@ #!/bin/bash . ~/.i3/env 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 -name ncmpcpp -e ncmpcpp" +i3-msg "workspace 8:Media; exec urxvt -fn xft:Terminus:pixelsize=20 -name newsboat -e newsboat" +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" diff --git a/sublime/.config/sublime-text-3/Packages/User/Preferences.sublime-settings b/sublime/.config/sublime-text-3/Packages/User/Preferences.sublime-settings new file mode 100644 index 0000000..7fe3b6f --- /dev/null +++ b/sublime/.config/sublime-text-3/Packages/User/Preferences.sublime-settings @@ -0,0 +1,8 @@ +{ + "color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", + "ignored_packages": + [ + "Vintage" + ], + "theme": "Material-Theme-Darker.sublime-theme" +} diff --git a/sublime/.config/sublime-text-3/Packages/User/Python.sublime-settings b/sublime/.config/sublime-text-3/Packages/User/Python.sublime-settings new file mode 100644 index 0000000..10079cb --- /dev/null +++ b/sublime/.config/sublime-text-3/Packages/User/Python.sublime-settings @@ -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] +}