diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/10-i3/config | 29 | ||||
-rw-r--r-- | modules/10-i3/install.sh | 2 |
2 files changed, 26 insertions, 5 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 } diff --git a/modules/10-i3/install.sh b/modules/10-i3/install.sh index 5f6ab71..b5ed0e1 100644 --- a/modules/10-i3/install.sh +++ b/modules/10-i3/install.sh @@ -6,7 +6,7 @@ DOT_MODULE_NAME="i3" function preinstall() { if ! [[ -x "$(command -v i3)" ]]; then - PACKAGES+=("i3-gaps") + PACKAGES+=("i3-gaps" "i3status") fi if ! [[ -x "$(command -v i3lock)" ]]; then PACKAGES+=("i3lock" "polkit") |