diff options
author | William Carroll <wpcarro@gmail.com> | 2018-10-06T21·12-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2018-10-06T21·12-0400 |
commit | e6c5065b5bcb1a52196eb3c3892b91c1b3da98fd (patch) | |
tree | 178346c4160c97ca6026ff08688594ecd789fc59 /configs/linux/misc/.config/i3/config | |
parent | 0c012554b9e81dde34621d7f37e54f2ecce685a6 (diff) |
Integrate i3 and Emacs
Super shared KBDs between i3wm and Emacs for: - focusing windows (i.e. M-{h,j,k,l}) - deleting windows (i.e. M-q) More support may be needed, but this is good DWIM behavior for now.
Diffstat (limited to 'configs/linux/misc/.config/i3/config')
-rw-r--r-- | configs/linux/misc/.config/i3/config | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/configs/linux/misc/.config/i3/config b/configs/linux/misc/.config/i3/config index 92b1d0728ac3..e4a241677d1f 100644 --- a/configs/linux/misc/.config/i3/config +++ b/configs/linux/misc/.config/i3/config @@ -12,8 +12,17 @@ gaps inner 20 gaps outer 0 smart_gaps on +# audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle + +# screen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 + # ensure wallpaper -exec --no-startup-id feh --bg-scale ~/pictures/soft-gradient.jpg +exec --no-startup-id feh --bg-scale ~/pictures/blurred.jpg # start a terminal bindsym $mod+Return exec terminator @@ -25,16 +34,16 @@ for_window [class="^.*"] border pixel 0 focus_follows_mouse no # kill focused window -bindsym $mod+q kill +bindsym $mod+q exec ~/.config/i3/i3-navigate-emacs quit # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -i -dmenu -width 40 -lines 8' +bindsym Mod4+space exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -i -dmenu -width 40 -lines 8' # change focus -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right +bindsym $mod+h exec ~/.config/i3/i3-navigate-emacs left +bindsym $mod+j exec ~/.config/i3/i3-navigate-emacs down +bindsym $mod+k exec ~/.config/i3/i3-navigate-emacs up +bindsym $mod+l exec ~/.config/i3/i3-navigate-emacs right # move focused window bindsym $mod+Shift+h move left @@ -44,6 +53,11 @@ bindsym $mod+Shift+l move right # split in vertical orientation bindsym $mod+v split v +bindsym $mod+Shift+v split h + +# enable duplicating the current window vertically or horizontally +# bindsym $mod+- split v exec terminator +# bindsym $mod+\ split h exec terminator # enter fullscreen mode for the focused container bindsym $mod+z fullscreen toggle @@ -121,10 +135,8 @@ mode "resize" { bindsym $mod+r mode "resize" -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) bar { status_command i3status position top - font pango:monospace 14 + font pango:monospace 12 } |