You are not logged in.

#1 2018-09-19 18:03:15

extrapalantine
Member
Registered: 2016-07-15
Posts: 64

[BSPWM] Unnecessary padding at top of screen when invoking lemonbar

I've been using bspwm with lemonbar for a few months, and have been loving it.

The only small issue I'm having is that whenever I invoke lemonbar, I have about 50px of unnecessary vertical padding between the top of the screen and the top of all windows (both in monocle mode and when displaying multiple nodes).

I've tried removing all the spacing-related lined in my lemonbar config, and that only changes the size of the bar itself -- not the padding at the top of the screen.

Here's my lemonbar_feeder script:

#!/bin/bash
 
# Options
width="1110"
height="35"
ssid="nothing"

# Get monitor width so we can center the bar.
resolution="$(xrandr --nograb --current | awk '/\*/ {printf $1; exit}')"
monitor_width="${resolution/x*}"
offset="$((monitor_width / 2 - width / 2))"
geometry="${width}x${height}+400+0"
 
Clock() {
    DATETIME=$(date "+%a %b %d, %H:%M")
 
    echo -n "$DATETIME"
}
 
Battery() {
    BATPERC=$(acpi --battery | cut -d, -f2)
    echo "$BATPERC"
}
 
Wifi() {
    ssid=$(iwgetid |grep ESSID| awk '{print $NF}'|cut -d "\"" -f 2)
    ip=$(ip addr |grep 10|grep 'inet')
    ip=$(echo $ip|cut -d " " -f 2 |awk '{gsub("addr:", "");print}')
    echo -n "$ssid"
    return
}

Volume(){
    pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 2 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | SIZE=10 START="" END="" SEP="━" CHAR1="━" CHAR2="-" awk -F"[][]" '/dB/ { print $2 }' <(amixer sget Master)
}
 
while true; do
    echo -e "%{c}%{F#7E7E7E}%{B#1C1C1C} $(Clock) | $(Battery) | $(Wifi) | $(Volume) %{F-}%{B-}"
    sleep 0.1
done | lemonbar -g $geometry -f "spectrum berry" -f "Font Awesome" -b "#1C1C1C"

Last edited by extrapalantine (2018-09-20 21:40:31)

Offline

Board footer

Powered by FluxBB