Commit graph

15 commits

Author SHA1 Message Date
Vincent Bernat
f854a0fedf rofi-mediaplayer: replace play-pause with play
While media keys often don't have a pause button, this is not the case
for the rofi menu.
2021-10-15 19:48:59 +02:00
Vincent Bernat
c731938403 rofi-mediaplayer: use variable to run mediaplayer 2021-10-05 14:04:29 +02:00
Vincent Bernat
32501093c1 rofi-mediaplayer: fix focus Spotify 2021-08-22 14:33:19 +02:00
Vincent Bernat
cda8ef9831 systemd: switch back to PulseAudio 2021-08-21 14:05:39 +02:00
Vincent Bernat
e4489699c7 systemd: add easyeffects 2021-07-31 12:52:27 +02:00
Vincent Bernat
d9aafa54a4 rofi-mediaplayer: grab keyboard as soon as possible
Otherwise, we may miss the shortcut input. With -no-lazy-grab, rofi
grabs the keyboard early and wait for half a second before giving up.
Without, it will try for 0 second. So, if i3 still has the grab, it
will try again every millisecond for 5 seconds. However, this needs to
get scheduled after everything else, so in practice, this can take
some time. I get better results with -no-lazy-grab.

Also, we could use --release from i3. In this case, we are guaranteed
that rofi can grab the keyboard during the first try. But, after
trying a bit, I think this is still better with -no-lazy-grab: the
shell script needs to be executed, rofi needs to be executed. It's
better to do that while the user did not depress the key yet.
2021-07-23 20:27:22 +02:00
Vincent Bernat
ac9beaa242 rofi-*: properly escape for pango markup 2021-07-21 09:56:11 +02:00
Vincent Bernat
40d8aece8d rofi-mediaplayer: switch to playerctl
As rofi grabs the keyboard while running in a script, we can't use xdotool.
2021-07-21 09:52:36 +02:00
Vincent Bernat
ce3b562617 rofi-mediaplayer: convert to /bin/sh 2021-07-21 07:31:27 +02:00
Vincent Bernat
bfd6735c3d rofi-mediaplayer: switch to a module script 2021-07-21 02:19:59 +02:00
Vincent Bernat
cab4f6b8fd rofi-mediaplayer: tentative to be more snappy when querying playerctl 2021-07-21 01:44:23 +02:00
Vincent Bernat
24a07e8165 rofi-mediaplayer: display current track when playing 2021-07-20 23:48:41 +02:00
Vincent Bernat
caac6d6a5c rofi-mediaplayer: make it more readable 2021-07-20 23:01:50 +02:00
Vincent Bernat
4c5d00fad6 rofi-mediaplayer: focus pavucontrol if already opened 2021-07-20 22:49:39 +02:00
Vincent Bernat
99de0bc1fd i3: replace media player mode by rofi 2021-07-20 22:33:02 +02:00