diff --git a/private_dot_config/i3/config b/private_dot_config/i3/config index 4521d20..3c12231 100644 --- a/private_dot_config/i3/config +++ b/private_dot_config/i3/config @@ -181,31 +181,45 @@ mode "resize" { } mode "switch"{ # Can't decide if I want it to jump double time or not so I'm adding both -bindsym h workspace prev -bindsym l workspace next -bindsym Shift+h workspace prev;workspace prev -bindsym Shift+l workspace next;workspace next -# My finger do not like reaching for the numbers -bindsym a workspace number $Terminal -bindsym s workspace number $Browsers -bindsym d workspace number $Code -bindsym f workspace number $IRC -bindsym g workspace number $Game -bindsym c workspace number $Notes -bindsym q workspace number $Steam -bindsym v workspace number $Vm -bindsym m workspace number $Mail -bindsym w workspace number $Reading -bindsym e workspace number $Media -bindsym y workspace number $Youtube -bindsym Return mode "default" -bindsym Escape mode "default" -bindsym $mod+semicolon mode "default" + bindsym h workspace prev + bindsym l workspace next + bindsym Shift+h workspace prev;workspace prev + bindsym Shift+l workspace next;workspace next + # My finger do not like reaching for the numbers + bindsym a workspace number $Terminal + bindsym s workspace number $Browsers + bindsym d workspace number $Code + bindsym f workspace number $IRC + bindsym g workspace number $Game + bindsym c workspace number $Notes + bindsym q workspace number $Steam + bindsym v workspace number $Vm + bindsym m workspace number $Mail + bindsym w workspace number $Reading + bindsym e workspace number $Media + bindsym y workspace number $Youtube + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+semicolon mode "default" } bindsym $mod+r mode "resize" bindsym $mod+semicolon mode "switch" +# System mode menu +set $mode_system "What to do? (l) lock, (e) logout, (r) reboot, (s) suspend, (Shift+s) shutdown" +mode $mode_system { + bindsym l exec $screenlock; mode "default" + bindsym e exec swaymsg exit; mode "default" + bindsym r exec systemctl reboot; mode "default" + bindsym s exec systemctl suspend; mode "default" + bindsym Shift+s exec systemctl poweroff; mode "default" +# back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +unbindsym $mod+Shift+e +bindsym $mod+Shift+e mode $mode_system # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available)