mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 17:40:42 +00:00
Move to focusworkspaceoncurrentmonitor (from custom script)
For a long time now, I've been using a custom shell script to handle focusing to a workspace, which handled (xmonad-like) monitor swapping. However recently, the option `focusworkspaceoncurrentmonitor` has been added to Hyprland, which does the exact same. That means the script is no longer necessary and we can move to the new built-in option.
This commit is contained in:
parent
7ab53d2654
commit
b51d136c0c
6 changed files with 10 additions and 39 deletions
|
@ -4,8 +4,7 @@
|
|||
source "./scripts/include"
|
||||
|
||||
if [ "$1" = "--switch" ]; then
|
||||
$HOME/.local/bin/scripts/gui/hyprland/swap-workspace "$2" >/dev/null
|
||||
# hyprctl dispatch workspace "$2" >/dev/null
|
||||
hyprctl dispatch focusworkspaceoncurrentmonitor "$2" >/dev/null
|
||||
elif [ "$1" = "--loop" ]; then
|
||||
hyprland_ipc "workspace|createworkspace|destroyworkspace" | ./scripts/workspaces.py "$@"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue