dotfiles/dot_local/bin/executable_river-logout

5 lines
144 B
Bash

#!/bin/bash
RIVER=`ps -C river | awk '/river/'`
[[ $RIVER != "" ]] && riverctl spawn 'reset' && riverctl exit || echo "River is not running."