change music info source
This commit is contained in:
parent
826468d54d
commit
d33b9b4670
|
@ -1 +1 @@
|
||||||
Subproject commit 554ddd36b403feaf0c5fa53c42ae5e2474e6921f
|
Subproject commit 0b7b647daa018a1df41d0aa2de371bf5572a8c5a
|
|
@ -34,7 +34,7 @@
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
(setq display-line-numbers-type t)
|
(setq display-line-numbers-type t)
|
||||||
|
(setq fancy-splash-image (concat doom-private-dir "splash/mfdoom.png"))
|
||||||
|
|
||||||
;; Here are some additional functions/macros that could help you configure Doom:
|
;; Here are some additional functions/macros that could help you configure Doom:
|
||||||
;;
|
;;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
2
.profile
2
.profile
|
@ -1,4 +1,4 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
export PATH=$PATH:/home/qv/.local/bin:/home/qv/.ghcup/bin:/home/qv/.scripts:/home/qv/.emacs.d/bin
|
export PATH=$PATH:/home/qv/.local/bin:/home/qv/.ghcup/bin:/home/qv/.scripts:/home/qv/.emacs.d/bin:/opt/texlive/2021/bin/x86_64-linux
|
||||||
|
|
|
@ -1,2 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
head ~/.wnpClient/wnpClient.txt -n 2 | sed ':a;N;$!ba;s/\n/ by /g'
|
|
||||||
|
status=$(playerctl status -a)
|
||||||
|
title=$(playerctl metadata title)
|
||||||
|
artist=$(playerctl metadata artist)
|
||||||
|
if [[ $status =~ Playing ]]; then
|
||||||
|
length=${#title}
|
||||||
|
if [ $length -gt 35 ]; then
|
||||||
|
echo "$title"
|
||||||
|
else
|
||||||
|
echo "$title by $artist"
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue