This commit is contained in:
2026-08-21 04:43:52 +03:30
parent af2189a587
commit 9b6b4958ff
9 changed files with 142 additions and 85 deletions
+23 -24
View File
@@ -1,7 +1,5 @@
{ pkgs, ... }:
{ ... }:
{
xsession.windowManager.bspwm.enable = true;
xsession.windowManager.bspwm.package = pkgs.bspwm-unstable;
xsession.windowManager.bspwm.settings = {
border_width = 2;
focused_border_color = "#383838";
@@ -18,36 +16,37 @@
bottom_padding = 0;
};
xsession.windowManager.bspwm.extraConfig = ''
pidb() {
pgrep -x "$1" >/dev/null 2>&1
}
pidb() {
pgrep -x "$1" >/dev/null 2>&1
}
run() {
proc="$1"
cmd="$2"
run() {
proc="$1"
cmd="$2"
if ! pidb "$proc"; then
sh -c "$cmd" &
fi
}
if ! pidb "$proc"; then
sh -c "$cmd" &
fi
}
### }}}
### }}}
### {{{ rerun/start processes
### {{{ rerun/start processes
# piss
run "piss" "piss"
# piss
#run "piss" "piss"
sxhkd
# picom
run "picom" "picom --backend glx"
# picom
run "picom" "picom --backend glx"
# dunst
# run "dunst" "dunst"
# dunst
# run "dunst" "dunst"
# bspbar
# run "bspbar" "bspbar"
# bspbar
# run "bspbar" "bspbar"
xwallpaper --center "$HOME/Wallpapers/nature2art.png"
xwallpaper --center "$HOME/Wallpapers/nature2art.png"
'';
}