Skip to content

u/eripx

In this archive from Mar 2019 to Feb 2021

0
posts
10
comments
0
media
40
score

Top comments

I found your idea interesting and spent a little bit working on part of it. The below snippet successfully checks if Spotify is running and reports "Running" or "not running" depending. This could be modified to launch or kill Spotify instead of echoing the status.

#!/bin/bash

PROCESS=spotify
number=$(ps aux | grep -v grep | grep -ci $PROCESS)

if [ $number -gt 0 ]
then
	echo Running;
else
	echo not running;
fi
2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.