aboutsummaryrefslogtreecommitdiff
path: root/i3.symlink/config
diff options
context:
space:
mode:
authorCamil Staps2016-03-29 16:44:18 +0200
committerCamil Staps2016-11-30 19:11:08 +0100
commit2074289024c8d5394a2a5e084e844e52946d0c1a (patch)
tree58de13b6306939ea22fb7b0d2aaf2aff92e8f331 /i3.symlink/config
parentAdded dvorak keymap (diff)
Added i3 stuff
Diffstat (limited to 'i3.symlink/config')
-rw-r--r--i3.symlink/config113
1 files changed, 113 insertions, 0 deletions
diff --git a/i3.symlink/config b/i3.symlink/config
new file mode 100644
index 0000000..c714915
--- /dev/null
+++ b/i3.symlink/config
@@ -0,0 +1,113 @@
+# General settings
+set $mod Mod4
+floating_modifier $mod
+font pango:DejaVu Sans Mono 8
+focus_follows_mouse no
+
+# kill focused window
+bindsym $mod+Shift+Q kill
+
+# Autolock
+exec xautolock -time 3 -locker 'i3lock -d'
+bindsym $mod+Control+Shift+l exec xautolock -locknow
+
+# Menus
+bindsym $mod+d exec dmenu_run
+bindsym $mod+p exec passmenu -i
+
+# Programs
+bindsym $mod+Return exec uxterm
+bindsym $mod+Shift+v exec uxterm -e vim
+bindsym $mod+Shift+m exec uxterm -e cmus
+
+# Special keys
+bindsym Print exec scrot
+bindsym Shift+Print exec scrot -u
+bindsym --release Control+Print exec scrot -s
+bindsym XF86KbdBrightnessUp exec sudo -A ~/bin/kbdbacklight up
+bindsym XF86KbdBrightnessDown exec sudo -A ~/bin/kbdbacklight down
+bindsym XF86AudioMute exec amixer sset Master toggle && kill -n 10 `pidof i3status`
+bindsym XF86AudioRaiseVolume exec amixer sset Master 1%+ && kill -n 10 `pidof i3status`
+bindsym XF86AudioLowerVolume exec amixer sset Master 1%- && kill -n 10 `pidof i3status`
+bindsym $mod+F6 exec xbacklight -inc 5 -time 80
+bindsym $mod+F5 exec xbacklight -dec 5 -time 80
+
+# change focus
+bindsym $mod+j focus left
+bindsym $mod+k focus down
+bindsym $mod+l focus up
+bindsym $mod+semicolon focus right
+# between tiling/floating
+bindsym $mod+space focus mode_toggle
+# to parent
+bindsym $mod+a focus parent
+
+# move focused window
+bindsym $mod+Shift+J move left
+bindsym $mod+Shift+K move down
+bindsym $mod+Shift+L move up
+bindsym $mod+Shift+colon move right
+
+# splits
+bindsym $mod+h split h
+bindsym $mod+v split v
+
+# change container layout / fullscreen / floating-tiling
+bindsym $mod+f fullscreen
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout toggle split
+bindsym $mod+Shift+space floating toggle
+
+# switch to workspace
+bindsym $mod+1 workspace 1
+bindsym $mod+2 workspace 2
+bindsym $mod+3 workspace 3
+bindsym $mod+4 workspace 4
+bindsym $mod+5 workspace 5
+bindsym $mod+6 workspace 6
+bindsym $mod+7 workspace 7
+bindsym $mod+8 workspace 8
+bindsym $mod+9 workspace 9
+bindsym $mod+0 workspace 10
+
+# move focused container to workspace
+bindsym $mod+Shift+1 move container to workspace 1
+bindsym $mod+Shift+2 move container to workspace 2
+bindsym $mod+Shift+3 move container to workspace 3
+bindsym $mod+Shift+4 move container to workspace 4
+bindsym $mod+Shift+5 move container to workspace 5
+bindsym $mod+Shift+6 move container to workspace 6
+bindsym $mod+Shift+7 move container to workspace 7
+bindsym $mod+Shift+8 move container to workspace 8
+bindsym $mod+Shift+9 move container to workspace 9
+bindsym $mod+Shift+0 move container to workspace 10
+
+# reload; restart in-place; exit and log out
+bindsym $mod+Shift+C reload
+bindsym $mod+Shift+R restart
+bindsym $mod+Shift+E exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
+
+bindsym $mod+r mode "resize"
+mode "resize" {
+ bindsym j resize shrink width 1 px or 1 ppt
+ bindsym k resize grow height 1 px or 1 ppt
+ bindsym l resize shrink height 1 px or 1 ppt
+ bindsym semicolon resize grow width 1 px or 1 ppt
+
+ bindsym Shift+j resize shrink width 5 px or 5 ppt
+ bindsym Shift+k resize grow height 5 px or 5 ppt
+ bindsym Shift+l resize shrink height 5 px or 5 ppt
+ bindsym Shift+semicolon resize grow width 5 px or 5 ppt
+
+ # back to normal
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+ bindsym $mod+r mode "default"
+}
+
+bar {
+ font pango:DejaVu Sans Mono, 9
+ status_command i3status
+}
+