Jelajahi Sumber

Improve monitor navigation with arrows

- Map all 4 directions to monitor moves
- Add keybindings for monitor focus
DricomDragon 3 tahun lalu
induk
melakukan
18ccac363a

+ 9 - 2
Install/Templates/home/config/regolith/Xresources

@@ -14,8 +14,15 @@ i3-wm.binding.focus_child: Next
 
 i3-wm.binding.shutdown: Shift+Escape
 
-i3-wm.binding.move_work_ext: Shift+Prior
-i3-wm.binding.move_work_int: Shift+Next
+i3-wm.binding.focus_work_up: Up
+i3-wm.binding.focus_work_down: Down
+i3-wm.binding.focus_work_right: Right
+i3-wm.binding.focus_work_left: Left
+
+i3-wm.binding.move_work_up: Shift+Up
+i3-wm.binding.move_work_down: Shift+Down
+i3-wm.binding.move_work_right: Shift+Right
+i3-wm.binding.move_work_left: Shift+Left
 
 !- Workspaces
 i3-wm.workspace.01.key: 7

+ 30 - 18
Install/Templates/home/config/regolith/i3/config

@@ -141,12 +141,6 @@ bindsym $mod+$i3-wm.binding.focus_parent focus parent
 set_from_resource $i3-wm.binding.focus_child i3-wm.binding.focus_child z
 bindsym $mod+$i3-wm.binding.focus_child focus child
 
-## Navigate // Relative Window // <> ↑ ↓ ← → ##
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
-
 ## Navigate // Relative Window // <> k j h l ##
 set_from_resource $i3-wm.binding.left i3-wm.binding.left h
 set_from_resource $i3-wm.binding.right i3-wm.binding.right l
@@ -223,12 +217,6 @@ bindsym $mod+$i3-wm.binding.scratchpad scratchpad show
 # Window and Workspace Configuration
 ###############################################################################
 
-## Modify // Window Position // <><Shift> ↑ ↓ ← → ##
-bindsym $mod+Shift+Left move left
-bindsym $mod+Shift+Down move down
-bindsym $mod+Shift+Up move up
-bindsym $mod+Shift+Right move right
-
 ## Modify // Window Position // <><Shift> k j h l ##
 set_from_resource $i3-wm.binding.move_left i3-wm.binding.move_left Shift+h
 set_from_resource $i3-wm.binding.move_right i3-wm.binding.move_right Shift+l
@@ -340,13 +328,37 @@ bindsym $mod+$alt+Ctrl+$ws9_key move container to workspace number $ws19; worksp
 set_from_resource $i3-wm.binding.take_next_free i3-wm.binding.take_next_free Mod1+grave
 bindsym $mod+$i3-wm.binding.take_next_free exec --no-startup-id /usr/bin/i3-next-workspace --move-window-and-follow
 
-## Modify // Move workspace to external monitor // <><Shift><PgUp> ##
-set_from_resource $i3-wm.binding.move_work_ext i3-wm.binding.move_work_ext Mod1+Mod4+k
-bindsym $mod+$i3-wm.binding.move_work_ext move workspace to output up
+## Modify // Focus upward monitor // <> ↑ ##
+set_from_resource $i3-wm.binding.focus_work_up i3-wm.binding.focus_work_up Mod1+Up
+bindsym $mod+$i3-wm.binding.focus_work_up focus output up
+
+## Modify // Focus downward monitor // <> ↓ ##
+set_from_resource $i3-wm.binding.focus_work_down i3-wm.binding.focus_work_down Mod1+Down
+bindsym $mod+$i3-wm.binding.focus_work_down focus output down
+
+## Modify // Focus right monitor // <> → ##
+set_from_resource $i3-wm.binding.focus_work_right i3-wm.binding.focus_work_right Mod1+Right
+bindsym $mod+$i3-wm.binding.focus_work_right focus output right
+
+## Modify // Focus left monitor // <> ← ##
+set_from_resource $i3-wm.binding.focus_work_left i3-wm.binding.focus_work_left Mod1+Left
+bindsym $mod+$i3-wm.binding.focus_work_left focus output left
+
+## Modify // Move workspace to upward monitor // <><Shift> ↑ ##
+set_from_resource $i3-wm.binding.move_work_up i3-wm.binding.move_work_up Mod1+Mod4+Up
+bindsym $mod+$i3-wm.binding.move_work_up move workspace to output up
+
+## Modify // Move workspace to downward monitor // <><Shift> ↓ ##
+set_from_resource $i3-wm.binding.move_work_down i3-wm.binding.move_work_down Mod1+Mod4+Down
+bindsym $mod+$i3-wm.binding.move_work_down move workspace to output down
+
+## Modify // Move workspace to right monitor // <><Shift> → ##
+set_from_resource $i3-wm.binding.move_work_right i3-wm.binding.move_work_right Mod1+Mod4+Right
+bindsym $mod+$i3-wm.binding.move_work_right move workspace to output right
 
-## Modify // Move workspace to internal monitor // <><Shift><PgDown> ##
-set_from_resource $i3-wm.binding.move_work_int i3-wm.binding.move_work_int Mod1+Mod4+k
-bindsym $mod+$i3-wm.binding.move_work_int move workspace to output down
+## Modify // Move workspace to left monitor // <><Shift> ← ##
+set_from_resource $i3-wm.binding.move_work_left i3-wm.binding.move_work_left Mod1+Mod4+Left
+bindsym $mod+$i3-wm.binding.move_work_left move workspace to output left
 
 # Use Mouse+$mod to drag floating windows to their wanted position
 floating_modifier $mod