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 "";
|
options.local.DE.dwm.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
config = lib.mkIf config.local.DE.dwm.enable {
|
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.gvfs.enable = true;
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager = {
|
displayManager = {
|
||||||
sessionCommands = ''
|
sessionCommands = ''
|
||||||
feh --bg-center "${self.packages.images}/recursion.png"
|
feh --bg-center "${self.packages.images}/recursion.png"
|
||||||
numlockx
|
numlockx
|
||||||
picom &
|
systemctl --user start sxhkd
|
||||||
sxhkd &
|
systemctl --user start picom
|
||||||
'';
|
'';
|
||||||
defaultSession = "none+dwm";
|
defaultSession = "none+dwm";
|
||||||
};
|
};
|
||||||
|
|
@ -51,20 +74,11 @@
|
||||||
maim
|
maim
|
||||||
playerctl
|
playerctl
|
||||||
xclip
|
xclip
|
||||||
alsa-utils
|
|
||||||
feh
|
feh
|
||||||
numlockx
|
numlockx
|
||||||
picom
|
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 = ''
|
etc."sxhkd/sxhkdrc".text = ''
|
||||||
XF86AudioPlay
|
XF86AudioPlay
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue