irongit

feat: proton does minimize toggle

huncholanehuncholaneauthored
parent a65553ccommit 6e2f5ea5e020242b4c4800a251c492ff006ee7b6Browse files

3 files changed, +6 -2

+2-1UserConfigs/UserKeybinds.conf
@@ -103,5 +103,6 @@ bind = $mainMod SHIFT, C, exec, gnome-calendar
103103 # to unbind
104104 #bind = $mainMod ALT, P, submap, reset
105105 #submap = reset
106-bind = $mainMod, h, exec, $UserScripts/ToggleMinimize.sh hubstaff # Move hubstaff to minimized window or current window
106+bind = $mainMod, h, exec, $UserScripts/ToggleMinimize.sh hubstaff /home/huncho/Hubstaff/HubstaffClient.bin.x86_64 # Move hubstaff to minimized window or current window
107107 bind = $mainMod shift, h, exec, foot -a floating-term sh -c 'hyprctl clients | nvim' # Show the current hyprland clients
108+bind = $mainMod shift, p, exec, $UserScripts/ToggleMinimize.sh proton protonvpn-app # Move proton to minimized window or current window
+3-0UserConfigs/WindowRules.conf
@@ -30,3 +30,6 @@ windowrule = float on, center on, match:class Netsoft-com.netsoft.hubstaff
3030
3131 # Floating terminal
3232 windowrule = float on, center on, size monitor_w*0.8 monitor_h*0.8, match:class floating-term
33+
34+# Proton
35+windowrule = float on, center on, size monitor_w*0.8 monitor_h*0.8, match:class protonvpn-app
+1-1UserScripts/ToggleMinimize.sh
@@ -5,7 +5,7 @@ class=$(echo "$details" | grep -oP '(?<=class: ).*')
55
66 # Launch hubstaff and exit if not open
77 if [ -z "$details" ]; then
8- /home/huncho/Hubstaff/HubstaffClient.bin.x86_64 &>/dev/null &
8+ $2 &>/dev/null &
99 exit 0
1010 fi
1111