]> git.donarmstrong.com Git - x_base.git/blobdiff - .config/i3/config_base
make the default font larger and use toggle_rfkill
[x_base.git] / .config / i3 / config_base
index 0545164186cf01cc57977c1496cb5a34bd02c38b..f2197ff77c2fdc6982e34485179804ba73bb5597 100644 (file)
@@ -1,10 +1,4 @@
-# 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!
@@ -17,7 +11,7 @@ set $mod Mod4
 
 # This font is widely installed, provides lots of unicode glyphs, right-to-left
 # text rendering and scalability on retina/hidpi displays (thanks to pango).
-font pango:DejaVu Sans Mono 8
+font pango:DejaVu Sans Mono 9
 
 # Before i3 v4.8, we used to recommend this one as the default:
 # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
@@ -40,7 +34,8 @@ bindsym $mod+Shift+q kill
 # 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
@@ -66,6 +61,28 @@ bindsym $mod+Shift+Down move down
 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
 
@@ -74,6 +91,7 @@ bindsym $mod+v split v
 
 # enter fullscreen mode for the focused container
 bindsym $mod+f fullscreen toggle
+bindsym $mod+Shift+f fullscreen toggle global
 
 # change container layout (stacked, tabbed, toggle split)
 bindsym $mod+s layout stacking
@@ -93,11 +111,11 @@ bindsym $mod+a focus parent
 #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+4 workspace 4
-bindsym $mod+5 workspace 5
+bindsym $mod+1 workspace "1: emacs"
+bindsym $mod+2 workspace "2: mutt"
+bindsym $mod+3 workspace "3: browser"
+bindsym $mod+4 workspace "4: remotes"
+bindsym $mod+5 workspace "5: R"
 bindsym $mod+6 workspace 6
 bindsym $mod+7 workspace 7
 bindsym $mod+8 workspace 8
@@ -105,11 +123,11 @@ 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+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: remotes"
+bindsym $mod+Shift+5 move container to workspace "5: R"
 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
@@ -117,7 +135,7 @@ bindsym $mod+Shift+9 move container to workspace 9
 bindsym $mod+Shift+0 move container to workspace 10
 
 # reload the configuration file
-bindsym $mod+Shift+c reload
+bindsym $mod+Shift+c exec --no-startup-id "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)
@@ -149,9 +167,35 @@ mode "resize" {
 
 bindsym $mod+r mode "resize"
 
+# media keys
+# increase sound volume
+bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` +5%"
+#decrease sound volume
+bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` -5%"
+# mute sound
+bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` toggle"
+# mute mic
+bindsym XF86AudioMicMute exec --no-startup-id "pactl set-source-mute `pacmd list-sources | awk -F': ' '/* index/{print $2}'` toggle" 
+bindsym XF86AudioNext exec --no-startup-id "sh -c '(mpc next 2>&1 >/dev/null & )'"
+bindsym XF86AudioPrev exec --no-startup-id "sh -c '(mpc prev 2>&1 >/dev/null & )'"
+bindsym XF86AudioPlay exec --no-startup-id "sh -c '(mpc toggle 2>&1 >/dev/null & )'"
+bindsym XF86AudioStop exec --no-startup-id "sh -c '(mpc stop 2>&1 >/dev/null & )'"
+bindsym XF86AudioPause exec --no-startup-id "sh -c '(mpc pause 2>&1 >/dev/null & )'"
+bindsym XF86AudioRewind exec --no-startup-id "sh -c '(mpc seek -00:01:00 2>&1 >/dev/null & )'"
+
+# brightness
+# increase screen brightness
+bindsym XF86MonBrightnessUp exec xbacklight -inc 5
+# decrease screen brightness
+bindsym XF86MonBrightnessDown exec xbacklight -dec 5
+
+# seach/tools/wlan/display
+bindsym XF86WLAN exec --no-startup-id toggle_rfkill
+#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
 }