From 27eace9c8faae50f91ee9efb798e53732b757417 Mon Sep 17 00:00:00 2001 From: ktyl Date: Fri, 20 Aug 2021 20:22:37 +0100 Subject: [PATCH] remove xfce4, add polybar --- .config/bspwm/autostart | 2 ++ .config/bspwm/bspwmrc | 4 ++-- .config/neofetch/config.conf | 1 - .config/sxhkd/sxhkdrc | 4 ++-- .scripts/bar/launch | 7 +++++++ .scripts/bar/toggle | 16 ++++++++++++++++ 6 files changed, 29 insertions(+), 5 deletions(-) create mode 100755 .scripts/bar/launch create mode 100755 .scripts/bar/toggle diff --git a/.config/bspwm/autostart b/.config/bspwm/autostart index d77bbc5..85d5904 100755 --- a/.config/bspwm/autostart +++ b/.config/bspwm/autostart @@ -2,6 +2,8 @@ sxhkd & # enable keybinds . $SCRIPTS/comp # mblur +. $SCRIPTS/keeb # caps lock -> ctrl+esc +. $SCRIPTS/bar/launch # bar redshift -l 53:0 & # make our eyes less strained diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index b8134ac..b983ef8 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -10,8 +10,8 @@ bspc monitor --reset-desktops 1 2 3 4 5 6 7 8 9 0 bspc config border_width 0 bspc config window_gap 0 -# change this to make space for a bar! -bspc config bottom_padding 37 +bspc config top_padding 27 +bspc config bottom_padding 0 bspc config split_ratio 0.52 bspc config borderless_monocle true diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf index 9cec6b9..fe32939 100644 --- a/.config/neofetch/config.conf +++ b/.config/neofetch/config.conf @@ -10,7 +10,6 @@ print_info() { info "pkg" packages info "shl" shell info "win" wm - prin "dsk" "xfce4" info "mem" memory # info "GPU Driver" gpu_driver # Linux/macOS only diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index cf04c55..4968064 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -6,9 +6,9 @@ super + Return $HOME/.scripts/term.sh -# web browser +# toggle bar super + b - /usr/bin/firefox + $SCRIPTS/bar/toggle # tiny web browser super + s diff --git a/.scripts/bar/launch b/.scripts/bar/launch new file mode 100755 index 0000000..f3c55cf --- /dev/null +++ b/.scripts/bar/launch @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +polybar example & # launch bar +touch $CONFIG/polybar/visible # create a file to keep track of the bar's visibility + # file exists -> bar visible + # file doesnt exist -> bar hidden + diff --git a/.scripts/bar/toggle b/.scripts/bar/toggle new file mode 100755 index 0000000..05ae68c --- /dev/null +++ b/.scripts/bar/toggle @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +visible=$CONFIG/polybar/visible +barheight=27 + +if [ -f $visible ]; then + bspc config top_padding 0 + polybar-msg cmd hide + rm $visible +else + bspc config top_padding 27 + polybar-msg cmd show + touch $visible +fi + +