Compare commits
No commits in common. "180a87464cc5cf87ae6a49318e9158dc05cd4800" and "8014e1395055ff13f3f3335cd9396a38900d77aa" have entirely different histories.
180a87464c
...
8014e13950
7 changed files with 17 additions and 8 deletions
|
@ -15,7 +15,7 @@ in
|
|||
enable = true;
|
||||
theme = theme.gtkTheme pkgs;
|
||||
};
|
||||
background = theme.wallpaper;
|
||||
background = ../modules/wallpapers/${theme.wallpaper};
|
||||
};
|
||||
defaultSession = "none+i3";
|
||||
};
|
||||
|
|
|
@ -19,7 +19,7 @@ in
|
|||
../modules/terminal
|
||||
];
|
||||
|
||||
home.file."./.background-image".source = theme.wallpaper;
|
||||
home.file."./.background-image".source = ../modules/wallpapers/${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
|
||||
wmctrl # For rofi power menu
|
||||
xclip # Copying screenshots to clipboard
|
||||
];
|
||||
|
||||
# Screenshots
|
||||
|
@ -69,10 +69,7 @@ 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" = let rofi-power = pkgs.substituteAll {
|
||||
src = ./power.sh;
|
||||
isExecutable = true;
|
||||
}; in "exec ${rofi-power}";
|
||||
"Mod1+Q" = "exec /etc/profiles/per-user/elnu/bin/rofi-power";
|
||||
|
||||
# Audio controls
|
||||
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%";
|
||||
|
|
|
@ -4,6 +4,10 @@ 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;
|
||||
|
|
9
modules/rofi/power.nix
Normal file
9
modules/rofi/power.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, substituteAll }:
|
||||
|
||||
substituteAll {
|
||||
name = "rofi-power";
|
||||
src = ./power.sh;
|
||||
|
||||
dir = "bin";
|
||||
isExecutable = true;
|
||||
}
|
|
@ -9,4 +9,3 @@ 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…
Add table
Add a link
Reference in a new issue