mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(polybar): add pomm script
This commit is contained in:
parent
67dabb3f4b
commit
54e1ee0ea7
3 changed files with 25 additions and 2 deletions
|
|
@ -104,6 +104,14 @@ exec = /home/pavel/bin/polybar/aw_afk.sh
|
|||
interval = 60
|
||||
; aw-afk:2 ends here
|
||||
|
||||
; [[file:../../Desktop.org::*pomm][pomm:2]]
|
||||
[module/pomm]
|
||||
type = custom/script
|
||||
exec = /home/pavel/bin/polybar/pomm.sh
|
||||
interval = 1
|
||||
format-underline = ${colors.green-lighter}
|
||||
; pomm:2 ends here
|
||||
|
||||
; [[file:../../Desktop.org::*sun][sun:2]]
|
||||
[module/sun]
|
||||
type = custom/script
|
||||
|
|
|
|||
17
Desktop.org
17
Desktop.org
|
|
@ -855,7 +855,7 @@ declare -A BLOCKS=(
|
|||
["eDP"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP battery SEP sun aw-afk date TSEP"
|
||||
["eDP-1"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP battery SEP sun aw-afk date TSEP"
|
||||
["DVI-D-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP weather SEP sun aw-afk date TSEP"
|
||||
["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP weather SEP sun aw-afk date TSEP"
|
||||
["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP weather SEP pomm sun aw-afk date TSEP"
|
||||
)
|
||||
|
||||
# Geolocation for some modules
|
||||
|
|
@ -1067,6 +1067,21 @@ type = custom/script
|
|||
exec = /home/pavel/bin/polybar/aw_afk.sh
|
||||
interval = 60
|
||||
#+end_src
|
||||
*** pomm
|
||||
Pomodoro module.
|
||||
#+begin_src bash :tangle ./bin/polybar/pomm.sh
|
||||
if ps -e | grep emacs >> /dev/null; then
|
||||
emacsclient --eval "(if (boundp 'pomm-current-mode-line-string) pomm-current-mode-line-string \"\") " | xargs echo -e
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-windows
|
||||
[module/pomm]
|
||||
type = custom/script
|
||||
exec = /home/pavel/bin/polybar/pomm.sh
|
||||
interval = 1
|
||||
format-underline = ${colors.green-lighter}
|
||||
#+end_src
|
||||
*** sun
|
||||
| Guix dependency |
|
||||
|-----------------|
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ declare -A BLOCKS=(
|
|||
["eDP"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP battery SEP sun aw-afk date TSEP"
|
||||
["eDP-1"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP battery SEP sun aw-afk date TSEP"
|
||||
["DVI-D-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP weather SEP sun aw-afk date TSEP"
|
||||
["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP weather SEP sun aw-afk date TSEP"
|
||||
["HDMI-A-0"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP weather SEP pomm sun aw-afk date TSEP"
|
||||
)
|
||||
|
||||
# Geolocation for some modules
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue