initial commit
This commit is contained in:
17
hypr/scripts/powermenu.sh
Executable file
17
hypr/scripts/powermenu.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
op=$( echo -e " Shutdown\n Reboot\n Suspend\n Lock" | wofi --dmenu | awk '{print tolower($2)}' )
|
||||
|
||||
case $op in
|
||||
shutdown)
|
||||
shutdown now
|
||||
;;
|
||||
reboot)
|
||||
;&
|
||||
suspend)
|
||||
systemctl $op
|
||||
;;
|
||||
lock)
|
||||
hyprlock
|
||||
;;
|
||||
esac
|
13
hypr/scripts/quotes.py
Executable file
13
hypr/scripts/quotes.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import requests
|
||||
|
||||
res = requests.get('https://zenquotes.io/api/random')
|
||||
|
||||
if not res:
|
||||
exit(1)
|
||||
|
||||
json = res.json()
|
||||
data = json[0]
|
||||
|
||||
print(f"{data['q']}\n -- {data['a']}")
|
10
hypr/scripts/xdg-portal-hyprland.sh
Executable file
10
hypr/scripts/xdg-portal-hyprland.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sleep 1
|
||||
killall xdg-desktop-portal-hyprland
|
||||
killall xdg-desktop-portal-wlr
|
||||
killall xdg-desktop-portal
|
||||
/usr/lib/xdg-desktop-portal-hyprland &
|
||||
|
||||
sleep 2
|
||||
/usr/lib/xdg-desktop-portal &
|
Reference in New Issue
Block a user