Created
January 10, 2019 11:57
-
-
Save rien333/be1898701272ce8a9891f1e0dfa526f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
xidfile="/run/user/"$(id -u)"/zathura-tabbed.xid" | |
wmclass="zathura-tabbed" | |
xid=$(cat "$xidfile") && xprop -id "$xid" | |
read xid < <(tabbed -cd -n "$wmclass" -p -1 2> /dev/null) | |
wmctrl -i -r "$xid" -b add,maximized_vert,maximized_horz | |
echo "$xid" > "$xidfile" | |
zathura -e "$xid" "$@" &> /dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment