Holly Bistoofly!!! I now have a decent #Polybar working with #WindowMaker - as in not interfering with snaped windows 🎉🕺🪩

Domingo de #update @archlinux

#i3wm --> tiling window manager
#polybar --> status bar
#kew --> reproductor musical
#tmux --> multiplexor terminal

GitHub - adi1090x/polybar-themes: A huge collection of polybar themes with different styles, colors and variants.

A huge collection of polybar themes with different styles, colors and variants. - adi1090x/polybar-themes

GitHub

Не понимаю почему с недавнего времени стала проблема запуска #polybar, но при загрузке системы панель перестала отображаться. Код запуска

if [ -x /usr/bin/polybar ]; then bash $HOME/.config/polybar/launch.sh fi

Такое было в прошлом, и я так и не понял каким образом решилось.

Поднадоело это "работаю/не работаю", написал юнит для #systemd

[Unit] Description=Polybar status bar After=graphical-session.target [Service] Type=simple ExecStart=/usr/bin/polybar top Restart=on-failure RestartSec=3 [Install] WantedBy=default.target

Оно работает 💪

Fixed

Finally worked out how to toggle #polybar in #bspwm using a custom script designed for my #OpenBSD #KSH setup. There may be better ways of doing this in less code and if you know then I'd be happy to adapt but at the moment this works for me.

#!/bin/sh

get_polybar_id() {
# List monitors and extract names
monitors=$(polybar --list-monitors | cut -d":" -f1)

# Get PIDs of polybar processes
pids=$(pgrep polybar)

# Get the currently focused monitor name
focused=$(bspc query -M -m focused --names)

# Convert monitors to an array
set -- "$monitors"
mon_count=$# # Number of monitors

# Initialize index
ind=0

# Find the index of the focused monitor
for monitor in $monitors; do
ind=$((ind + 1))
if [ "$monitor" = "$focused" ]; then
break
fi
done

# Extract the correct PID based on the index
# Convert pids into an array using space as a delimiter
pid_array=$(echo "$pids" | tr ' ' '\n')
poly_id=$(echo "$pid_array" | sed -n "${ind}p")

# Check if poly_id is set; if not, exit with an error
if [ -z "$poly_id" ]; then
echo "No PID found for the focused monitor."
exit 1
fi
}

get_polybar_id

# Define the state file
STATE_FILE="/tmp/toggle_state-$poly_id.txt"

# Check if the state file exists, create it if it doesn't
if [ ! -f "$STATE_FILE" ]; then
echo "show" > "$STATE_FILE" # Default state
fi

# Read the current state
CURRENT_STATE=$(cat "$STATE_FILE")

# Toggle the state
if [ "$CURRENT_STATE" == "show" ]; then
echo "hide" > "$STATE_FILE"
polybar-msg -p "$poly_id" cmd hide | bspc config -m "$focused" top_padding 0
else
echo "show" > "$STATE_FILE"
polybar-msg -p "$poly_id" cmd show
fi
Just add the following line to your sxhkdrc script.

# Toggle Polybar
super + z
bar-toggle.sh

Пока ждал когда расчехлится #vpn раскрасил верхнюю панельку, вроде ничёшно так смотрится 😎

#archlinux #polybar

I'm more of a minimalist.

#unixporn #arch #i3 #polybar

don't suppose any polybar users can tell me how i can reduce the dark blue baground height on these ramp widgets? i tried setting a few margins and padding but nothing seems to take affect. i basically don't want the bg of the graph to be a little bit less than the bg of the bar, if possible. i suspect not.

#linux #polybar

Here is my current dual-monitor layout.

Left monitor is my laptop, featuring apps like TickTick or Teams.
Right monitor is my main / focus screen, where everything else happens.

#i3wm #polybar #catppuccin

Found a Lil program. That outputs info into a scrolling marquee in my terminal. So I made a quick bash script of <!# /bin/bash exec fastfetch -l none |skroll >
Now I just need to find a way to put it in my #polybar #linux