From b63da2281a9320848e9dbf47d2d4039fb0ef8a4a Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Mon, 18 Mar 2019 11:00:00 +0300
Subject: Separate i3 and polybar config per machine

---
 .config/i3/config                     | 202 ----------------------------------
 .config/i3/config##desktop.Linux.Lowe | 184 +++++++++++++++++++++++++++++++
 .config/i3/config##desktop.Linux.Maus | 202 ++++++++++++++++++++++++++++++++++
 3 files changed, 386 insertions(+), 202 deletions(-)
 delete mode 100644 .config/i3/config
 create mode 100644 .config/i3/config##desktop.Linux.Lowe
 create mode 100644 .config/i3/config##desktop.Linux.Maus

(limited to '.config/i3')

diff --git a/.config/i3/config b/.config/i3/config
deleted file mode 100644
index 043eff8..0000000
--- a/.config/i3/config
+++ /dev/null
@@ -1,202 +0,0 @@
-# i3 config file (v4)
-# Please see https://i3wm.org/docs/userguide.html for a complete reference!
-
-# set modifiers
-set $mod Mod4
-set $alt Mod1
-
-#autostart
-exec --no-startup-id xsettingsd &
-exec --no-startup-id compton -b &
-exec --no-startup-id dropbox &
-exec --no-startup-id copyq &
-exec --no-startup-id redshift-gtk &
-exec --no-startup-id nm-applet &
-exec --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate left --output DVI-I-1 --primary --mode 1920x1080 --pos 1132x608 --rotate normal --output DVI-I-0 --off --output DP-1 --off --output DP-0 --off &
-
-#launch polybar
-exec--no-startup-id $HOME/.config/polybar/launch.sh
-
-# swap caps lock and escape, set keyboard layout
-exec --no-startup-id setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape
-
-#launch conky windows
-exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf
-exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf
-
-# set the wallpaper last (hopefully after xrandr)
-exec --no-startup-id hsetroot -fill ~/Dropbox/Wallpapers/yousef-espanioly-541259-unsplash.jpg
-
-# lock screen
-exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'i3lock-fancy -f Lato-Light -t "welcome back" -- scrot -z' ''
-
-gaps inner 0
-gaps outer 0
-
-# Font for window titles
-font pango:Lato 11
-
-# Use Mouse+$mod to drag floating windows to their wanted position
-floating_modifier $alt
-
-# bindings
-
-# shoo the mouse
-bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101
-
-# i switched back to firefox can you tell
-bindsym Ctrl+q exec --no-startup-id true
-
-# bookmark from clipboard
-bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c
-
-# swap caps lock and escape, set keyboard layout
-bindsym $mod+p exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape"
-
-# use flameshot with print screen
-bindsym Print exec flameshot gui
-
-# media keys
-bindsym $mod+m exec "pactl set-sink-mute @DEFAULT_SINK@ toggle"
-bindsym $mod+Up exec "pactl set-sink-volume @DEFAULT_SINK@ +5%"
-bindsym $mod+Down exec "pactl set-sink-volume @DEFAULT_SINK@ -5%"
-bindsym $mod+q exec mpc toggle
-#bindsym XF86AudioStop exec mpc stop
-bindsym $mod+Left exec /home/yigit/bin/mpvPrev
-bindsym $mod+Right exec mpc next
-
-# start a terminal
-bindsym $mod+Return exec kitty
-
-# kill focused window
-bindsym $mod+Shift+q kill
-
-# start rofi (a program launcher)
-bindsym $mod+d exec rofi -show combi
-
-# change focus
-bindsym $mod+h focus left
-bindsym $mod+j focus down
-bindsym $mod+k focus up
-bindsym $mod+l focus right
-
-# move focused window
-bindsym $mod+Shift+h move left
-bindsym $mod+Shift+j move down
-bindsym $mod+Shift+k move up
-bindsym $mod+Shift+l move right
-
-# split in horizontal orientation
-bindsym $mod+b split h
-
-# split in vertical orientation
-bindsym $mod+v split v
-
-# enter fullscreen mode for the focused container
-bindsym $mod+f fullscreen toggle
-
-# change container layout (stacked, tabbed, toggle split)
-bindsym $mod+s layout stacking
-bindsym $mod+w layout tabbed
-bindsym $mod+e layout toggle split
-
-# toggle tiling / floating
-bindsym $mod+Shift+space floating toggle
-
-# change focus between tiling / floating windows
-bindsym $mod+space focus mode_toggle
-
-# focus the parent container
-bindsym $mod+a focus parent
-
-# Define names for default workspaces for which we configure key bindings later on.
-# We use variables to avoid repeating the names in multiple places.
-set $ws1 "1"
-set $ws2 "2"
-set $ws3 "3"
-set $ws4 "4"
-set $ws5 "5"
-set $ws6 "6"
-set $ws7 "7"
-set $ws8 "8"
-set $ws9 "9"
-set $ws10 "10"
-
-# switch to workspace
-bindsym $mod+1 workspace $ws1
-bindsym $mod+2 workspace $ws2
-bindsym $mod+3 workspace $ws3
-bindsym $mod+4 workspace $ws4
-bindsym $mod+5 workspace $ws5
-bindsym $mod+6 workspace $ws6
-bindsym $mod+7 workspace $ws7
-bindsym $mod+8 workspace $ws8
-bindsym $mod+9 workspace $ws9
-bindsym $mod+0 workspace $ws10
-
-# move focused container to workspace
-bindsym $mod+Shift+1 move container to workspace $ws1
-bindsym $mod+Shift+2 move container to workspace $ws2
-bindsym $mod+Shift+3 move container to workspace $ws3
-bindsym $mod+Shift+4 move container to workspace $ws4
-bindsym $mod+Shift+5 move container to workspace $ws5
-bindsym $mod+Shift+6 move container to workspace $ws6
-bindsym $mod+Shift+7 move container to workspace $ws7
-bindsym $mod+Shift+8 move container to workspace $ws8
-bindsym $mod+Shift+9 move container to workspace $ws9
-bindsym $mod+Shift+0 move container to workspace $ws10
-
-# reload the configuration file
-bindsym $mod+Shift+c reload
-# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
-bindsym $mod+Shift+r restart
-
-# resize window (you can also use the mouse for that)
-mode "resize" {
-        # These bindings trigger as soon as you enter the resize mode
-
-        # Pressing left will shrink the window’s width.
-        # Pressing right will grow the window’s width.
-        # Pressing up will shrink the window’s height.
-        # Pressing down will grow the window’s height.
-        bindsym h resize shrink width 10 px or 10 ppt
-        bindsym j resize grow height 10 px or 10 ppt
-        bindsym k resize shrink height 10 px or 10 ppt
-        bindsym l resize grow width 10 px or 10 ppt
-
-        # back to normal: Enter or Escape or $mod+r
-        bindsym Return mode "default"
-        bindsym Caps_Lock mode "default"
-        bindsym $mod+r mode "default"
-}
-
-# session
-mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff" {
-    bindsym $mod+l exec i3lock-fancy -f Lato-Light -t 'welcome back' -- scrot -z
-    bindsym $mod+r exec systemctl reboot
-    bindsym $mod+p exec systemctl poweroff
-    bindsym $mod+s exit
-    bindsym Escape mode "default"
-}
-bindsym $mod+Shift+e mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff"
-
-bindsym $mod+r mode "resize"
-
-for_window [class=".*"] border pixel 4
-
-assign [class="^Steam$"] 9
-assign [class="^Thunderbird$"] 8
-
-# class                 border  backgr. text    indicator child_border
-client.focused          #458588 #285577 #ffffff #458588   #285577
-client.focused_inactive #b16286 #5f676a #ffffff #484e50   #5f676a
-client.unfocused        #927374 #222222 #888888 #292d2e   #222222
-client.urgent           #2f343a #900000 #ffffff #900000   #900000
-client.placeholder      #000000 #0c0c0c #ffffff #000000   #0c0c0c
-
-client.background       #ffffff
-
-# config
-hide_edge_borders smart
-workspace_auto_back_and_forth yes
-focus_follows_mouse no
diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe
new file mode 100644
index 0000000..476f645
--- /dev/null
+++ b/.config/i3/config##desktop.Linux.Lowe
@@ -0,0 +1,184 @@
+# i3 config file (v4)
+# Please see https://i3wm.org/docs/userguide.html for a complete reference!
+
+# set modifiers
+set $mod Mod4
+set $alt Mod1
+
+# launch polybar
+exec --no-startup-id $HOME/.config/polybar/launch.sh &
+
+# start the screensaver, '' at the end is not a typo
+exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' ''
+
+# Font for window titles
+font pango:Lato 11
+
+# Use Mouse+$mod to drag floating windows to their wanted position
+floating_modifier $alt
+
+# i switched back to firefox can you tell
+bindsym Ctrl+q exec --no-startup-id true
+
+# get the mouse out of the way
+bindsym $mod+o exec --no-startup-id xdotool mousemove 1920 1080
+
+# bookmark from clipboard
+bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c
+
+# swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic)
+bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape"
+
+# use flameshot with print screen
+bindsym Print exec flameshot gui
+
+# media keys
+bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle"
+bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume @DEFAULT_SINK@ +5%"
+bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -5%"
+bindsym XF86AudioPlay exec mpc toggle
+bindsym XF86AudioPrev exec /home/yigit/bin/mpcPrevSong.sh
+bindsym XF86AudioNext exec mpc next
+
+# shortcuts for frequent programs
+bindsym $mod+Shift+z exec zotero
+bindsym $mod+Shift+f exec thunar
+bindsym $mod+Shift+t exec thunderbird
+
+# start a terminal
+bindsym $mod+Return exec kitty
+
+# kill focused window
+bindsym $mod+Shift+q kill
+bindsym --whole-window $mod+button2 kill
+
+# start rofi (a program launcher)
+bindsym $mod+d exec rofi -show combi
+
+# change focus
+bindsym $mod+h focus left
+bindsym $mod+j focus down
+bindsym $mod+k focus up
+bindsym $mod+l focus right
+
+# move focused window
+bindsym $mod+Shift+h move left
+bindsym $mod+Shift+j move down
+bindsym $mod+Shift+k move up
+bindsym $mod+Shift+l move right
+
+# split in horizontal orientation
+bindsym $mod+b split h
+
+# split in vertical orientation
+bindsym $mod+v split v
+
+# enter fullscreen mode for the focused container
+bindsym $mod+f fullscreen toggle
+
+# change container layout (stacked, tabbed, toggle split)
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout toggle split
+
+# toggle tiling / floating
+bindsym $mod+Shift+space floating toggle
+
+# change focus between tiling / floating windows
+bindsym $mod+space focus mode_toggle
+
+# focus the parent container
+bindsym $mod+a focus parent
+
+# Define names for default workspaces for which we configure key bindings later on.
+# We use variables to avoid repeating the names in multiple places.
+set $ws1 "1"
+set $ws2 "2"
+set $ws3 "3"
+set $ws4 "4"
+set $ws5 "5"
+set $ws6 "6"
+set $ws7 "7"
+set $ws8 "8"
+set $ws9 "9"
+set $ws10 "10"
+
+# switch to workspace
+bindsym $mod+1 workspace $ws1
+bindsym $mod+2 workspace $ws2
+bindsym $mod+3 workspace $ws3
+bindsym $mod+4 workspace $ws4
+bindsym $mod+5 workspace $ws5
+bindsym $mod+6 workspace $ws6
+bindsym $mod+7 workspace $ws7
+bindsym $mod+8 workspace $ws8
+bindsym $mod+9 workspace $ws9
+bindsym $mod+0 workspace $ws10
+
+# move focused container to workspace
+bindsym $mod+Shift+1 move container to workspace $ws1
+bindsym $mod+Shift+2 move container to workspace $ws2
+bindsym $mod+Shift+3 move container to workspace $ws3
+bindsym $mod+Shift+4 move container to workspace $ws4
+bindsym $mod+Shift+5 move container to workspace $ws5
+bindsym $mod+Shift+6 move container to workspace $ws6
+bindsym $mod+Shift+7 move container to workspace $ws7
+bindsym $mod+Shift+8 move container to workspace $ws8
+bindsym $mod+Shift+9 move container to workspace $ws9
+bindsym $mod+Shift+0 move container to workspace $ws10
+
+# reload the configuration file
+bindsym $mod+Shift+c reload
+# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
+bindsym $mod+Shift+r restart
+
+# resize window (you can also use the mouse for that)
+mode "resize" {
+        # These bindings trigger as soon as you enter the resize mode
+
+        # Pressing left will shrink the window’s width.
+        # Pressing right will grow the window’s width.
+        # Pressing up will shrink the window’s height.
+        # Pressing down will grow the window’s height.
+        bindsym h resize shrink width 10 px or 10 ppt
+        bindsym j resize grow height 10 px or 10 ppt
+        bindsym k resize shrink height 10 px or 10 ppt
+        bindsym l resize grow width 10 px or 10 ppt
+
+        # back to normal: Enter or Escape or $mod+r
+        bindsym Return mode "default"
+        bindsym Escape mode "default"
+        bindsym $mod+r mode "default"
+}
+
+# session
+mode " (L)ock (S)ignout (R)eboot (P)oweroff" {
+
+    bindsym $mod+l exec betterlockscreen -l dimblur -t "Welcome back"
+    bindsym $mod+r exec systemctl reboot
+    bindsym $mod+p exec systemctl poweroff
+    bindsym $mod+s exit
+    bindcode 66 mode "default"
+}
+bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff"
+
+bindsym $mod+r mode "resize"
+
+for_window [class=".*"] border pixel 4
+
+assign [class="^Steam$"] 9
+assign [class="^Thunderbird$"] 8
+
+# class                 border  backgr. text    indicator child_border
+client.focused          #458588 #285577 #ffffff #458588   #285577
+client.focused_inactive #b16286 #5f676a #ffffff #484e50   #5f676a
+client.unfocused        #927374 #222222 #888888 #292d2e   #222222
+client.urgent           #2f343a #900000 #ffffff #900000   #900000
+client.placeholder      #000000 #0c0c0c #ffffff #000000   #0c0c0c
+
+client.background       #ffffff
+
+# config
+hide_edge_borders smart
+workspace_auto_back_and_forth yes
+focus_follows_mouse no
diff --git a/.config/i3/config##desktop.Linux.Maus b/.config/i3/config##desktop.Linux.Maus
new file mode 100644
index 0000000..043eff8
--- /dev/null
+++ b/.config/i3/config##desktop.Linux.Maus
@@ -0,0 +1,202 @@
+# i3 config file (v4)
+# Please see https://i3wm.org/docs/userguide.html for a complete reference!
+
+# set modifiers
+set $mod Mod4
+set $alt Mod1
+
+#autostart
+exec --no-startup-id xsettingsd &
+exec --no-startup-id compton -b &
+exec --no-startup-id dropbox &
+exec --no-startup-id copyq &
+exec --no-startup-id redshift-gtk &
+exec --no-startup-id nm-applet &
+exec --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate left --output DVI-I-1 --primary --mode 1920x1080 --pos 1132x608 --rotate normal --output DVI-I-0 --off --output DP-1 --off --output DP-0 --off &
+
+#launch polybar
+exec--no-startup-id $HOME/.config/polybar/launch.sh
+
+# swap caps lock and escape, set keyboard layout
+exec --no-startup-id setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape
+
+#launch conky windows
+exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf
+exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf
+
+# set the wallpaper last (hopefully after xrandr)
+exec --no-startup-id hsetroot -fill ~/Dropbox/Wallpapers/yousef-espanioly-541259-unsplash.jpg
+
+# lock screen
+exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'i3lock-fancy -f Lato-Light -t "welcome back" -- scrot -z' ''
+
+gaps inner 0
+gaps outer 0
+
+# Font for window titles
+font pango:Lato 11
+
+# Use Mouse+$mod to drag floating windows to their wanted position
+floating_modifier $alt
+
+# bindings
+
+# shoo the mouse
+bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101
+
+# i switched back to firefox can you tell
+bindsym Ctrl+q exec --no-startup-id true
+
+# bookmark from clipboard
+bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c
+
+# swap caps lock and escape, set keyboard layout
+bindsym $mod+p exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape"
+
+# use flameshot with print screen
+bindsym Print exec flameshot gui
+
+# media keys
+bindsym $mod+m exec "pactl set-sink-mute @DEFAULT_SINK@ toggle"
+bindsym $mod+Up exec "pactl set-sink-volume @DEFAULT_SINK@ +5%"
+bindsym $mod+Down exec "pactl set-sink-volume @DEFAULT_SINK@ -5%"
+bindsym $mod+q exec mpc toggle
+#bindsym XF86AudioStop exec mpc stop
+bindsym $mod+Left exec /home/yigit/bin/mpvPrev
+bindsym $mod+Right exec mpc next
+
+# start a terminal
+bindsym $mod+Return exec kitty
+
+# kill focused window
+bindsym $mod+Shift+q kill
+
+# start rofi (a program launcher)
+bindsym $mod+d exec rofi -show combi
+
+# change focus
+bindsym $mod+h focus left
+bindsym $mod+j focus down
+bindsym $mod+k focus up
+bindsym $mod+l focus right
+
+# move focused window
+bindsym $mod+Shift+h move left
+bindsym $mod+Shift+j move down
+bindsym $mod+Shift+k move up
+bindsym $mod+Shift+l move right
+
+# split in horizontal orientation
+bindsym $mod+b split h
+
+# split in vertical orientation
+bindsym $mod+v split v
+
+# enter fullscreen mode for the focused container
+bindsym $mod+f fullscreen toggle
+
+# change container layout (stacked, tabbed, toggle split)
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout toggle split
+
+# toggle tiling / floating
+bindsym $mod+Shift+space floating toggle
+
+# change focus between tiling / floating windows
+bindsym $mod+space focus mode_toggle
+
+# focus the parent container
+bindsym $mod+a focus parent
+
+# Define names for default workspaces for which we configure key bindings later on.
+# We use variables to avoid repeating the names in multiple places.
+set $ws1 "1"
+set $ws2 "2"
+set $ws3 "3"
+set $ws4 "4"
+set $ws5 "5"
+set $ws6 "6"
+set $ws7 "7"
+set $ws8 "8"
+set $ws9 "9"
+set $ws10 "10"
+
+# switch to workspace
+bindsym $mod+1 workspace $ws1
+bindsym $mod+2 workspace $ws2
+bindsym $mod+3 workspace $ws3
+bindsym $mod+4 workspace $ws4
+bindsym $mod+5 workspace $ws5
+bindsym $mod+6 workspace $ws6
+bindsym $mod+7 workspace $ws7
+bindsym $mod+8 workspace $ws8
+bindsym $mod+9 workspace $ws9
+bindsym $mod+0 workspace $ws10
+
+# move focused container to workspace
+bindsym $mod+Shift+1 move container to workspace $ws1
+bindsym $mod+Shift+2 move container to workspace $ws2
+bindsym $mod+Shift+3 move container to workspace $ws3
+bindsym $mod+Shift+4 move container to workspace $ws4
+bindsym $mod+Shift+5 move container to workspace $ws5
+bindsym $mod+Shift+6 move container to workspace $ws6
+bindsym $mod+Shift+7 move container to workspace $ws7
+bindsym $mod+Shift+8 move container to workspace $ws8
+bindsym $mod+Shift+9 move container to workspace $ws9
+bindsym $mod+Shift+0 move container to workspace $ws10
+
+# reload the configuration file
+bindsym $mod+Shift+c reload
+# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
+bindsym $mod+Shift+r restart
+
+# resize window (you can also use the mouse for that)
+mode "resize" {
+        # These bindings trigger as soon as you enter the resize mode
+
+        # Pressing left will shrink the window’s width.
+        # Pressing right will grow the window’s width.
+        # Pressing up will shrink the window’s height.
+        # Pressing down will grow the window’s height.
+        bindsym h resize shrink width 10 px or 10 ppt
+        bindsym j resize grow height 10 px or 10 ppt
+        bindsym k resize shrink height 10 px or 10 ppt
+        bindsym l resize grow width 10 px or 10 ppt
+
+        # back to normal: Enter or Escape or $mod+r
+        bindsym Return mode "default"
+        bindsym Caps_Lock mode "default"
+        bindsym $mod+r mode "default"
+}
+
+# session
+mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff" {
+    bindsym $mod+l exec i3lock-fancy -f Lato-Light -t 'welcome back' -- scrot -z
+    bindsym $mod+r exec systemctl reboot
+    bindsym $mod+p exec systemctl poweroff
+    bindsym $mod+s exit
+    bindsym Escape mode "default"
+}
+bindsym $mod+Shift+e mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff"
+
+bindsym $mod+r mode "resize"
+
+for_window [class=".*"] border pixel 4
+
+assign [class="^Steam$"] 9
+assign [class="^Thunderbird$"] 8
+
+# class                 border  backgr. text    indicator child_border
+client.focused          #458588 #285577 #ffffff #458588   #285577
+client.focused_inactive #b16286 #5f676a #ffffff #484e50   #5f676a
+client.unfocused        #927374 #222222 #888888 #292d2e   #222222
+client.urgent           #2f343a #900000 #ffffff #900000   #900000
+client.placeholder      #000000 #0c0c0c #ffffff #000000   #0c0c0c
+
+client.background       #ffffff
+
+# config
+hide_edge_borders smart
+workspace_auto_back_and_forth yes
+focus_follows_mouse no
-- 
cgit v1.2.3-70-g09d2