From 02292ef4c662e32262086a018b3d98c84758d92a Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 29 Feb 2016 14:52:54 -0600 Subject: [PATCH] add containers, media keys, and screen movement commands --- .config/i3/config_base | 58 ++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/.config/i3/config_base b/.config/i3/config_base index 0545164..086c5d0 100644 --- a/.config/i3/config_base +++ b/.config/i3/config_base @@ -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! @@ -66,6 +60,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 @@ -93,9 +109,9 @@ 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+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 @@ -105,9 +121,9 @@ 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+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 @@ -117,7 +133,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 "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,6 +165,20 @@ 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 + +# brightness +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # 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 { -- 2.39.2