diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2024-06-07 16:33:38 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2024-06-07 16:33:38 +0900 |
| commit | aa7beb9d88ece969103b86063cd7559fb293b6c2 (patch) | |
| tree | 7bcd4a119182162dd0be64ee2f2e26c34a9c0a80 /config/hypr | |
| parent | 25259738a8159702c011bae694f5ee728db10249 (diff) | |
Waybar CSS styles clean up
Added Kill active window
Diffstat (limited to 'config/hypr')
| -rw-r--r-- | config/hypr/configs/Keybinds.conf | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/KeyHints.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/KillActiveProcess.sh | 11 |
3 files changed, 14 insertions, 3 deletions
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index dbec4d10..30486de2 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -12,8 +12,8 @@ $UserScripts = $HOME/.config/hypr/UserScripts bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = $mainMod, Q, killactive, -bind = $mainMod, F, fullscreen -bind = $mainMod SHIFT, Q, closewindow, +bind = $mainMod, F, fullscreen +bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh bind = $mainMod SHIFT, F, togglefloating, bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 612038d2..85fb1dc6 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -45,7 +45,7 @@ yad --width=$dynamic_width --height=$dynamic_height \ " T" "Open File Manager" "(Thunar)" \ " S" "Google Search" "(rofi)" \ " Q" "close active window" "(not kill)" \ -" Shift Q " "closes a specified window" "(window)" \ +" Shift Q " "kills an active window" "(kill)" \ " Z" "Desktop Zoom" "(pyprland)" \ " Alt V" "Clipboard Manager" "(cliphist)" \ " W" "Choose wallpaper" "(Wallpaper Menu)" \ diff --git a/config/hypr/scripts/KillActiveProcess.sh b/config/hypr/scripts/KillActiveProcess.sh new file mode 100755 index 00000000..bee146d7 --- /dev/null +++ b/config/hypr/scripts/KillActiveProcess.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## + +# Copied from Discord post. Thanks to @Zorg + + +# Get id of an active window +active_pid=$(hyprctl activewindow | grep -o 'pid: [0-9]*' | cut -d' ' -f2) + +# Close active window +kill $active_pid
\ No newline at end of file |
