mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
more sxhkd shenanigans (plus a little picom)
This commit is contained in:
parent
8e31614825
commit
523f47c6ec
1 changed files with 26 additions and 12 deletions
|
|
@ -9,15 +9,38 @@
|
|||
options.local.DE.dwm.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.local.DE.dwm.enable {
|
||||
systemd.user.services = {
|
||||
sxhkd = {
|
||||
path = [ pkgs.sxhkd ];
|
||||
script = "sxhkd -c /etc/sxhkd/sxhkdrc";
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
RestartSec = 2;
|
||||
ExecReload = "pkill -usr1 -x $MAINPID";
|
||||
};
|
||||
};
|
||||
|
||||
picom = {
|
||||
path = [ pkgs.picom ];
|
||||
script = "picom";
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
RestartSec = 2;
|
||||
ExecReload = "pkill -usr1 -x $MAINPID";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.gvfs.enable = true;
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
sessionCommands = ''
|
||||
feh --bg-center "${self.packages.images}/recursion.png"
|
||||
numlockx
|
||||
picom &
|
||||
sxhkd &
|
||||
systemctl --user start sxhkd
|
||||
systemctl --user start picom
|
||||
'';
|
||||
defaultSession = "none+dwm";
|
||||
};
|
||||
|
|
@ -51,20 +74,11 @@
|
|||
maim
|
||||
playerctl
|
||||
xclip
|
||||
alsa-utils
|
||||
feh
|
||||
numlockx
|
||||
picom
|
||||
sxhkd
|
||||
;
|
||||
sxhkd = pkgs.symlinkJoin {
|
||||
name = "sxhkd";
|
||||
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
|
||||
paths = [ pkgs.sxhkd ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/sxhkd \
|
||||
--add-flags "-c /etc/sxhkd/sxhkdrc"
|
||||
'';
|
||||
};
|
||||
};
|
||||
etc."sxhkd/sxhkdrc".text = ''
|
||||
XF86AudioPlay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue