Compare commits
3 Commits
0e8a5c2c12
...
0c607071e0
Author | SHA1 | Date |
---|---|---|
Inhji | 0c607071e0 | |
Inhji | 6163a78d22 | |
Inhji | ca3ef3185e |
|
@ -9,22 +9,3 @@ shell=/usr/bin/fish
|
|||
# adapted from https://github.com/imcarvalho/neonpurple
|
||||
# but tweaked background and regular0
|
||||
|
||||
[colors]
|
||||
background=1e1e2e
|
||||
foreground=cdd6f4
|
||||
regular0=11111b # black
|
||||
regular1=f38ba8 # red
|
||||
regular2=a6e3a1 # green
|
||||
regular3=fab387 # yellow
|
||||
regular4=05BEFF # blue
|
||||
regular5=cba6f7 # magenta
|
||||
regular6=94e2d5 # cyan
|
||||
regular7=9399b2 # white
|
||||
bright0=181825
|
||||
bright1=eba0ac
|
||||
bright2=00FFB7
|
||||
bright3=f9e2af
|
||||
bright4=74c7ec
|
||||
bright5=f5c2e7
|
||||
bright6=89dceb
|
||||
bright7=a6adc8
|
||||
|
|
|
@ -1,8 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
TITLE=$(cmus-remote -Q | grep title | cut --delimiter=' ' --fields=3-)
|
||||
ARTIST=$(cmus-remote -Q | grep ' artist ' | cut --delimiter=' ' --fields=3-)
|
||||
|
||||
#STATUS=$(cmus-remote -Q | grep status | cut --delimiter=' ' --fields=2)
|
||||
STATUS=$(playerctl status)
|
||||
|
||||
#TITLE=$(cmus-remote -Q | grep title | cut --delimiter=' ' --fields=3-)
|
||||
TITLE=$(playerctl metadata title)
|
||||
#ARTIST=$(cmus-remote -Q | grep ' artist ' | cut --delimiter=' ' --fields=3-)
|
||||
ARTIST=$(playerctl metadata artist)
|
||||
|
||||
if [ $STATUS = "Playing" ] ; then
|
||||
ICON=" "
|
||||
elif [ $STATUS = "Paused" ] ; then
|
||||
ICON=" "
|
||||
else
|
||||
ICON=""
|
||||
fi
|
||||
|
||||
if [ -n "$ARTIST" ] || [ -n "$TITLE" ] ; then
|
||||
echo "$ARTIST - $TITLE"
|
||||
echo "$ICON $ARTIST - $TITLE"
|
||||
fi
|
|
@ -22,7 +22,7 @@ set $MON1 "HDMI-A-1"
|
|||
# Note: it's recommended that you pass the final command to sway
|
||||
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||
#set $menu wofi --show drun -p Search -n -i -I -W 66% -s $HOME/.config/wofi.css
|
||||
set $menu tofi-drun | xargs swaymsg exec --
|
||||
set $menu tofi-drun --num-results 7 | xargs swaymsg exec --
|
||||
set $dmenu tofi-run | xargs swaymsg exec --
|
||||
|
||||
#xwayland disable
|
||||
|
|
|
@ -45,13 +45,17 @@
|
|||
"format": " {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-full": " }capacity}%"
|
||||
"format-full": " {capacity}%"
|
||||
},
|
||||
"custom/cmus": {
|
||||
"format": " {}",
|
||||
"max-length": 30,
|
||||
"interval": 1,
|
||||
"exec": "now-playing.sh"
|
||||
"max-length": 40,
|
||||
"exec": "now-playing.sh",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "playerctl stop",
|
||||
"on-scroll-up": "playerctl next",
|
||||
"on-scroll-down": "playerctl previous",
|
||||
"escape": true
|
||||
},
|
||||
"custom/stat": {
|
||||
"format": "{}",
|
||||
|
|
Loading…
Reference in New Issue