mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
add alocker to dwm setup
This commit is contained in:
parent
20533c7a78
commit
5eba8b1cb2
2 changed files with 39 additions and 29 deletions
|
|
@ -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" ];
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue