Browse Source

Add shortcuts to move workspace to other monitor

Between primary (eDP-1) and external (HDMI-2)
DricomDragon 4 years ago
parent
commit
abacc53398

+ 3 - 0
Install/Templates/home/config/regolith/Xresources

@@ -14,6 +14,9 @@ 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
+
 !- Workspaces
 i3-wm.workspace.01.key: 7
 i3-wm.workspace.02.key: 5

+ 8 - 0
Install/Templates/home/config/regolith/i3/config

@@ -340,6 +340,14 @@ 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+grave
+bindsym $mod+$i3-wm.binding.move_work_ext move workspace to output HDMI-2
+
+## Modify // Move workspace to internal monitor // <><Shift><PgDown> ##
+set_from_resource $i3-wm.binding.move_work_int i3-wm.binding.move_work_int Mod1+grave
+bindsym $mod+$i3-wm.binding.move_work_int move workspace to output eDP-1
+
 # Use Mouse+$mod to drag floating windows to their wanted position
 floating_modifier $mod