update locking mechanism
[dotfiles.git] / x / .config / i3 / config
index 79ea723..9297591 100644 (file)
@@ -14,9 +14,10 @@ set $font DejaVu Sans Mono
 set $fontsize 12
 
 # lock the screen after 10 minutes
-exec xautolock -locker 'echo RELOADAGENT | gpg-connect-agent; i3lock'
+exec xautolock -locker '/home/mart/.local/bin/lock.sh'
 # set a background
 exec ~/.local/bin/bg
+# Start the notification daemon
 exec dunst
 
 # Printscreen current window
@@ -27,6 +28,8 @@ bindsym Print exec ~/.local/bin/scr
 bindsym $mod+l exec xautolock -locknow
 # put a password in the clipboard
 bindsym $mod+y exec passmenu
+bindsym $mod+b exec ~/.local/bin/network
+bindsym $mod+Shift+b exec ~/.local/bin/wifi
 
 # font for window titles.
 font pango:$font 8
@@ -53,9 +56,9 @@ bindsym $mod+s focus right
 # alternatively, you can use the cursor keys:
 bindsym XF86MonBrightnessUp exec xbacklight -inc 5
 bindsym XF86MonBrightnessDown exec xbacklight -dec 5
-bindsym XF86AudioMute exec xbacklight -dec 5
-bindsym XF86AudioLowerVolume exec xbacklight -dec 5
-bindsym XF86AudioRaiseVolume exec xbacklight -dec 5
+bindsym XF86AudioMute exec pactl set-sink-mute 1 toggle
+bindsym XF86AudioLowerVolume exec pactl set-sink-volume 1 -5%
+bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 1 +5%
 
 # move focused window
 bindsym $mod+Shift+h move left