From 2bc8efe26dc17f2e02daf9f814579b96fbd17328 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Mon, 24 Jan 2022 14:16:57 +0100 Subject: [PATCH 1/2] imporvements --- .config/i3/config | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index ffe8f9c..f7a2ce6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -154,12 +154,16 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # move focus to different monitors -bindsym $mod+Shift+Ctrl+l focus output right -bindsym $mod+Shift+Ctrl+h focus output left +bindsym $mod+greater focus output right +bindsym $mod+less focus output left # move container to different monitors -bindsym $mod+Shift+greater move container to output right; focus output right -bindsym $mod+Shift+less move container to output left; focus output left +bindsym $mod+Ctrl+greater move container to output right; focus output right +bindsym $mod+Ctrl+less move container to output left; focus output left + +# move workspace to different monitor +bindsym $mod+Ctrl+Shift+greater move workspace to output right +bindsym $mod+Ctrl+Shift+less move workspace to output left # workspace back and forth (with/without active container) workspace_auto_back_and_forth yes @@ -299,19 +303,19 @@ bindsym $mod+Shift+r restart # bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # Set shut down, restart and locking features -bindsym $mod+0 mode "$mode_system" -set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown -mode "$mode_system" { - bindsym l exec --no-startup-id light-locker-command -l - bindsym h exec --no-startup-id systemctl hibernate - bindsym r exec --no-startup-id reboot - bindsym s exec --no-startup-id systemctl suspend - bindsym Shift+s exec --no-startup-id shutdown now - +# bindsym $mod+0 mode "$mode_system" +# set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown +# mode "$mode_system" { + # bindsym l exec --no-startup-id light-locker-command -l + # bindsym h exec --no-startup-id systemctl hibernate + # bindsym r exec --no-startup-id reboot + # bindsym s exec --no-startup-id systemctl suspend + # bindsym Shift+s exec --no-startup-id shutdown now +# # exit system mode: "Enter" or "Escape" - bindsym Return mode "default" - bindsym Escape mode "default" -} + # bindsym Return mode "default" + # bindsym Escape mode "default" +# } # Resize window (you can also use the mouse for that) bindsym $mod+r mode "resize" @@ -339,7 +343,7 @@ mode "resize" { } # Lock screen -bindsym $mod+Ctrl+l exec light-locker-command -l +bindsym $mod+Ctrl+Alt+l exec light-locker-command -l # Autostart applications exec_always --no-startup-id $HOME/.config/polybar/launch.sh From 6a0229b0a56f7a7a5492f6cda1b7a2711ac09710 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Wed, 2 Feb 2022 13:48:52 +0100 Subject: [PATCH 2/2] fixes for alt key --- .config/i3/config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index e5ab5ec..814944a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,5 +1,6 @@ # Set mod key (Mod1=, Mod4=) set $mod Mod4 +set $alt Mod1 # set default desktop layout (default is tiling) # workspace_layout tabbed @@ -305,8 +306,8 @@ bindsym $mod+Shift+r restart # bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # Set shut down, restart and locking features -bindsym $mod+Shift+Ctrl+Alt+h exec --no-startup-id systemctl hibernate -bindsym $mod+Shift+Ctrl+Alt+s exec --no-startup-id systemctl suspend +bindsym $mod+Shift+Ctrl+$alt+h exec --no-startup-id systemctl hibernate +bindsym $mod+Shift+Ctrl+$alt+s exec --no-startup-id systemctl suspend #bindsym $mod+0 mode "$mode_system" #set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown @@ -348,7 +349,7 @@ mode "resize" { } # Lock screen -bindsym $mod+Ctrl+Alt+l exec light-locker-command -l +bindsym Ctrl+$alt+l exec --no-startup-id light-locker-command -l # Autostart applications exec_always --no-startup-id $HOME/.config/polybar/launch.sh