By analyzing the current state of pulseaudio one can figure out which media player is active. In this video I create two scripts, one that parses the output of pactl and echo the active player. The other script executes different mediaplayer actions depending on which player is active. This means that I can use one command/keybinding to execute the same action in different mediaplayers.
the files used in this video can be found on github:
https://github.com/budlabs/youtube/tree/master/letslinux/037-polymedia-monocontrol
### video info:
color scheme: Gruvbox Light, by morhertz https://github.com/morhetz/gruvbox
terminal font: Hack/fixedsys
terminal emulator: URxvt
figlet font: 3d.flf, by xero
filemanager: thunar
icon theme: DamaDamas
gtk theme: numix (gruvbox light)
The path to the example cmus-status script is:
/usr/share/doc/cmus/examples/cmus-status-display
Place the cmus-status script in your path and then set the following setting in cmus:
:set status_display_program=polymediatitle
## polybar module
text
[module/mediatitle]
type = custom/ipc
hook-0 = cat ~/polymediaoutput
initial = 1
# related videos:
focus_if visible: https://youtu.be/0ZkcMAhk-9k
polymedia_video title: https://youtu.be/sGZFa9eNqns
polymedia_title: https://youtu.be/oKBDI-zVJq0
cmus setup: https://youtu.be/Pf1iKpZN1DM
queue files in mpv: https://youtu.be/VAAV3cQsqAE
i3fyra: https://youtu.be/t4Tve-xpwus
lolban is the output of figlet piped through lolcat. I have a video where i show how it works. That video is called: Let's Linux #009: Automatic script creation, and can be found here: https://youtu.be/QGUmMtEnIkI
The figlet font used with lolban is created by xero. It is called: 3d.flf
And can be found on github:
https://github.com/xero/figlet-fonts
...
https://www.youtube.com/watch?v=KTnm8jtxj-E
I created this simple Sublime Text package to get a simple syntax recognition for files where the syntax isn't obvious. By simple i mean only recognize comments. The most common use-case is *dotfiles*.
I also added symbols/(*sections*) definitions. So by adding two greater then anglebrackets (the character is forbidden in youtube shownotes...) after a **comment** declaration you can easily go to different sections in the file.
The package currently contains four "syntaxes":
# | ssHash
! | ssExcla
// | ssDslash
; | ssSemi
Install the package with PackageControl: https://packagecontrol.io/packages/SimpleSyntax
...
https://www.youtube.com/watch?v=j6HZDstw91o
this video is dedicated to u/StackTraceException
https://old.reddit.com/r/i3wm/comments/h9ci0o/disable_automatic_tiling_in_i3/
https://i3wm.org/docs/userguide.html#for_window
https://github.com/budlabs/i3ass
ALL MY WINDOWS FLOAT: https://www.youtube.com/watch?v=p4yGQrLShDo
...
https://www.youtube.com/watch?v=4JCPWhs8r0Q