aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/.config/i3/config11
1 files changed, 8 insertions, 3 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config
index c4f4de9..18e9012 100644
--- a/home/.config/i3/config
+++ b/home/.config/i3/config
@@ -10,6 +10,9 @@
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
+set $lock i3lock --nofork
+
+bindsym --release Print exec scrot -fs
bindsym $mod+b exec firefox
@@ -30,7 +33,6 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
-exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
@@ -39,6 +41,9 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
+bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
+bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@@ -137,7 +142,7 @@ bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exit
-# resize window (you can also use the mouse for that)
+# resize window (you can also use the mouse)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
@@ -169,4 +174,4 @@ for_window [class=".*"] border pixel 0
gaps inner 20
gaps outer -20
-bindsym $mod+q exec "systemctl suspend"
+bindsym $mod+q exec $lock && systemctl suspend