From 8e93f468ef30c502d5c0077629c08efe8f90fd4a Mon Sep 17 00:00:00 2001 From: Salyrus Date: Sun, 5 Dec 2021 09:38:44 +0100 Subject: [PATCH] Updated bspwmrc, polybar scripts. --- bspwm/bspwmrc | 3 +- polybar/.config_backup | 233 +++++++++++++++++++++++++++++++ polybar/config | 59 ++++---- polybar/scripts/bkpctl.sh | 3 + polybar/scripts/brightnessctl.sh | 15 +- polybar/scripts/xbps-updates.sh | 2 +- 6 files changed, 283 insertions(+), 32 deletions(-) create mode 100644 polybar/.config_backup create mode 100755 polybar/scripts/bkpctl.sh diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index a0a31fe..5035363 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -3,6 +3,7 @@ pgrep -x sxhkd > /dev/null || sxhkd & $HOME/.config/polybar/launch.sh +nextcloud --background & nitrogen --set-zoom-fill ~/.wallpapers/sf.jpg bspc monitor -d I II III IV V VI @@ -15,7 +16,6 @@ bspc config borderless_monocle true bspc config gapless_monocle true bspc rule -a Gimp desktop='^8' state=floating follow=on -bspc rule -a Chromium desktop='^2' bspc rule -a mplayer2 state=floating bspc rule -a Kupfer.py focus=on bspc rule -a Screenkey manage=off @@ -24,3 +24,4 @@ bspc rule -a Lxappearance state=floating bspc rule -a blueman-manager state=floating bspc rule -a virt-manager state=floating bspc rule -a Nextcloud state=floating +bspc rule -a Galculator state=floating diff --git a/polybar/.config_backup b/polybar/.config_backup new file mode 100644 index 0000000..083516f --- /dev/null +++ b/polybar/.config_backup @@ -0,0 +1,233 @@ +;========================================================== +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +;========================================================== + +[colors] +;background = ${xrdb:color0:#222} +background = #222 +background-alt = #444 +;foreground = ${xrdb:color7:#222} +foreground = #dfdfdf +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +[bar/example] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 32 +;offset-x = 1% +;offset-y = 1% +radius = 1.0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 4 +border-color = #00000000 + +padding-left = 0 +padding-right = 1 + +module-margin-left = 1 +module-margin-right = 1 + +font-0 = RobotoMono:pixelsize=10;1 +font-1 = noto-fonts-emoji:pixelsize=10;1 + +modules-left = bspwm +modules-center = mpd +modules-right = backlight-acpi battery wlan date powermenu + +tray-position = right +tray-padding = 1 +;tray-background = #0063ff + +wm-restack = bspwm + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/bspwm] +type = internal/bspwm + +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +; Separator in between workspaces +; label-separator = | + +[module/xbacklight] +type = internal/xbacklight + +format =