From 5eba8b1cb2d763e8163545cba67844858a415c08 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Wed, 28 Feb 2024 21:20:12 -0500 Subject: [PATCH] add alocker to dwm setup --- hosts/gerg-desktop/services/miniflux.nix | 2 +- modules/DE/dwm.nix | 66 ++++++++++++++---------- 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/hosts/gerg-desktop/services/miniflux.nix b/hosts/gerg-desktop/services/miniflux.nix index 54a4bda..780f67f 100644 --- a/hosts/gerg-desktop/services/miniflux.nix +++ b/hosts/gerg-desktop/services/miniflux.nix @@ -10,7 +10,7 @@ _: systemd.services = { miniflux = { - enable = false; + enable = true; description = "Miniflux service"; wantedBy = [ "multi-user.target" ]; diff --git a/modules/DE/dwm.nix b/modules/DE/dwm.nix index 18b4fab..2351f53 100644 --- a/modules/DE/dwm.nix +++ b/modules/DE/dwm.nix @@ -78,36 +78,46 @@ numlockx picom sxhkd + alock ; }; - etc."sxhkd/sxhkdrc".text = '' - XF86AudioPlay - playerctl play-pause - XF86AudioPause - playerctl play-pause - XF86AudioStop - playerctl stop - XF86AudioNext - playerctl next - XF86AudioPrev - playerctl previous - XF86AudioRaiseVolume - wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ - XF86AudioLowerVolume - wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- - XF86AudioMute - wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle - Print - maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg - Print + shift - 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 - ''; + etc = { + "xdg/Xresources".text = '' + ALock*input.frame*input: #74b2ff + ALock*input.frame*check: #36c692 + ALock*Input.frame*width: 2 + ''; + "sxhkd/sxhkdrc".text = '' + XF86AudioPlay + playerctl play-pause + XF86AudioPause + playerctl play-pause + XF86AudioStop + playerctl stop + XF86AudioNext + playerctl next + XF86AudioPrev + playerctl previous + XF86AudioRaiseVolume + wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ + XF86AudioLowerVolume + wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- + XF86AudioMute + wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle + Print + maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg + Print + shift + 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