This script uses the xclip and jq bash commands, which you may not have installed.
To install jq: sudo apt-get install -y jq
To install xclip: sudo apt-get install -y xclip
Navigate to your bin
cd /bin
Clone the repo
git clone git@github.com:peterdmarshall/webss.git
Add the folder to your path by adding the following line to the end of ~/.bashrc
export PATH=$PATH:/bin/webss
In order to use keyboard shortcuts on Ubuntu you will also need to edit your /etc/environment file
Append :/bin/webss to the end of the PATH variable in /etc/environment
Make the script executable
cd webss
chmod u+x webss
Make an Imgur account if you do not already have one. Register your application with the imgur api
Copy the generated client ID and paste it into /bin/webss/webss.conf
CLIENT_ID=YOUR_CLIENT_ID_HERE
Open a new shell and run webss. Your clipboard should now have a link to the hosted Imgur image.
Navigate to Settings -> Devices -> Keyboard, scroll to the bottom and click the + to add a new shortcut.
Make a name for the shortcut and choose your preffered shortcut key combo.
Set the command to /bin/webss/webss for non-windowed, and /bin/webss/webss -w for windowed.
webss [-w]
-w Grab the current active window instead of the entire screen.
