Files
simple-hyprland/configs/waybar/scripts/test.sh

5 lines
105 B
Bash
Executable File

#!/bin/bash
pid=$(hyprctl activewindow -j | jq -r '.pid')
exe=$(readlink /proc/$pid/exe)
basename "$exe"