rename script to better avoid unwanted auto-suggestions.

This commit is contained in:
2025-12-22 00:36:27 +08:00
parent 1a286af126
commit 78ca119a76
4 changed files with 9 additions and 6 deletions

View File

@@ -6,8 +6,8 @@ binds {
Mod+E hotkey-overlay-title="Explorer (yazi)" { spawn "foot" "yazi"; } Mod+E hotkey-overlay-title="Explorer (yazi)" { spawn "foot" "yazi"; }
//Shift+Mod+Return hotkey-overlay-title="Steam" { spawn "steam"; } //Shift+Mod+Return hotkey-overlay-title="Steam" { spawn "steam"; }
Mod+F12 hotkey-overlay-title="Open Projects ... (VSCode)" { spawn "~/.niri-dotfiles/bin/fuzzel-vsc-entries.sh"; } Mod+F12 hotkey-overlay-title="Open Projects ... (VSCode)" { spawn ".fuzzel-vscode"; }
Mod+Space hotkey-overlay-title="Run a command ... (fuzzel)" { spawn "~/.niri-dotfiles/bin/fuzzel-win+r.sh"; } Mod+Space hotkey-overlay-title="Run a command ... (fuzzel)" { spawn ".fuzzel-startb"; }
// Applications such as remote-desktop clients and software KVM switches may // Applications such as remote-desktop clients and software KVM switches may
// request that niri stops processing the keyboard shortcuts defined here // request that niri stops processing the keyboard shortcuts defined here
@@ -21,7 +21,7 @@ binds {
XF86PowerOff hotkey-overlay-title="Exit niri" { quit; } XF86PowerOff hotkey-overlay-title="Exit niri" { quit; }
Super+Escape hotkey-overlay-title="Lock the Screen (gtklock)" { spawn "gtklock" "-d"; } Super+Escape hotkey-overlay-title="Lock the Screen (gtklock)" { spawn "gtklock" "-d"; }
Mod+Delete hotkey-overlay-title="Lock screen and Hibernate ..." allow-when-locked=true { Mod+Delete hotkey-overlay-title="Lock screen and Hibernate ..." allow-when-locked=true {
spawn-sh "(pgrep gtklock || gtklock -d) && sleep 1 && systemctl hibernate"; spawn-sh "(pgrep gtklock || gtklock -d) && sleep 1.5 && systemctl hibernate";
} }
XF86AudioRaiseVolume hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; } XF86AudioRaiseVolume hotkey-overlay-title=null allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }

View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
option=$(fuzzel --dmenu --prompt-only="Command to execute: ") option=$(fuzzel --dmenu --prompt-only="Command to execute: ")
[ -z "$option" ] || runbg -- $option [ -z "$option" ] || startb -- $option

View File

@@ -12,4 +12,4 @@ for item in $(ls $desktop); do
done done
fsarg=$(echo -en "$options" | fuzzel --dmenu --prompt="Open Project with VSCode:") fsarg=$(echo -en "$options" | fuzzel --dmenu --prompt="Open Project with VSCode:")
[ -z "$fsarg" ] || runbg -- code "$desktop/$fsarg" [ -z "$fsarg" ] || startb -- code "$desktop/$fsarg"

View File

@@ -1,11 +1,14 @@
#!/bin/bash #!/bin/bash
#systemd-run --user --scope --slice=YukiLauncher.slice --unit="$1-$$".scope /bin/sh -c '"$@"' _ "$@" # like `start /b` in Windows CMD.
# goddamn nvm-sh !!! # goddamn nvm-sh !!!
# have to update PATH before launch # have to update PATH before launch
PATH=$(zsh -c -i 'echo $PATH') PATH=$(zsh -c -i 'echo $PATH')
export PATH export PATH
# https://vescrity.github.io/post/systemd-desktop-suspend/
#systemd-run --user --scope --slice=YukiLauncher.slice --unit="$1-$$".scope /bin/sh -c '"$@"' _ "$@"
# Generated by GitHub Copilot. # Generated by GitHub Copilot.
# start-bg-journal.sh - start a command as a detached daemon and send stdout/stderr to systemd-journald # start-bg-journal.sh - start a command as a detached daemon and send stdout/stderr to systemd-journald
# #