Compare commits

...

3 Commits

Author SHA1 Message Date
Harzo 3f72d5fb43 Scripts: lock the screen before suspending and hibernation 2023-06-18 15:51:54 +02:00
Harzo 8a4d5d9337 mimeapps: More MPV associations 2023-06-17 09:57:13 +02:00
Harzo b68a77144f waybar: Move idle_inhibitor to the right 2023-06-17 09:55:57 +02:00
3 changed files with 19 additions and 10 deletions

View File

@ -17,6 +17,8 @@ application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
image/png=gimp.desktop;
application/json=nvim.desktop;
video/mp4=mpv.desktop;
video/quicktime=mpv.desktop;
[Default Applications]
application/x-extension-ics=userapp-Thunderbird-9ZNG41.desktop;
@ -44,3 +46,5 @@ application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
application/json=nvim.desktop
video/mp4=mpv.desktop
video/quicktime=mpv.desktop

View File

@ -7,13 +7,13 @@
"clock",
"custom/weather",
"custom/pacman",
"idle_inhibitor",
"hyprland/submap"
],
"modules-center": [
"wlr/workspaces"
],
"modules-right": [
"idle_inhibitor",
"hyprland/language",
"pulseaudio",
"tray"

View File

@ -1,6 +1,6 @@
#!/bin/sh
option="$(printf "⏻ Shutdown\n Reboot\n Suspend\n Hibernate" | \
option="$(printf "󰍃 Log out\n⏻ Shutdown\n Reboot\n Suspend\n Hibernate" | \
wofi --dmenu -p "Session")"
dialogue_box() {
@ -8,21 +8,26 @@ dialogue_box() {
--text="$1"
}
dialogue_box "Are you sure?" || exit 0
case $option in
*Log\ out)
pkill -u $USER
;;
*Shutdown)
dialogue_box "Are you sure you want to shutdown this computer?" && \
systemctl poweroff -i
systemctl poweroff -i
;;
*Reboot)
dialogue_box "Are you sure you want to reboot this computer?" && \
systemctl reboot -i
systemctl reboot -i
;;
*Suspend)
dialogue_box "Are you sure you want to suspend this computer?" && \
systemctl suspend -i
~/.local/bin/scripts/system/screenlock &
sleep 1
systemctl suspend -i
;;
*Hibernate)
dialogue_box "Are you sure you want to hibernate this computer?" && \
systemctl hibernate -i
~/.local/bin/scripts/system/screenlock &
sleep 1
systemctl hibernate -i
;;
esac