use homemanager bspwm and sxhkd for config

dev-docs
Moritz Böhme 2021-10-19 11:12:40 +02:00
parent df62235064
commit aa726e1ccb
2 changed files with 26 additions and 26 deletions

View File

@ -13,24 +13,10 @@ done
# CONFIGURATION #
bspc config border_width 2
bspc config window_gap 5
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
# Dracula theme #
bspc config focused_border_color "#bd93f9"
# WINDOW RULES #
bspc rule -a Steam state=tiled
bspc rule -a Zathura state=tiled
bspc rule -a Emacs state=tiled
bspc rule -a 'Emacs:emacs-everywhere' state=floating sticky=on
bspc rule -a feh state=floating
# AUTOSTART #
[[ ! $(pidof -x sxhkd) ]] && sxhkd &
feh --bg-fill ~/.config/wallpaper/dracula.png
systemctl --user start polybar

View File

@ -22,21 +22,35 @@
console.keyMap = "de";
home-manager.users.moritz = {
xsession.windowManager.bspwm.enable = true;
xsession.windowManager.bspwm = {
enable = true;
rules = {
"Zathura" = { state = "tiled"; };
"Emacs" = { state = "tiled"; };
"feh" = { state = "floating"; };
};
settings = {
border_width = 2;
window_gap = 5;
borderless_monocle = true;
gapless_monocle = true;
focus_follows_pointer = true;
};
startupPrograms = [
"${pkgs.systemd}/bin/systemctl --user start polybar.service"
"feh --bg-fill ~/.config/wallpaper/dracula.png"
];
extraConfig = builtins.readFile ./bspwmrc;
};
services.sxhkd = {
enable = true;
extraConfig = builtins.readFile ./sxhkdrc;
};
xdg = {
enable = true;
configFile = {
"bspwm/bspwmrc" = {
source = ./bspwmrc;
onChange = "bspc wm -r";
};
"sxhkd/sxhkdrc" = {
source = ./sxhkdrc;
onChange = "pkill -USR1 -x sxhkd";
};
"wallpaper/dracula.png" = { source = ./dracula.png; };
};
configFile = { "wallpaper/dracula.png" = { source = ./dracula.png; }; };
};
home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
};