mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-07-16 22:21:55 +08:00
fix: update unfuck script
This commit is contained in:
parent
287f3d2a7c
commit
2052982525
1 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ unfuckable=(
|
|||
"spotify"
|
||||
"audio"
|
||||
"screenlock"
|
||||
"hyprland_portal"
|
||||
)
|
||||
|
||||
usage() {
|
||||
|
|
@ -84,6 +85,15 @@ unfuck_screenlock() {
|
|||
hyprctl --instance 0 'dispatch exec hyprlock'
|
||||
}
|
||||
|
||||
unfuck_hyprland_portal() {
|
||||
sleep 4
|
||||
killall -e xdg-desktop-portal-hyprland
|
||||
killall xdg-desktop-portal
|
||||
/usr/lib/xdg-desktop-portal-hyprland &
|
||||
sleep 4
|
||||
/usr/lib/xdg-desktop-portal &
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"")
|
||||
echo "what is fucked?"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue