![]() You'll need to restart i3wm for these changes to take effect (my reload keybinding is WindowsKey + Shift + r) i3blocks Status Bar Setup Note: this (for me) does WindowsKey + Shift + s Then create your keybinding to execute (start/stop) your screencast script: Set $screencast bash ~/scripts/screencast ![]() Set your 'screencast' variable to point to the script you setup in step #1 In your ~/.i3/config file make sure to have the following: If its NOT running, we calculate the SCREENRES (several options you can substitute here) and let loose with the recording process (ffmpeg here but you can run anything here) and send that process to $PIDFILE ![]() If its running, kill it and remove $PIDFILE and move the temporary recording file to its final resting place under (in this case) $HOME/Videos/ ![]() When the script is called it checks if the PID file already exists ( if statement looking for file at location $PIDFILE or running process under /proc/) which means its "running" and the current call to it is to STOP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |