Compare commits

...

3 Commits

@ -15,7 +15,7 @@ in
enable = true;
theme = theme.gtkTheme pkgs;
};
background = ../modules/wallpapers/${theme.wallpaper};
background = theme.wallpaper;
};
defaultSession = "none+i3";
};

@ -19,7 +19,7 @@ in
../modules/terminal
];
home.file."./.background-image".source = ../modules/wallpapers/${theme.wallpaper};
home.file."./.background-image".source = theme.wallpaper;
programs.home-manager.enable = true;

@ -7,7 +7,7 @@ in with theme.colors; {
# Dependencies
home.packages = with pkgs; [
playerctl # pactl comes with PulseAudio
xclip # Copying screenshots to clipboard
wmctrl # For rofi power menu
];
# Screenshots
@ -69,7 +69,10 @@ in with theme.colors; {
"${mod}+Return" = "exec kitty";
"${mod}+Shift+e" = "exec i3-msg exit"; # bypass default session exit confirmation menu
"${mod}+space" = "exec i3-msg open"; # Open blank space
"Mod1+Q" = "exec /etc/profiles/per-user/elnu/bin/rofi-power";
"Mod1+Q" = let rofi-power = pkgs.substituteAll {
src = ./power.sh;
isExecutable = true;
}; in "exec ${rofi-power}";
# Audio controls
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%";

@ -4,10 +4,6 @@ let
_theme = import ../theme;
theme = _theme.theme; # Theme name
in {
home.packages = with pkgs; [
(pkgs.callPackage ./power.nix { })
wmctrl # TODO: add as dependency of rofi-power
];
programs.rofi = {
enable = true;
inherit theme;

@ -1,9 +0,0 @@
{ pkgs, substituteAll }:
substituteAll {
name = "rofi-power";
src = ./power.sh;
dir = "bin";
isExecutable = true;
}

@ -9,3 +9,4 @@ in
css = lib: lib.strings.concatStringsSep "\n" (lib.attrValues (lib.mapAttrs (k: v: " --${k}: ${v};") theme.colors));
}
// theme // { colors = theme.colors // colors; }
// { wallpaper = ../wallpapers/${theme.wallpaper}; }

Loading…
Cancel
Save