Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Starts single instance of program in command line
- # Usefully assigned to a system hotkey shortcut
- # Usage "wm application"
- # System calls may need full path
- case "$1" in
- ferdium)
- run="/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=ferdium --file-forwarding org.ferdium.Ferdium @@u %U @@"
- ;;
- # Add more cases here for other programs
- *)
- # Default action if no match is found
- run=$1
- ;;
- esac
- sh -c "wmctrl -x -a $1 || $run"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement