Repository navigation
Replies: 1 comment
|
Reqarding the last part I couldn't run |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This guide shows you how to add a simple confirmation step: most apps still close instantly, but for selected ones you’ll need to press
SUPER+Wtwice within 3 seconds.Step 1: Create the Close Confirmation Script
Save the script somewhere. A good convention is
~/.local/bin/close-confirmation.sh.Make it executable:
chmod +x ~/.local/bin/close-confirmation.shStep 2: Update Hyprland Bindings
Edit your Hyprland bindings configuration in
~/.config/hypr/bindings.conf.First, unbind the default shortcut:
unbind = SUPER, WThen add a new binding pointing to your script. Use the full absolute path (since
~is not expanded in Hyprland configs):bindd = SUPER, W, Close active window, exec, /home/your-user/.local/bin/close-confirmation.shFinding Application Class Names
To configure which applications require confirmation:
hyprctl activewindow -j | jq -r '.class'CONFIRM_APPSarray in your scriptAll reactions