fix(waybar): revert tooltips

This commit is contained in:
Barrett Ruth 2026-02-14 17:35:36 -05:00
parent ee1df8983a
commit 443975fd9b
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 32 additions and 24 deletions

View file

@ -11,7 +11,7 @@ let
mkWaybarTheme = palette: '' mkWaybarTheme = palette: ''
* { color: ${palette.fg}; } * { color: ${palette.fg}; }
window#waybar { background: ${palette.bg}; } window#waybar { background: ${palette.bg}; border-top: 1px solid ${palette.bgAlt}; }
#workspaces button { background: transparent; } #workspaces button { background: transparent; }
#workspaces button.active { box-shadow: inset 0 -2px ${palette.accent}; } #workspaces button.active { box-shadow: inset 0 -2px ${palette.accent}; }
#workspaces button:hover { background: ${palette.bgAlt}; } #workspaces button:hover { background: ${palette.bgAlt}; }
@ -97,9 +97,8 @@ in
}; };
"hyprland/language" = { "hyprland/language" = {
format = "[{}]"; format = "󰌌";
format-en = "QWERTY"; tooltip = true;
format-en-colemak = "Colemak";
tooltip-format = "{long}"; tooltip-format = "{long}";
on-click = "ctl keyboard toggle"; on-click = "ctl keyboard toggle";
}; };
@ -123,8 +122,8 @@ in
}; };
pulseaudio = { pulseaudio = {
format = "{icon} {volume}%"; format = "{icon}";
format-muted = "󰖁 muted"; format-muted = "󰖁";
format-icons = { format-icons = {
default = [ default = [
"󰕿" "󰕿"
@ -133,25 +132,29 @@ in
]; ];
}; };
signal = 1; signal = 1;
tooltip = false; tooltip = true;
tooltip-format = "{volume}%";
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.0"; on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.0";
on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"; on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
}; };
network = { network = {
format-wifi = "󰖩 {essid}"; format-wifi = "󰖩";
format-ethernet = "󰈀 {ifname}"; format-ethernet = "󰈀";
format-disconnected = "󰖪 off"; format-disconnected = "󰖪";
format-disabled = "󰖪 off"; format-disabled = "󰖪";
interval = 10; interval = 10;
tooltip = false; tooltip = true;
tooltip-format-wifi = "{essid} · {signalStrength}%";
tooltip-format-ethernet = "{ifname} · {ipaddr}";
tooltip-format-disconnected = "disconnected";
}; };
battery = { battery = {
format = "{icon} {capacity}%"; format = "{icon}";
format-charging = "{icon} {capacity}%"; format-charging = "{icon}";
format-full = "{icon} {capacity}%"; format-full = "{icon}";
format-icons = ["" "" "" "" ""]; format-icons = ["" "" "" "" ""];
states = { states = {
hi = 30; hi = 30;
@ -167,7 +170,8 @@ in
on-charging-100 = "notify-send -u low 'battery 100%'"; on-charging-100 = "notify-send -u low 'battery 100%'";
}; };
interval = 30; interval = 30;
tooltip = false; tooltip = true;
tooltip-format = "{capacity}% · {timeTo}";
}; };
clock = { clock = {
@ -224,7 +228,11 @@ in
} }
tooltip { tooltip {
border-radius: 4px; border-radius: 0;
}
#custom-power {
padding: 0 16px 0 10px;
} }
''; '';
}; };

View file

@ -24,14 +24,14 @@ spawn_or_focus() {
name="${1}@${scope}" name="${1}@${scope}"
cmd="$2" cmd="$2"
if tmux list-windows -F '#{window_name}' | grep -Fx "$name" >/dev/null; then idx=$(tmux list-windows -F '#{window_name} #{window_index}' | awk -F'\t' -v n="$name" '$1 == n { print $2; exit }')
tmux select-window -t "${name}"
if [ -n "$idx" ]; then
tmux select-window -t ":${idx}"
elif [ -n "$cmd" ]; then
tmux new-window -c '#{pane_current_path}' -n "${name}" "$cmd"
else else
if [ -n "$cmd" ]; then tmux new-window -c '#{pane_current_path}' -n "${name}"
tmux new-window -c '#{pane_current_path}' -n "${name}" "$cmd"
else
tmux new-window -c '#{pane_current_path}' -n "${name}"
fi
fi fi
} }