diff --git a/ac-adaptive/config.ini b/ac-adaptive/config.ini index d7978bc..5dc0480 100644 --- a/ac-adaptive/config.ini +++ b/ac-adaptive/config.ini @@ -30,7 +30,7 @@ include-file = ./decor.ini ; This is for the primary monitor, the launch.sh script uses this bar for primary monitor only ; the modules-right includes the tray for primary monitor only! inherit = bar/main -modules-right = 2RD ethernet 3RD battery 4RD volume 5RD date 6RD tray 7RD sysmenu sepR +modules-right = i3 2RD ethernet 3RD battery 4RD volume 5RD date 6RD tray 7RD sysmenu sepR [bar/main] @@ -145,9 +145,10 @@ font-3 = "Symbols Nerd Font:size=10;3" ; modules-right = 2RD volume 3RD bna 4RD battery 5RD bluetooth sep ethernet 6RD date 7RD sysmenu tray sepR # mReschke -modules-left = sepL menu 1LD workspaces2 2LD cpu 3LD memory 4LD filesystem 5LD -modules-center = mpd i3 -modules-right = 2RD ethernet 3RD battery 4RD volume 5RD date 6RD 7RD sysmenu sepR +modules-left = sepL menu 1LD workspaces2 2LD cpu 3LD memory 4LD filesystem 5LD mpd +#modules-center = mpd i3 +modules-center = workspace_name +modules-right = i3 2RD ethernet 3RD battery 4RD volume 5RD date 6RD 7RD sysmenu sepR diff --git a/ac-adaptive/modules.ini b/ac-adaptive/modules.ini index c5373e3..aed2d7b 100644 --- a/ac-adaptive/modules.ini +++ b/ac-adaptive/modules.ini @@ -112,8 +112,13 @@ full-at = 99 ; Use the following command to list batteries and adapters: ; $ ls -1 /sys/class/power_supply/ -battery = ${system.sys_battery} -adapter = ${system.sys_adapter} +; battery = ${system.sys_battery} +; adapter = ${system.sys_adapter} + +# NOTE, ohmyi3 vars are not merged here +#battery = {{ battery_device }} +battery = BAT0 +adapter = AC ; If an inotify event haven't been reported in this many ; seconds, manually poll for new values. @@ -440,7 +445,7 @@ type = internal/mpd ; Host where mpd is running (either ip or domain name) ; Can also be the full path to a unix socket where mpd is running. -host = 127.0.0.1 +host = localhost port = 6600 ;;password = mysecretpassword @@ -949,6 +954,20 @@ label-empty-padding = 1 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +[module/workspace_name] + +; Getting ONLY the CURRENT workspace name in i3 seems only +; possible with a script, which I can tail live every 1 or 2 seconds! + +type = custom/script +exec = ~/.files/scripts/i3-current-workspace-name +tail = true +interval = 2 +format =