various changes
This commit is contained in:
parent
e475d172dd
commit
61560dea0f
2 changed files with 47 additions and 44 deletions
|
@ -57,11 +57,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
|
@ -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;
|
||||||
|
@ -89,49 +97,43 @@
|
||||||
|
|
||||||
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
|
||||||
|
'';
|
||||||
|
config = ~/.dotfiles/config/polybar/config.ini;
|
||||||
|
extraConfig = builtins.readFile ~/.dotfiles/config/polybar/modules.ini +
|
||||||
|
builtins.readFile ~/.dotfiles/config/polybar/colors.ini;
|
||||||
|
};
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
services.picom = {
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
enable = true;
|
||||||
while ! pgrep -x bspwm >/dev/null; do sleep 1; done
|
inactiveOpacity = "0.95";
|
||||||
|
opacityRule = [
|
||||||
|
"100:fullscreen"
|
||||||
|
"80 :class_g = 'Polybar'"
|
||||||
|
];
|
||||||
|
blur = true;
|
||||||
|
inactiveDim = "0.1";
|
||||||
|
};
|
||||||
|
|
||||||
# Launch Polybar
|
programs.rofi = {
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
enable = true;
|
||||||
MONITOR=$m polybar --reload bottom &
|
};
|
||||||
done
|
|
||||||
'';
|
programs.emacs.enable = true;
|
||||||
config = {
|
|
||||||
"bar/bottom" = {
|
services.emacs.enable = true;
|
||||||
monitor = "\${env:MONITOR}";
|
|
||||||
bottom = true;
|
home.file.".doom.d" = {
|
||||||
fixed-center = true;
|
source = ~/.dotfiles/config/doom;
|
||||||
width = "100%";
|
recursive = true;
|
||||||
height = 25;
|
onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
|
||||||
background = "\${color.background-alt}";
|
|
||||||
foreground = "\${color.foreground}";
|
|
||||||
line-size = 3;
|
|
||||||
border-size = 0;
|
|
||||||
padding-left = 1;
|
|
||||||
padding-right = 1;
|
|
||||||
module-margin-left = 3;
|
|
||||||
module-margin-right = 3;
|
|
||||||
font-0 = "NotoSans Nerd Font:size=11;0";
|
|
||||||
modules-left = "cpu memory wlan eth battery";
|
|
||||||
modules-center = "bspwm";
|
|
||||||
modules-right = "pulseaudio date powermenu";
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue