Skip to content

Instantly share code, notes, and snippets.

@mbilker
Last active January 5, 2017 00:56
Show Gist options
  • Save mbilker/dae19ee4f1a49af4a29a to your computer and use it in GitHub Desktop.
Save mbilker/dae19ee4f1a49af4a29a to your computer and use it in GitHub Desktop.
set $mod Mod1
font pango:Terminus 9
floating_modifier $mod
hide_edge_borders both
bindsym $mod+Return exec termite
bindsym $mod+Shift+q kill
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPlay exec mpc toggle
# For ThinkPad
bindsym XF86Tools exec mpc prev
bindsym XF86Search exec mpc next
bindsym XF86LaunchA exec mpc toggle
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up 2
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down 2
bindsym XF86AudioMute exec pulseaudio-ctl mute
bindsym XF86AudioMicMute exec pulseaudio-ctl mute-input
bindsym XF86MonBrightnessUp exec xbacklight -inc 7
bindsym XF86MonBrightnessDown exec xbacklight -dec 7
bindsym XF86KbdBrightnessUp exec kbdlight up 50
bindsym XF86KbdBrightnessDown exec kbdlight down 50
bindsym control+Shift+4 exec "sleep 0.2; scrot -q 100 -s $HOME'/Pictures/Screenshots/%Y-%m-%d-%H-%M-%S_$wx$h.png' -e 'nice optipng -o7 -i0 $f'"
bindsym control+Shift+3 exec "scrot -q 100 $HOME'/Pictures/Screenshots/%Y-%m-%d-%H-%M-%S_$wx$h.png' -e 'nice optipng -o7 -i0 $f'"
#bindsym Shift+Print exec "scrot -q 100 -u $HOME'/Pictures/Screenshots/%Y-%m-%d-%H-%M-%S_$wx$h.png' -e 'nice optipng -o7 -i0 $f'"
bindsym control+Shift+5 exec "scrot -q 100 -u $HOME'/Pictures/Screenshots/%Y-%m-%d-%H-%M-%S_$wx$h.png' -e 'nice optipng -o7 -i0 $f'"
#bindsym $mod+d exec dmenu_run
#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="/usr/bin/dmenu -i -fn Terminus-9" --term=/usr/bin/termite --usage-log=$HOME/.local/share/j4-dmenu-desktop.log
bindsym Pause exec "sleep 0.5; xset dpms force standby"
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+f fullscreen toggle
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
#bindsym $mod+d focus child
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+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
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+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' '/usr/local/bin/i3-gnome-exit'"
mode "resize" {
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Up resize grow height 10 px or 10 ppt
bindsym Down resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
bar {
status_command i3status
#status_command j4status
tray_output primary
}
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id /usr/bin/env SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass /usr/bin/keychain --agents ssh ~/.ssh/id_ed25519
exec --no-startup-id /usr/bin/nm-applet
exec --no-startup-id /usr/bin/blueman-applet
exec --no-startup-id /usr/bin/ibus-daemon --xim -d
exec --no-startup-id /usr/bin/dropbox
exec --no-startup-id /usr/bin/feh --bg-fill --randomize --recursive ~/.wallpaper
exec --no-startup-id /usr/bin/xcalib -d :0 ~/.icc/default.icc
exec --no-startup-id /usr/bin/compton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment