mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
hyprland: Remove tags script
Moving windows one by one guarantees their order, which is something this script was unable to achieve.
This commit is contained in:
parent
d06d47f76a
commit
13bde07ee7
@ -170,16 +170,6 @@ let VARIABLES = import ../../src/variables.nix; in {
|
||||
bind = SUPER_SHIFT, 8, movetoworkspace, 8
|
||||
bind = SUPER_SHIFT, 9, movetoworkspace, 9
|
||||
bind = SUPER_SHIFT, 0, movetoworkspace, 10
|
||||
bind = SUPER_CTRL, 1, exec, ~/.config/hypr/tags.sh 1
|
||||
bind = SUPER_CTRL, 2, exec, ~/.config/hypr/tags.sh 2
|
||||
bind = SUPER_CTRL, 3, exec, ~/.config/hypr/tags.sh 3
|
||||
bind = SUPER_CTRL, 4, exec, ~/.config/hypr/tags.sh 4
|
||||
bind = SUPER_CTRL, 5, exec, ~/.config/hypr/tags.sh 5
|
||||
bind = SUPER_CTRL, 6, exec, ~/.config/hypr/tags.sh 6
|
||||
bind = SUPER_CTRL, 7, exec, ~/.config/hypr/tags.sh 7
|
||||
bind = SUPER_CTRL, 8, exec, ~/.config/hypr/tags.sh 8
|
||||
bind = SUPER_CTRL, 9, exec, ~/.config/hypr/tags.sh 9
|
||||
bind = SUPER_CTRL, 0, exec, ~/.config/hypr/tags.sh 10
|
||||
|
||||
layerrule = blur,waybar
|
||||
layerrule = blur,rofi
|
||||
@ -213,7 +203,6 @@ let VARIABLES = import ../../src/variables.nix; in {
|
||||
vfr = no
|
||||
}
|
||||
'';
|
||||
xdg.configFile."hypr/tags.sh".source = ./tags.sh;
|
||||
|
||||
home.file.".icons/default/index.theme".text = /* ini */ ''
|
||||
[icon theme]
|
||||
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Tag-like script that moves windows from X workspace to the current workspace
|
||||
|
||||
# Get IDs of windows on the other workspace
|
||||
ids="$(hyprctl clients -j | jq -r ".[] | select(.workspace.id == "$1") | .address")"
|
||||
|
||||
# Move those windows to the current workspace
|
||||
for id in $ids; do
|
||||
hyprctl dispatch movetoworkspacesilent "$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .activeWorkspace.id')",address:"$id"
|
||||
hyprctl dispatch focuswindow address:"$id"
|
||||
done
|
Loading…
Reference in New Issue
Block a user