fixing appname

This commit is contained in:
Chris Cochrun 2023-04-10 11:07:27 -05:00
parent d412ca8140
commit 9a12e445e9

View file

@ -5,15 +5,15 @@
icontheme=$(grep "gtk-icon-theme-name" "$HOME"/.config/gtk-3.0/settings.ini | cut --delimiter="=" -f 2) icontheme=$(grep "gtk-icon-theme-name" "$HOME"/.config/gtk-3.0/settings.ini | cut --delimiter="=" -f 2)
workspaces() { workspaces() {
if [[ ${1:0:12} == "activewindow" ]]; then #set focused workspace # if [[ ${1:0:12} == "activewindowv2" ]]; then
string=${1:14} # fi
echo $string
export title=$(echo $string | sed 's/.*,//') if [[ ${1:0:12} == "activewindow" ]]; then #set focused workspace
class="${string/,*/}" line=$(hyprctl activewindow | rg Window | cut -f 4- -d ' ' | sed 's/://')
# export title=${string/,/, } class=$(hyprctl activewindow | rg class | awk '{print $2}')
[[ $title == ", " ]] && unset title export iconpath=$(geticons "$class" -s 16 -c 1 -t "$icontheme" | head -n 1)
export iconpath=$(geticons "$class" -s 16 -c 1 -t "$icontheme" | head -n 1) export title=$line
fi fi
} }
module() { module() {