X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.config%2Fi3%2Fconfig;h=abbfdde8b04ffda68ba141d281429a4ad6b6a84c;hb=b7386be5f9c3076292eb22fa0a1b85b366f2b851;hp=c10b89a558a4e284f44e7609c685a6ed72c4b8ac;hpb=b65d1819f472d54910e9eb7a6b4075bab1c2f485;p=dotfiles.git diff --git a/x/.config/i3/config b/x/.config/i3/config index c10b89a..abbfdde 100644 --- a/x/.config/i3/config +++ b/x/.config/i3/config @@ -13,25 +13,17 @@ set $mod Mod4 set $font DejaVu Sans Mono set $fontsize 12 -exec display -window root /tmp/bg.png &\ - dunst &\ - urxvtd -q -o -f &\ - mpd &\ - xrdb -merge ~/.Xresources &\ - steam &\ - setxkbmap -layout dvorak,ru -variant ,phonetic_dvorak -option compose:ralt,grp:menu_toggle +# lock the screen after 10 minutes +exec xautolock -locker ~/.local/bin/lock.sh & dunst & setxkbmap -layout dvorak,ru,us -variant ,phonetic_dvorak, -option compose:ralt,grp:menu_toggle,caps:super # Toggle playback bindsym Pause exec mpc toggle -# Printscreen current window -bindsym Shift+Print exec ~/.local/bin/scr window # Printscreen +bindsym Shift+Print exec ~/.local/bin/scr window bindsym Print exec ~/.local/bin/scr # put a password in the clipboard -bindsym $mod+y exec /usr/share/doc/pass/examples/dmenu/passmenu -bindsym $mod+Shift+y exec /usr/share/doc/pass/examples/dmenu/passmenu --type -bindsym $mod+b exec ~/.local/bin/network -bindsym $mod+Shift+b exec ~/.local/bin/wifi +bindsym $mod+y exec passmenu +bindsym $mod+Shift+y exec passmenu --type # font for window titles. font pango:$font 8 @@ -41,7 +33,10 @@ 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 @@ -56,8 +51,8 @@ bindsym $mod+n focus up bindsym $mod+s focus right # alternatively, you can use the cursor keys: -bindsym XF86MonBrightnessUp exec xbacklight -inc 10 -bindsym XF86MonBrightnessDown exec xbacklight -dec 10 +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%+ @@ -144,6 +139,5 @@ bindsym $mod+p mode "resize" # finds out, if available) bar { status_command i3status - modifier $mod font pango:$font $fontsize }