From 85edc44c27e461b699660630e3fdd7be19e34a7c Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 17 Feb 2024 01:42:46 +0100 Subject: Added bspwm configs from yatsugatake --- .config/bspwm/bspwmrc | 19 +++++++++++++++++++ .config/bspwm/panel | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100755 .config/bspwm/bspwmrc create mode 100755 .config/bspwm/panel (limited to '.config/bspwm') diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc new file mode 100755 index 0000000..c0a4328 --- /dev/null +++ b/.config/bspwm/bspwmrc @@ -0,0 +1,19 @@ +#!/bin/sh + +pgrep -x sxhkd > /dev/null || sxhkd & +$HOME/.config/bspwm/panel & +xdo above -t $(xdo id -n root) $(xdo id -n lemonbar) + +bspc monitor -d 1 2 3 4 5 6 7 8 9 + +bspc config border_width 2 +bspc config window_gap 8 + +bspc config normal_border_color '#7c6f64' +bspc config focused_border_color '#d79921' + +bspc config split_ratio 0.54 +bspc config borderless_monocle false +bspc config gapless_monocle false +bspc config focus_follows_pointer true +bspc config honor_size_hints true diff --git a/.config/bspwm/panel b/.config/bspwm/panel new file mode 100755 index 0000000..332be93 --- /dev/null +++ b/.config/bspwm/panel @@ -0,0 +1,20 @@ +#!/bin/sh +while true +do + desktops="%{l}" + focused=$(bspc query -D -d focused --names) + for d in $(bspc query -D --names) + do + desktop="%{O4}$d%{O4}" + if [ $focused -eq $d ] + then + desktop="%{F#ddbdae93}%{R}$desktop%{R}${F-}" + else + desktop="%{A:bspc desktop $d -f:}$desktop%{A}" + fi + desktops="$desktops$desktop" + done + dateandtime="$(LC_TIME=pl_PL.UTF-8 date +'%%{c}%A, %d %B, %H:%M')" + echo "$desktops$dateandtime" + sleep 0.1 +done | lemonbar -f "sans:size=10" -F "#d5c4a1" -B "#dd1d2021" -p | sh -- cgit v1.1