Compare commits
No commits in common. "3f72d5fb43d56afa696bd7e78ee661bdb4bbefb6" and "d8f0e7e738a80245232590546888727fba5a305d" have entirely different histories.
3f72d5fb43
...
d8f0e7e738
|
|
@ -17,8 +17,6 @@ application/x-extension-xhtml=firefox.desktop;
|
||||||
application/x-extension-xht=firefox.desktop;
|
application/x-extension-xht=firefox.desktop;
|
||||||
image/png=gimp.desktop;
|
image/png=gimp.desktop;
|
||||||
application/json=nvim.desktop;
|
application/json=nvim.desktop;
|
||||||
video/mp4=mpv.desktop;
|
|
||||||
video/quicktime=mpv.desktop;
|
|
||||||
|
|
||||||
[Default Applications]
|
[Default Applications]
|
||||||
application/x-extension-ics=userapp-Thunderbird-9ZNG41.desktop;
|
application/x-extension-ics=userapp-Thunderbird-9ZNG41.desktop;
|
||||||
|
|
@ -46,5 +44,3 @@ application/xhtml+xml=firefox.desktop
|
||||||
application/x-extension-xhtml=firefox.desktop
|
application/x-extension-xhtml=firefox.desktop
|
||||||
application/x-extension-xht=firefox.desktop
|
application/x-extension-xht=firefox.desktop
|
||||||
application/json=nvim.desktop
|
application/json=nvim.desktop
|
||||||
video/mp4=mpv.desktop
|
|
||||||
video/quicktime=mpv.desktop
|
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,13 @@
|
||||||
"clock",
|
"clock",
|
||||||
"custom/weather",
|
"custom/weather",
|
||||||
"custom/pacman",
|
"custom/pacman",
|
||||||
|
"idle_inhibitor",
|
||||||
"hyprland/submap"
|
"hyprland/submap"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"wlr/workspaces"
|
"wlr/workspaces"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"idle_inhibitor",
|
|
||||||
"hyprland/language",
|
"hyprland/language",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"tray"
|
"tray"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
option="$(printf " Log out\n⏻ Shutdown\n Reboot\n Suspend\n Hibernate" | \
|
option="$(printf "⏻ Shutdown\n Reboot\n Suspend\n Hibernate" | \
|
||||||
wofi --dmenu -p "Session")"
|
wofi --dmenu -p "Session")"
|
||||||
|
|
||||||
dialogue_box() {
|
dialogue_box() {
|
||||||
|
|
@ -8,26 +8,21 @@ dialogue_box() {
|
||||||
--text="$1"
|
--text="$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
dialogue_box "Are you sure?" || exit 0
|
|
||||||
|
|
||||||
case $option in
|
case $option in
|
||||||
*Log\ out)
|
|
||||||
pkill -u $USER
|
|
||||||
;;
|
|
||||||
*Shutdown)
|
*Shutdown)
|
||||||
|
dialogue_box "Are you sure you want to shutdown this computer?" && \
|
||||||
systemctl poweroff -i
|
systemctl poweroff -i
|
||||||
;;
|
;;
|
||||||
*Reboot)
|
*Reboot)
|
||||||
|
dialogue_box "Are you sure you want to reboot this computer?" && \
|
||||||
systemctl reboot -i
|
systemctl reboot -i
|
||||||
;;
|
;;
|
||||||
*Suspend)
|
*Suspend)
|
||||||
~/.local/bin/scripts/system/screenlock &
|
dialogue_box "Are you sure you want to suspend this computer?" && \
|
||||||
sleep 1
|
|
||||||
systemctl suspend -i
|
systemctl suspend -i
|
||||||
;;
|
;;
|
||||||
*Hibernate)
|
*Hibernate)
|
||||||
~/.local/bin/scripts/system/screenlock &
|
dialogue_box "Are you sure you want to hibernate this computer?" && \
|
||||||
sleep 1
|
|
||||||
systemctl hibernate -i
|
systemctl hibernate -i
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue