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)
workspaces() {
if [[ ${1:0:12} == "activewindow" ]]; then #set focused workspace
string=${1:14}
echo $string
export title=$(echo $string | sed 's/.*,//')
class="${string/,*/}"
# export title=${string/,/, }
[[ $title == ", " ]] && unset title
export iconpath=$(geticons "$class" -s 16 -c 1 -t "$icontheme" | head -n 1)
fi
# if [[ ${1:0:12} == "activewindowv2" ]]; then
# fi
if [[ ${1:0:12} == "activewindow" ]]; then #set focused workspace
line=$(hyprctl activewindow | rg Window | cut -f 4- -d ' ' | sed 's/://')
class=$(hyprctl activewindow | rg class | awk '{print $2}')
export iconpath=$(geticons "$class" -s 16 -c 1 -t "$icontheme" | head -n 1)
export title=$line
fi
}
module() {