Skip to content

Commit

Permalink
fix: pull window binding definition out of partial, into root config,…
Browse files Browse the repository at this point in the history
… to prevent decl ordering issues
  • Loading branch information
martin-gontscharow committed Aug 7, 2024
1 parent c95971c commit 1bdd1c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 8 additions & 0 deletions etc/regolith/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ set_from_resource $wm.binding.right wm.binding.right l
set_from_resource $wm.binding.up wm.binding.up k
set_from_resource $wm.binding.down wm.binding.down j

###############################################################################
# Common Window Bindings
###############################################################################
set_from_resource $wm.binding.move_left wm.binding.move_left Shift+h
set_from_resource $wm.binding.move_right wm.binding.move_right Shift+l
set_from_resource $wm.binding.move_up wm.binding.move_up Shift+k
set_from_resource $wm.binding.move_down wm.binding.move_down Shift+j

###############################################################################
# WM Config Partials
###############################################################################
Expand Down
8 changes: 8 additions & 0 deletions etc/regolith/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ set_from_resource $wm.binding.right wm.binding.right l
set_from_resource $wm.binding.up wm.binding.up k
set_from_resource $wm.binding.down wm.binding.down j

###############################################################################
# Common Window Bindings
###############################################################################
set_from_resource $wm.binding.move_left wm.binding.move_left Shift+h
set_from_resource $wm.binding.move_right wm.binding.move_right Shift+l
set_from_resource $wm.binding.move_up wm.binding.move_up Shift+k
set_from_resource $wm.binding.move_down wm.binding.move_down Shift+j

###############################################################################
# WM Config Partials
###############################################################################
Expand Down
4 changes: 0 additions & 4 deletions usr/share/regolith/common/config.d/40_workspace-config
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

## Modify // Window Position // <><Shift> k j h l ##
set_from_resource $wm.binding.move_left wm.binding.move_left Shift+h
set_from_resource $wm.binding.move_right wm.binding.move_right Shift+l
set_from_resource $wm.binding.move_up wm.binding.move_up Shift+k
set_from_resource $wm.binding.move_down wm.binding.move_down Shift+j
bindsym $mod+$wm.binding.move_left move left
bindsym $mod+$wm.binding.move_down move down
bindsym $mod+$wm.binding.move_up move up
Expand Down

0 comments on commit 1bdd1c4

Please sign in to comment.