Browse Source

Add todotxt to taskbar, improve clock, fix mpd

master
John Mertz 3 months ago
parent
commit
d542ec35e5
2 changed files with 18 additions and 5 deletions
  1. +10
    -4
      waybar/config.template
  2. +8
    -1
      waybar/style.css

+ 10
- 4
waybar/config.template View File

@@ -12,7 +12,7 @@
// Choose the order of the modules
"modules-left": ["custom/launcher", "sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["mpd", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio", "custom/clock", "tray", "idle_inhibitor", "custom/power"],
"modules-right": ["mpd", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio", "custom/clock", "tray", "custom/todo", "idle_inhibitor", "custom/power"],
// Modules configuration
"custom/launcher": {
"format": "Start",
@@ -63,7 +63,7 @@
"format-paused": "⏸️ {title} - {artist}",
"format-stopped": "⏹️ mpd",
"format-disconnected": "⚠ mpd",
"on-click": "/home/jpm/scripts/waybar/waybar-ncmpcpp.sh"
"on-click": "/home/jpm/scripts/waybar/waybar-mpd.sh"
},
"network": {
// "interface": "wlp58s0", // (Optional) To force the use of this interface
@@ -71,7 +71,7 @@
"format-wifi": " {ipaddr}",
"format-disconnected": "⚠ Disconnected",
"on-click": "/home/jpm/scripts/waybar/waybar-nm.sh"
//"on-click": "if [ $(sudo pgrep -c nmtui) -gt 0 ]; then sudo pkill nmtui; else /usr/bin/uxterm -e 'sudo /usr/bin/nmtui'; fi"
//"on-click": "if [ $(sudo pgrep -c nmtui) -gt 0 ]; then sudo pkill nmtui; else /usr/bin/xterm -e 'sudo /usr/bin/nmtui'; fi"
},
"network#wireguard": {
"interface": "wg0", // (Optional) To force the use of this interface
@@ -128,12 +128,18 @@
"custom/clock": {
"interval": 60,
"on-click": "orage -t",
"exec": "date '+%H:%M'"
"return-type": "json",
"exec": "echo '{\"class\": \"clock\", \"text\": \"'$(date '+%H:%M')'\", \"tooltip\": \"'$(date '+%A, %B %d, %Y | %Y-%m-%d')'\"}'"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"custom/todo": {
"format": "🗈",
"on-click": "/home/jpm/scripts/waybar/waybar-todo.sh",
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {


+ 8
- 1
waybar/style.css View File

@@ -32,7 +32,7 @@ window#waybar {
color: #A89984;
}

#custom-launcher, #workspaces, #mode, #window, #mpd, #network, #cpu, #memory, #custom-disk, #temperature, #backlight, #custom-battery, #pulseaudio, #custom-clock, #tray, #idle_inhibitor, #custom-power {
#custom-launcher, #workspaces, #mode, #window, #mpd, #network, #cpu, #memory, #custom-disk, #temperature, #backlight, #custom-battery, #pulseaudio, #custom-clock, #tray, #custom-todo, #idle_inhibitor, #custom-power {
padding: 0 5px;
margin: 0px;
}
@@ -186,6 +186,13 @@ window#waybar {
color: #FFFFFF;
}

/* Todo-txt */

#custom-todo {
background-color: #83A598;
color: #FFFFFF;
}

/* Idle Inhibitor */

#idle_inhibitor {


Loading…
Cancel
Save