1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-17 21:16:08 +02:00

powermenu swaylock

This commit is contained in:
eoli3n 2022-12-10 17:22:24 +01:00
parent 2f11d8ea56
commit e70c306ca9
4 changed files with 13 additions and 13 deletions

View File

@ -0,0 +1,4 @@
# Defined in - @ line 1
function swaylock --description 'alias swaylock'
swaylock-fancy --font "JetBrains-Mono-Light";
end

View File

@ -15,16 +15,6 @@
src: sway.fish.j2
dest: ~/.config/fish/conf.d/sway.fish
- name: create swaylock dir config
file:
path: ~/.config/swaylock/
state: directory
- name: copy swaylock config
copy:
src: swaylock.config
dest: ~/.config/swaylock/config
- name: copy gsettings importer
copy:
src: import-gsettings
@ -46,3 +36,8 @@
src: "kanshi/by_host/{{ ansible_hostname }}/config"
dest: ~/.config/kanshi/
failed_when: false
- name: fish swaylock-fancy
copy:
src: swaylock.fish
dest: ~/.config/fish/functions

View File

@ -132,6 +132,7 @@ bindsym $mod+less exec variety --next
bindsym $mod+Control+z exec zim
bindsym $mod+Control+t exec nemo
bindsym $mod+Control+p exec pavucontrol
bindsym $mod+Control+b exec blueman-manager
# bindsym spotify
bindsym $mod+Control+left exec playerctl -p spotify previous

View File

@ -4,15 +4,15 @@ action=$(echo -e "suspend\nlock\nlogout\nshutdown\nreboot" | wofi -d -p "power:"
if [[ "$action" == "lock" ]]
then
swaylock-fancy
swaylock
fi
if [[ "$action" == "suspend" ]]
then
{% if ansible_distribution_release == "void" %}
sudo zzz
swaylock && sudo zzz
{% else %}
swaylock-fancy && systemctl suspend && echo '*/reconnect' >~/.weechat/weechat_fifo
swaylock && systemctl suspend
{% endif %}
fi