summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/bspwm/bspwmrc12
-rw-r--r--.config/polybar/powermenu.ini4
-rw-r--r--.config/sxhkd/sxhkdrc5
-rw-r--r--.config/x11/xprofile6
4 files changed, 20 insertions, 7 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index 09197d8..1ccfe1f 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -1,11 +1,19 @@
#!/bin/sh
+#
+# Always running programs.
+#
+
+feh --bg-fill ~/pix/wp/starwars_1.png
+# Since polybar_panel already manages the starting
+# of the actual polybar(s), just check if (any) polybar
+# is running, if not, run the specified command to run them.
+# The reload of polybar_panel is managed by sxhkd, as it should be.
+pgrep -x polybar > /dev/null || polybar_panel
# Checks if sxhkd is running, if not, run it.
# Also use setsid so it's appart from status bar
# and the kill doesn't ruin it.
-feh --bg-fill ~/pix/wp/starwars_1.png
pgrep -x sxhkd > /dev/null || setsid sxhkd &
-polybar_panel
# This starts or restarts panel. Be careful
# with pkill, if neither of these two programs have
diff --git a/.config/polybar/powermenu.ini b/.config/polybar/powermenu.ini
index 83950f8..aba6aad 100644
--- a/.config/polybar/powermenu.ini
+++ b/.config/polybar/powermenu.ini
@@ -37,9 +37,9 @@ menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
-menu-1-1-exec = sudo reboot
+menu-1-1-exec = reboot
menu-2-0 = power off
-menu-2-0-exec = sudo poweroff
+menu-2-0-exec = shutdown now
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 45b70d8..77b3671 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -27,6 +27,11 @@ super + Delete
{_,super + , super + shift + } Print
$SSMGR {gui,full -c,full -p $SSPATH}
+# Reload polybar(s).
+# Inside polybar_panel, it actually kills it and then starts it again.
+super + shift + p
+ polybar_panel
+
#
# bspwm keybindings.
#
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index 1ba3c8f..245ef75 100644
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -3,10 +3,9 @@
# This is run when a display manager logs in.
# Used as source for ~/.xinitrc.
-setsid sxhkd &
-numlockx on &
-xsetroot -cursor_name left_ptr &
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources &
+xsetroot -cursor_name left_ptr &
+numlockx on &
nm-applet &
picom &
dunst &
@@ -15,6 +14,7 @@ flameshot &
# Not really needed when using startx (in general the config in ~/.profile)
# pulseaudio --start &
pasystray &
+setsid sxhkd &
# At the end, start the WM.
exec bspwm