various changes
This commit is contained in:
parent
e475d172dd
commit
61560dea0f
2 changed files with 47 additions and 44 deletions
|
@ -56,13 +56,14 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
libinput.enable = true;
|
||||||
|
|
||||||
windowManager.bspwm.enable = true;
|
windowManager.bspwm.enable = true;
|
||||||
};
|
};
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
};
|
};
|
||||||
# HOMEMANAGER
|
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
|
|
|
@ -64,6 +64,14 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg = {
|
||||||
|
enable = true;
|
||||||
|
configFile = {
|
||||||
|
"sxhkd/sxhkdrc".source = ~/.dotfiles/config/sxhkd/sxhkdrc;
|
||||||
|
"bspwm/bspwmrc".source = ~/.dotfiles/config/bspwm/bspwmrc;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Kitty
|
# Kitty
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -86,54 +94,48 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.polybar = {
|
services.polybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
script = ''
|
script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
|
||||||
# Terminate already running bar instances
|
MONITOR=$m polybar --reload bottom &
|
||||||
killall -q polybar
|
done
|
||||||
|
'';
|
||||||
# Wait until the processes have been shut down
|
config = ~/.dotfiles/config/polybar/config.ini;
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
extraConfig = builtins.readFile ~/.dotfiles/config/polybar/modules.ini +
|
||||||
while ! pgrep -x bspwm >/dev/null; do sleep 1; done
|
builtins.readFile ~/.dotfiles/config/polybar/colors.ini;
|
||||||
|
};
|
||||||
# Launch Polybar
|
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
services.picom = {
|
||||||
MONITOR=$m polybar --reload bottom &
|
enable = true;
|
||||||
done
|
inactiveOpacity = "0.95";
|
||||||
'';
|
opacityRule = [
|
||||||
config = {
|
"100:fullscreen"
|
||||||
"bar/bottom" = {
|
"80 :class_g = 'Polybar'"
|
||||||
monitor = "\${env:MONITOR}";
|
];
|
||||||
bottom = true;
|
blur = true;
|
||||||
fixed-center = true;
|
inactiveDim = "0.1";
|
||||||
width = "100%";
|
};
|
||||||
height = 25;
|
|
||||||
background = "\${color.background-alt}";
|
programs.rofi = {
|
||||||
foreground = "\${color.foreground}";
|
enable = true;
|
||||||
line-size = 3;
|
};
|
||||||
border-size = 0;
|
|
||||||
padding-left = 1;
|
programs.emacs.enable = true;
|
||||||
padding-right = 1;
|
|
||||||
module-margin-left = 3;
|
services.emacs.enable = true;
|
||||||
module-margin-right = 3;
|
|
||||||
font-0 = "NotoSans Nerd Font:size=11;0";
|
home.file.".doom.d" = {
|
||||||
modules-left = "cpu memory wlan eth battery";
|
source = ~/.dotfiles/config/doom;
|
||||||
modules-center = "bspwm";
|
recursive = true;
|
||||||
modules-right = "pulseaudio date powermenu";
|
onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
|
||||||
tray-position = "right";
|
|
||||||
tray-background = "\${color.background-alt}";
|
|
||||||
tray-padding = 2;
|
|
||||||
wm-restack = "bspwm";
|
|
||||||
cursor-click = "pointer";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
neofetch
|
neofetch
|
||||||
|
feh
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the Home Manager release that your
|
# This value determines the Home Manager release that your
|
||||||
# configuration is compatible with. This helps avoid breakage
|
# configuration is compatible with. This helps avoid breakage
|
||||||
# when a new Home Manager release introduces backwards
|
# when a new Home Manager release introduces backwards
|
||||||
|
|
Loading…
Reference in a new issue