Skip to content

Commit

Permalink
xdotool -> kdotool for wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwh committed Feb 11, 2025
1 parent 0bad81a commit 31b1ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/record-save-application-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# This script should be passed to gpu-screen-recorder with the -sc option, for example:
# gpu-screen-recorder -w screen -f 60 -a default_output -r 60 -sc scripts/record-save-application-name.sh -c mp4 -o "$HOME/Videos"

window=$(xdotool getwindowfocus)
window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "Desktop")
window=$(kdotool getactivewindow)
window_name=$(kdotool getwindowclassname "$window" || kdotool getwindowname "$window" || echo "Desktop")
window_name="$(echo "$window_name" | tr '\0/\\' '_')"

video_dir="$HOME/Videos/shadowplay/$window_name"
Expand Down

0 comments on commit 31b1ac9

Please sign in to comment.