mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-01-08 22:16:47 +00:00
[polybar] Add vivaldi icon to polywins
This commit is contained in:
parent
b010ffb1ed
commit
1e87c687f9
@ -55,6 +55,7 @@ get_icon_by_name()
|
|||||||
[brave-browser]=
|
[brave-browser]=
|
||||||
[firefox]=
|
[firefox]=
|
||||||
[chromium]=
|
[chromium]=
|
||||||
|
[vivaldi-stable]=
|
||||||
[tor]=
|
[tor]=
|
||||||
[nextcloud]=
|
[nextcloud]=
|
||||||
[gnome-calculator]=
|
[gnome-calculator]=
|
||||||
@ -90,9 +91,7 @@ raise_or_minimize() {
|
|||||||
if [ "$(get_active_wid)" = "$1" ]; then
|
if [ "$(get_active_wid)" = "$1" ]; then
|
||||||
# wmctrl -ir "$1" -b toggle,hidden
|
# wmctrl -ir "$1" -b toggle,hidden
|
||||||
xdotool windowminimize "$(xdotool getactivewindow)"
|
xdotool windowminimize "$(xdotool getactivewindow)"
|
||||||
echo "minimize" >> /dev/shm/log
|
|
||||||
else
|
else
|
||||||
echo "positos" >> /dev/shm/log
|
|
||||||
wmctrl -ia "$1"
|
wmctrl -ia "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -215,7 +214,7 @@ generate_window_list() {
|
|||||||
case "$show" in
|
case "$show" in
|
||||||
"window_classname") w_name="$cname" ;;
|
"window_classname") w_name="$cname" ;;
|
||||||
"window_title") w_name="$title" ;;
|
"window_title") w_name="$title" ;;
|
||||||
"icon") w_name=$(get_icon_by_name "$cname")
|
"icon") w_name=$(get_icon_by_name "$cname") ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Use user-selected character case
|
# Use user-selected character case
|
||||||
|
Loading…
Reference in New Issue
Block a user