summaryrefslogtreecommitdiff
path: root/modules/10-i3/config
diff options
context:
space:
mode:
Diffstat (limited to 'modules/10-i3/config')
-rw-r--r--modules/10-i3/config29
1 files changed, 25 insertions, 4 deletions
diff --git a/modules/10-i3/config b/modules/10-i3/config
index 9595b9d..7c11990 100644
--- a/modules/10-i3/config
+++ b/modules/10-i3/config
@@ -45,6 +45,13 @@ 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
+# set brightness with keyboard buttons
+bindsym XF86MonBrightnessUp exec brightnessctl set +10%
+bindsym XF86MonBrightnessDown exec brightnessctl set 10%-
+
+# take a screenshot with printscrn
+bindsym Print exec flameshot gui
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@@ -54,10 +61,6 @@ bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+q kill
-# lock the screen
-#bindsym $mod+q exec i3lock --nofork --color 000000 --show-failed-attempts
-bindsym $mod+q exec loginctl lock-session
-
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
@@ -187,8 +190,26 @@ mode "resize" {
bindsym $mod+r mode "resize"
+# system functions mode
+set $sys "[l]ock screen - [e]xit i3 - [r]estart i3 - reload [c]onfig - [R]eboot - [S]hutdown"
+mode $sys {
+ bindsym e exit; mode default
+ bindsym c reload; mode default
+ bindsym r restart; mode default
+ bindsym l exec loginctl lock-session; mode default
+ bindsym Shift+r exec systemctl reboot; mode default
+ bindsym Shift+s exec systemctl poweroff; mode default
+
+ bindsym q mode default
+ bindsym Escape mode default
+}
+
+bindsym $mod+Escape mode $sys
+
+
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
+ font pango:DejaVu Sans Mono 12
status_command i3status
}