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.
This commit is contained in:
parent
0c012554b9
commit
e6c5065b5b
2 changed files with 63 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue