mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
Merge branch 'wayland' of https://github.com/eoli3n/dotfiles into wayland
This commit is contained in:
commit
df99ad9d8c
@ -3,7 +3,7 @@
|
||||
{% if ansible_hostname == "work" %}
|
||||
action=$(echo -e "lock\nhibernate\nlogout\nshutdown\nreboot" | rofi -dmenu -p "power:")
|
||||
{% else %}
|
||||
action=$(echo -e "suspend\nlock\nhibernate\nlogout\nshutdown\nreboot" | rofi -dmenu -p "power:")
|
||||
action=$(echo -e "suspend\nlock\nhibernate\nsuspend-then-hibernate\nlogout\nshutdown\nreboot" | rofi -dmenu -p "power:")
|
||||
{% endif %}
|
||||
|
||||
if [[ "$action" == "lock" ]]
|
||||
@ -16,6 +16,11 @@ then
|
||||
swaylock-fancy && systemctl suspend-then-hibernate && echo '*/reconnect' >~/.weechat/weechat_fifo
|
||||
fi
|
||||
|
||||
if [[ "$action" == "suspend-then-hibernate" ]]
|
||||
then
|
||||
~/.i3/i3lock-fancy-multimonitor/lock && systemctl suspend-then-hibernate && echo '*/reconnect' >~/.weechat/weechat_fifo
|
||||
fi
|
||||
|
||||
if [[ "$action" == "hibernate" ]]
|
||||
then
|
||||
systemctl hibernate
|
||||
|
Loading…
Reference in New Issue
Block a user