]> 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 086c5d0c6b579a39041bacccf76014742a02766a..f2197ff77c2fdc6982e34485179804ba73bb5597 100644 (file)
@@ -11,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
@@ -34,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
@@ -90,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
@@ -112,8 +114,8 @@ bindsym $mod+a focus parent
 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+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
@@ -124,8 +126,8 @@ bindsym $mod+0 workspace 10
 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+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
@@ -133,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 exec "sh -c '[ -x ~/.config/i3/build_config.sh ] && ~/.config/i3/build_config.sh; i3-msg 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)
@@ -166,22 +168,34 @@ mode "resize" {
 bindsym $mod+r mode "resize"
 
 # media keys
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
-bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
-bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 0 toggle # mute mic
+# 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
-bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
-bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen 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 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 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
 }