use homemanager bspwm and sxhkd for config
This commit is contained in:
parent
df62235064
commit
aa726e1ccb
2 changed files with 26 additions and 26 deletions
|
@ -13,24 +13,10 @@ done
|
||||||
|
|
||||||
# CONFIGURATION #
|
# 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 #
|
# Dracula theme #
|
||||||
|
|
||||||
bspc config focused_border_color "#bd93f9"
|
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 #
|
# AUTOSTART #
|
||||||
[[ ! $(pidof -x sxhkd) ]] && sxhkd &
|
|
||||||
feh --bg-fill ~/.config/wallpaper/dracula.png
|
feh --bg-fill ~/.config/wallpaper/dracula.png
|
||||||
systemctl --user start polybar
|
|
||||||
|
|
|
@ -22,21 +22,35 @@
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|
||||||
home-manager.users.moritz = {
|
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 = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile = {
|
configFile = { "wallpaper/dracula.png" = { source = ./dracula.png; }; };
|
||||||
"bspwm/bspwmrc" = {
|
|
||||||
source = ./bspwmrc;
|
|
||||||
onChange = "bspc wm -r";
|
|
||||||
};
|
|
||||||
"sxhkd/sxhkdrc" = {
|
|
||||||
source = ./sxhkdrc;
|
|
||||||
onChange = "pkill -USR1 -x sxhkd";
|
|
||||||
};
|
|
||||||
"wallpaper/dracula.png" = { source = ./dracula.png; };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
|
home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue