add alocker to dwm setup

This commit is contained in:
Gerg-L 2024-02-28 21:20:12 -05:00
parent 20533c7a78
commit 5eba8b1cb2
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
2 changed files with 39 additions and 29 deletions

View file

@ -10,7 +10,7 @@ _:
systemd.services = { systemd.services = {
miniflux = { miniflux = {
enable = false; enable = true;
description = "Miniflux service"; description = "Miniflux service";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];

View file

@ -78,36 +78,46 @@
numlockx numlockx
picom picom
sxhkd sxhkd
alock
; ;
}; };
etc."sxhkd/sxhkdrc".text = '' etc = {
XF86AudioPlay "xdg/Xresources".text = ''
playerctl play-pause ALock*input.frame*input: #74b2ff
XF86AudioPause ALock*input.frame*check: #36c692
playerctl play-pause ALock*Input.frame*width: 2
XF86AudioStop '';
playerctl stop "sxhkd/sxhkdrc".text = ''
XF86AudioNext XF86AudioPlay
playerctl next playerctl play-pause
XF86AudioPrev XF86AudioPause
playerctl previous playerctl play-pause
XF86AudioRaiseVolume XF86AudioStop
wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ playerctl stop
XF86AudioLowerVolume XF86AudioNext
wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- playerctl next
XF86AudioMute XF86AudioPrev
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle playerctl previous
Print XF86AudioRaiseVolume
maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+
Print + shift XF86AudioLowerVolume
maim | xclip -selection clipboard -t image/png wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
super + Print XF86AudioMute
maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
super + Print + shift Print
maim -s | xclip -selection clipboard -t image/png maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg
super + ctrl + r Print + shift
pkill -usr1 -x sxhkd maim | xclip -selection clipboard -t image/png
''; super + Print
maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg
super + Print + shift
maim -s | xclip -selection clipboard -t image/png
super + ctrl + r
pkill -usr1 -x sxhkd
super + ctrl + l
sleep 1 && xset dpms force off && alock
'';
};
}; };
}; };
#_file #_file