X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.config%2Fi3%2Fconfig;h=48c196c7e0da73d4ab6a9d402e7570bf4f27cc24;hb=04afc939b89a847081345c90976f45255c6ff871;hp=6ae8a27fab18e3751b7d6c7033e5f456a0a1d9e0;hpb=7c0c395e57530a31d96410759e5f65b12d2aaea2;p=dotfiles.git diff --git a/x/.config/i3/config b/x/.config/i3/config index 6ae8a27..48c196c 100644 --- a/x/.config/i3/config +++ b/x/.config/i3/config @@ -10,37 +10,36 @@ # Please see http://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 - -# lock the screen after 10 minutes -exec xautolock -locker 'sudo -K; echo RELOADAGENT | gpg-connect-agent; i3lock -c ccff00' -# set a background -exec convert -size 1600x900 plasma:fractal -modulate 20,100,10 png:- | display -window root -# set the backlight -exec xbacklight -set 50 -# set the network switcher -exec netctltray - -# lock the screen -bindsym $mod+l exec xautolock -locknow - +set $font DejaVu Sans Mono +set $fontsize 12 + +# Toggle playback +bindsym Pause exec mpc toggle +# Printscreen +bindsym Shift+Print exec ~/.local/bin/scr window +bindsym Print exec ~/.local/bin/scr # put a password in the clipboard -bindsym $mod+p exec passmenu +bindsym $mod+y exec passmenu +bindsym $mod+Shift+y exec passmenu --type # font for window titles. -font pango:DejaVu Sans Mono 8 +font pango:$font 8 # use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod hide_edge_borders none # start a terminal -bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+Return exec urxvtc + +# lock +bindsym $mod+l exec xautolock -locknow # kill focused window 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 @@ -49,10 +48,11 @@ bindsym $mod+n focus up bindsym $mod+s focus right # alternatively, you can use the cursor keys: -bindsym $mod+Left exec xbacklight -dec 5 -bindsym $mod+Down exec amixer set Master 5- && kill -n 10 `pidof i3status` -bindsym $mod+Up exec amixer set Master 5+ && kill -n 10 `pidof i3status` -bindsym $mod+Right exec xbacklight -inc 5 +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 +bindsym XF86AudioMute exec amixer -c 1 set Master toggle +bindsym XF86AudioLowerVolume exec amixer -c 1 set Master 5%- +bindsym XF86AudioRaiseVolume exec amixer -c 1 set Master 5%+ # move focused window bindsym $mod+Shift+h move left @@ -118,36 +118,23 @@ 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 - mode hide - modifier $mod - font pango:DejaVu Sans Mono 14 + status_command i3status + font pango:$font $fontsize }