fix(waybar): revert tooltips
This commit is contained in:
parent
ee1df8983a
commit
443975fd9b
2 changed files with 32 additions and 24 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
10
scripts/mux
10
scripts/mux
|
|
@ -24,15 +24,15 @@ 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}"
|
|
||||||
else
|
if [ -n "$idx" ]; then
|
||||||
if [ -n "$cmd" ]; then
|
tmux select-window -t ":${idx}"
|
||||||
|
elif [ -n "$cmd" ]; then
|
||||||
tmux new-window -c '#{pane_current_path}' -n "${name}" "$cmd"
|
tmux new-window -c '#{pane_current_path}' -n "${name}" "$cmd"
|
||||||
else
|
else
|
||||||
tmux new-window -c '#{pane_current_path}' -n "${name}"
|
tmux new-window -c '#{pane_current_path}' -n "${name}"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pick_session() {
|
pick_session() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue