fixup! 🚀 add script for changing wallpaper

This commit is contained in:
Moritz Böhme 2022-02-07 14:24:24 +01:00
parent 469638fc67
commit e3b2846aa0
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5
2 changed files with 14 additions and 6 deletions

View file

@ -43,7 +43,7 @@
}; };
startupPrograms = [ startupPrograms = [
"${pkgs.systemd}/bin/systemctl --user start polybar.service" "${pkgs.systemd}/bin/systemctl --user start polybar.service"
"feh --bg-fill ~/.config/wallpaper/dracula.png" "randomWallpaper"
"synology-drive" "synology-drive"
]; ];
extraConfig = builtins.readFile ./bspwmrc; extraConfig = builtins.readFile ./bspwmrc;
@ -54,10 +54,6 @@
extraConfig = builtins.readFile ./sxhkdrc; extraConfig = builtins.readFile ./sxhkdrc;
}; };
xdg = {
enable = true;
configFile = { "wallpaper/dracula.png" = { source = ./dracula.png; }; };
};
home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ]; home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
}; };
} }

View file

@ -2,7 +2,19 @@
{ {
imports = [ ./apps ./bspwm ./polybar ./gtk.nix ]; imports = [ ./apps ./bspwm ./polybar ./gtk.nix ];
home-manager.users.moritz = { services.unclutter.enable = true; }; home-manager.users.moritz = {
services.unclutter.enable = true;
xdg = {
enable = true;
configFile = {
"wallpapers/" = {
source = ./wallpapers;
recursive = true;
};
};
};
};
# Remap capslock to esc and shift + capslock to capslock # Remap capslock to esc and shift + capslock to capslock
services.xserver.xkbOptions = services.xserver.xkbOptions =
"terminate:ctrl_alt_bksp,caps:escape_shifted_capslock"; "terminate:ctrl_alt_bksp,caps:escape_shifted_capslock";