X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.config%2Fi3%2Fconfig;h=9fd78e60cc103c0ed7b8413131f3e4337634642f;hb=9b4ab05e359bdf0994cb09ae063f414e8336fdcd;hp=c25afcbe22b6b307d0dff460c7ebbe69e038b565;hpb=115bb77f3b3c1ff8f4fdeb3a792a64d2aa8b9d80;p=dotfiles.git diff --git a/x/.config/i3/config b/x/.config/i3/config index c25afcb..9fd78e6 100644 --- a/x/.config/i3/config +++ b/x/.config/i3/config @@ -10,13 +10,15 @@ # Please see http://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 +set $font DejaVu Sans Mono +set $fontsize 12 # lock the screen after 10 minutes exec xautolock -locker 'echo RELOADAGENT | gpg-connect-agent; i3lock' # set a background exec ~/.local/bin/bg -# set the network switcher -exec netctltray +# start steam +exec steam # Toggle music playback bindsym Pause exec mpc toggle @@ -27,7 +29,7 @@ bindsym Print exec ~/.local/bin/scr # lock the screen bindsym $mod+l exec xautolock -locknow # put a password in the clipboard -bindsym $mod+p exec ~/.local/bin/passmenu +bindsym $mod+y exec ~/.local/bin/passmenu # font for window titles. font pango:DejaVu Sans Mono 8 @@ -43,7 +45,7 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+quotedbl kill # start dmenu -bindsym $mod+e exec dmenu_run -i -f -fn 'xft:DejaVu Sans Mono:style=Book:pixelsize=12' +bindsym $mod+e exec dmenu_run -i -f -fn 'xft:$font:pixelsize=$fontsize' # change focus bindsym $mod+h focus left @@ -121,35 +123,24 @@ bindsym $mod+Shift+p restart bindsym $mod+Shift+period exec i3-msg exit # resize window (you can also use the mouse for that) -#mode "resize" { -# # These bindings trigger as soon as you enter the resize mode -# -# # Pressing left will shrink the window’s width. -# # Pressing right will grow the window’s width. -# # Pressing up will shrink the window’s height. -# # Pressing down will grow the window’s height. -# bindsym h resize shrink width 10 px or 10 ppt -# bindsym t resize grow height 10 px or 10 ppt -# bindsym n resize shrink height 10 px or 10 ppt -# bindsym s resize grow width 10 px or 10 ppt -# -# # same bindings, but for the arrow keys -# bindsym Left resize shrink width 10 px or 10 ppt -# bindsym Down resize grow height 10 px or 10 ppt -# bindsym Up resize shrink height 10 px or 10 ppt -# bindsym Right resize grow width 10 px or 10 ppt -# -# # back to normal: Enter or Escape -# bindsym Return mode "default" -# bindsym Escape mode "default" -#} -# -#bindsym $mod+p mode "resize" +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + bindsym h resize shrink width 5 px or 5 ppt + bindsym t resize grow height 5 px or 5 ppt + bindsym n resize shrink height 5 px or 5 ppt + bindsym s resize grow width 5 px or 5 ppt + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+p mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status + status_command /home/mart/projects/i3status/i3status modifier $mod - font pango:DejaVu Sans Mono 12 + font pango:$font $fontsize }