diff options
author | EuAndreh <eu@euandre.org> | 2023-02-28 19:13:07 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-28 19:13:07 -0300 |
commit | f8b074a9a0323c9a833edcfd653f7bb96625a900 (patch) | |
tree | dd026b45705791585313e66ffd2be9bb20b10ea5 | |
parent | bin/player: Decrease synopsis length to 60 (diff) | |
download | dotfiles-f8b074a9a0323c9a833edcfd653f7bb96625a900.tar.gz dotfiles-f8b074a9a0323c9a833edcfd653f7bb96625a900.tar.xz |
Use `hostname` to pick xmobar config
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | etc/xmobar/usurpador (renamed from etc/xmobar/xmobarrc) | 0 | ||||
-rw-r--r-- | etc/xmobar/velhinho | 24 |
3 files changed, 28 insertions, 0 deletions
@@ -17,6 +17,7 @@ derived-assets = \ $(XDG_CONFIG_HOME)/ssh/id_rsa.pub \ $(XDG_CONFIG_HOME)/ssh/config \ $(XDG_CONFIG_HOME)/gnupg/gpg-agent.conf \ + $(XDG_CONFIG_HOME)/xmobar/xmobarrc \ $(XDG_DATA_HOME)/common-lisp/source \ $(XDG_DATA_HOME)/euandreh/e.list.txt \ $(PRIV_STATEDIR)/postfix/relayhosts-maps.db \ @@ -53,6 +54,9 @@ $(XDG_CONFIG_HOME)/gnupg/gpg-agent.conf: $(XDG_CONFIG_HOME)/gnupg/gpg-agent.conf printf 'pinentry-program ' >> $@ command -v pinentry-gtk-2 >> $@ +$(XDG_CONFIG_HOME)/xmobar/xmobarrc: + cd $(@D) && ln -s `hostname` xmobarrc + $(HOME)/.ssh: ln -s $(XDG_CONFIG_HOME)/ssh $@ diff --git a/etc/xmobar/xmobarrc b/etc/xmobar/usurpador index 0cde0d6..0cde0d6 100644 --- a/etc/xmobar/xmobarrc +++ b/etc/xmobar/usurpador diff --git a/etc/xmobar/velhinho b/etc/xmobar/velhinho new file mode 100644 index 0000000..bfcfcf1 --- /dev/null +++ b/etc/xmobar/velhinho @@ -0,0 +1,24 @@ +Config { + font = "xft:9" + , commands = [ + Run Cpu ["-L","3","-H","50", "--normal","#5ea2a4","--high","red"] 10 + , Run Memory ["-t", "Mem: <usedratio>%"] 30 + , Run Swap [] 30 + , Run Date "%A, %Y-%m-%d %H:%M:%S" "date" 10 + , Run DiskU [("/", "<free> (<size>)")] [] 600 + , Run Wireless "wlp1s0" [] 100 + , Run Volume "default" "Master" [] 10 + , Run Battery [ + "-t", "<acstatus>: <fc=#5ea2a4><left></fc>% - <timeleft>", + "--", + "-O", "AC", + "-i", "Full", + "-o", "Bat", + "-p", "orange", + "-h", "green", + "-l", "red"] + 10 + , Run CommandReader "forever -q x sleep 1 AND player synopsis" "mpris" + ] + , template = " %default:Master%| %mpris% } { %wlp1s0wi% | %cpu% | %battery% | %disku% | %memory% * %swap% | <fc=#5ea2a4>%date%</fc> " +} |