Hyprland dotfiles
refactor: tidal using pwa
3 files changed, +11 -10
+1-1UserConfigs/UserKeybinds.conf
| @@ -108,7 +108,7 @@ bind = $mainMod SHIFT, C, exec, gnome-calendar | ||
| 108 | 108 | bind = $mainMod, o, exec, $UserScripts/ToggleMinimize.sh hubstaff /home/huncho/Hubstaff/HubstaffClient.bin.x86_64 |
| 109 | 109 | bind = $mainMod shift, p, exec, $UserScripts/ToggleMinimize.sh proton protonvpn-app |
| 110 | 110 | bind = $mainMod, x, exec, $UserScripts/ToggleMinimize.sh ledger ledger |
| 111 | -bind = $mainMod, t, exec, $UserScripts/ToggleMinimize.sh tidal-hifi "tidal-hifi --enable-features=UseOzonePlatform --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations %U" | |
| 111 | +bind = $mainMod, t, exec, $UserScripts/ToggleMinimize.sh chrome-ilbcbhpbmggihnbldpmmbppiclfnifck-Default "/opt/google/chrome/google-chrome --profile-directory=Default --app-id=ilbcbhpbmggihnbldpmmbppiclfnifck" | |
| 112 | 112 | bind = $mainMod, z, exec, $UserScripts/ToggleMinimize.sh zoho zoho-mail-desktop |
| 113 | 113 | bind = $mainMod, g, exec, $UserScripts/ToggleMinimize.sh chrome-fmgjjmmmlfnkbppncabfkddbjimcfncm-Default 'gtk-launch gmail' |
| 114 | 114 | # bind = $mainMod, g, exec, gtk-launch gmail |
+2-1UserConfigs/WindowRules.conf
| @@ -71,4 +71,5 @@ windowrule = workspace 12 silent, match:class ^PLAYWRIGHT$ | ||
| 71 | 71 | windowrule = workspace 11 silent, match:title .*DEBUG.* |
| 72 | 72 | |
| 73 | 73 | # Tidal has a minimizable popup |
| 74 | -windowrule = float on, center on, size monitor_w*0.95 monitor_h*0.9, match:class tidal-hifi | |
| 74 | +windowrule = tag +tidal, match:class chrome-ilbcbhpbmggihnbldpmmbppiclfnifck-Default | |
| 75 | +windowrule = float on, center on, size monitor_w*0.95 monitor_h*0.9, match:tag tidal |
+8-8UserScripts/ToggleMinimize.sh
| @@ -7,19 +7,19 @@ echo "$class $workspace" | ||
| 7 | 7 | |
| 8 | 8 | # Launch app and exit if class is not found |
| 9 | 9 | if [ -z "$details" ]; then |
| 10 | - $2 &>/dev/null & | |
| 11 | - exit 0 | |
| 10 | + $2 &>/dev/null & | |
| 11 | + exit 0 | |
| 12 | 12 | fi |
| 13 | 13 | |
| 14 | 14 | cur_workspace=$(hyprctl activeworkspace -j | jq '.id') |
| 15 | 15 | |
| 16 | 16 | # Toggle minimized |
| 17 | 17 | if [ "$workspace" = "special:minimized" ]; then |
| 18 | - # Bring to current workspace | |
| 19 | - echo "moving to workspace: $cur_workspace" | |
| 20 | - hyprctl dispatch movetoworkspace "$cur_workspace", "class:$class" | |
| 18 | + # Bring to current workspace | |
| 19 | + echo "moving to workspace: $cur_workspace" | |
| 20 | + hyprctl dispatch movetoworkspacesilent "$cur_workspace", "class:$class" | |
| 21 | 21 | else |
| 22 | - # Move to special:minimized | |
| 23 | - echo "moving to minimized workspace" | |
| 24 | - hyprctl dispatch movetoworkspacesilent special:minimized, "class:$class" | |
| 22 | + # Move to special:minimized | |
| 23 | + echo "moving to minimized workspace" | |
| 24 | + hyprctl dispatch movetoworkspacesilent special:minimized, "class:$class" | |
| 25 | 25 | fi |