Skip to content

Instantly share code, notes, and snippets.

@dardo82
Created February 8, 2025 17:16
Show Gist options
  • Save dardo82/294af8e06d222d6893b0fa0cc27d046b to your computer and use it in GitHub Desktop.
Save dardo82/294af8e06d222d6893b0fa0cc27d046b to your computer and use it in GitHub Desktop.
XFCE4 apps
#!/usr/bin/env zsh
NAWW="_NET_ACTIVE_WINDOW(WINDOW):"
ICON_DIR="/usr/share/icons/hicolor/128x128/apps"
spiral () {
local AWL=$(xprop -root | awk "/${(q)NAWW}/"'{print $5}')
xseticon -id "${AWL/,}" "$1"
}
xfce4 () {
eval "xfce4-$1" &
{
sleep 1
spiral "$ICON_DIR/org.xfce.$1.png"
}
}
xfce4 filemanager
#!/usr/bin/env zsh
NAWW="_NET_ACTIVE_WINDOW(WINDOW):"
ICON_DIR="/usr/share/icons/hicolor/128x128/apps"
spiral () {
local AWL=$(xprop -root | awk "/${(q)NAWW}/"'{print $5}')
xseticon -id "${AWL/,}" "$1"
}
xfce4 () {
eval "xfce4-$1" &
{
sleep 1
spiral "$ICON_DIR/org.xfce.$1.png"
}
}
xfce4 terminal
#!/usr/bin/env zsh
NAWW="_NET_ACTIVE_WINDOW(WINDOW):"
ICON_DIR="/usr/share/icons/hicolor/128x128/apps"
spiral () {
local AWL=$(xprop -root | awk "/${(q)NAWW}/"'{print $5}')
xseticon -id "${AWL/,}" "$1"
}
xfce4 () {
eval "xfce4-$1" &
{
sleep 1
spiral "$ICON_DIR/org.xfce.$1.png"
}
}
xfce4 webbrowser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment