-# This file has been auto-generated by i3-config-wizard(1).
-# It will not be overwritten, so edit it as you like.
-#
-# Should you change your keyboard layout some time, delete
-# this file and re-run i3-config-wizard(1).
-#
-
+# -*- mode: conf -*-
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
-bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
+bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -dmenu'
+bindsym $mod+q exec --no-startup-id rofi -show window
# change focus
bindsym $mod+j focus left
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
+# move focused window
+bindsym $mod+Control+Shift+j move container to output left
+bindsym $mod+Control+Shift+k move container to output down
+bindsym $mod+Control+Shift+l move container to output up
+bindsym $mod+Control+Shift+semicolon move container to output right
+
+bindsym $mod+Control+Shift+Left move container to output left
+bindsym $mod+Control+Shift+Down move container to output down
+bindsym $mod+Control+Shift+Up move container to output up
+bindsym $mod+Control+Shift+Right move container to output right
+
+# alternatively, you can use the cursor keys:
+bindsym $mod+Control+j move workspace to output left
+bindsym $mod+Control+k move workspace to output down
+bindsym $mod+Control+l move workspace to output up
+bindsym $mod+Control+semicolon move workspace to output right
+
+bindsym $mod+Control+Left move workspace to output left
+bindsym $mod+Control+Down move workspace to output down
+bindsym $mod+Control+Up move workspace to output up
+bindsym $mod+Control+Right move workspace to output right
+
# split in horizontal orientation
bindsym $mod+h split h
#bindsym $mod+d focus child
# switch to workspace
-bindsym $mod+1 workspace 1
-bindsym $mod+2 workspace 2
-bindsym $mod+3 workspace 3
+bindsym $mod+1 workspace "1: emacs"
+bindsym $mod+2 workspace "2: mutt"
+bindsym $mod+3 workspace "3: browser"
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
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+1 move container to workspace "1: emacs"
+bindsym $mod+Shift+2 move container to workspace "2: mutt"
+bindsym $mod+Shift+3 move container to workspace "3: browser"
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+0 move container to workspace 10
# reload the configuration file
-bindsym $mod+Shift+c reload
+bindsym $mod+Shift+c exec "sh -c '[ -x ~/.config/i3/build_config.sh ] && ~/.config/i3/build_config.sh; i3-msg reload'"
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+r mode "resize"
+# media keys
+bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` +5%" #increase sound volume
+bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` -5%" #decrease sound volume
+bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` toggle" # mute sound
+bindsym XF86AudioMicMute exec --no-startup-id sh -c "pactl set-source-mute `pacmd list-sources | awk -F': ' '/* index/{print $2}'` toggle" # mute mic
+bindsym XF86AudioNext exec --no-startup-id mpc next
+bindsym XF86AudioPrev exec --no-startup-id mpc prev
+
+# brightness
+bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
+bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
+
+# seach/tools/wlan/display
+bindsym XF86WLAN exec sh -c "if (/usr/sbin/rfkill list|grep -q 'blocked yes' ); then /usr/sbin/rfkill unblock all; else /usr/sbin/rfkill block all; fi;"
+#bindsym XF86Display exec presentation_mode
+
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
- status_command i3status
- tray_output primary
+ status_command i3status
+ tray_output primary
}