summary refs log tree commit diff
path: root/.config/waybar/config
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-02-11 13:45:25 +0100
committerRobert Günzler <r@gnzler.io>2021-02-11 13:45:51 +0100
commit30451238df36d238fea816f01ca987853c6562a5 (patch)
treeee8d50d00b30cf291f34fb989f839e3492868f48 /.config/waybar/config
parentef2e08b2b9eead9119f916464182fca652ef3fef (diff)
waybar: update 2021-02-11T12:46:11Z
Diffstat (limited to '.config/waybar/config')
-rw-r--r--.config/waybar/config102
1 files changed, 37 insertions, 65 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
index 40e06a4..557dafe 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -5,9 +5,9 @@
     "height": 25,
     "gtk-layer-shell": true,
 
-    "modules-left": ["sway/mode", "sway/workspaces", "sway/window", "custom/mpv", "custom/mpd", "custom/spotify", "custom/toggl"],
-    "modules-center": ["custom/weather", "clock#local", "clock#utc"],
-    "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "custom/redshift", "pulseaudio", "network#vpn", "network#tailscale", "network", "battery"],
+    "modules-left": ["sway/mode", "sway/workspaces", "sway/window", "custom/mpris"],
+    "modules-center": ["custom/weather", "clock#local", "clock#utc", "custom/toggl", "custom/todo"],
+    "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "custom/gammastep", "pulseaudio", "network#vpn", "network#tailscale", "network", "battery"],
 
     "sway/workspaces": {
         "disable-scroll": true,
@@ -38,10 +38,9 @@
         "spacing": 10
     },
     "clock#local": {
-        // "timezone": "Europe/Berlin",
-        // "timezone": "Europe/Istanbul",
         "format": "{:<i>%a</i> %d %b <b>%H:%M</b>}",
-        "tooltip-format": "TZ: {:%Z %z}\n\n{calendar}"
+        "tooltip-format": "TZ: {:%Z %z}\n\n{calendar}",
+        "locale": "ja_JP.utf-8"
     },
     "clock#utc": {
         "timezone": "UTC",
@@ -113,7 +112,7 @@
     },
     "network#tailscale": {
         "interface": "tailscale0",
-        "format": "󰹻", // "󰈓", // "󰠳",
+        "format": "󰀘",
         "tooltip-format": "{ifname}: {ipaddr}/{cidr}",
         "tooltip-format-disconnected": "disconnected",
         "on-click": "doas rc-service tailscale start",
@@ -137,47 +136,44 @@
         "on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
         "on-click": "swx -t -f pulsemixer"
     },
-    "custom/spotify": {
-        "format": "󰓇 {}",
-        "return-type": "json",
-        "max-length": 80,
-        "escape": false,
-        "interval": 2,
-        "exec": "$HOME/.config/waybar/modules/waybar-media spotify",
-        "exec-if": "pgrep spotify"
-     },
-    "custom/mpd": {
-        "format": "󰐹 {}",
-        "return-type": "json",
-        "max-length": 80,
-        "interval": 2,
-        "exec": "$HOME/.config/waybar/modules/waybar-media mpd",
-        "exec-if": "pgrep mpd"
-    },
-    "custom/mpv": {
-        "format": "󰐍 {}",
-        "return-type": "json",
-        "max-length": 80,
-        "interval": 2,
-        "exec": "$HOME/.config/waybar/modules/waybar-media mpv",
-        "exec-if": "pgrep mpv"
+    "custom/mpris": {
+        "format": "{}",
+        "exec": "waybar-mpris --position --autofocus --interpolate --play 󰏤 --pause 󰲸",
+        "on-click": "waybar-mpris --send toggle",
+        "on-click-right": "waybar-mpris --send player-next",
+        "escape": true,
+        "max-width": 90,
+        "return-type": "json"
     },
     "custom/toggl": {
-    "format": "󰔟 {}",
+        "format": "󰔟 {}",
         "exec": "$HOME/.config/waybar/modules/toggl.lua 2>/dev/null",
         "interval": 30
     },
-    "custom/redshift": {
-    "format": "{icon}",
-    "format-icons": {
+    "custom/todo": {
+        "format": "{icon} {}",
+        "format-icons": {
+            "off": "!󰒲",
+            "on": "!󰈻",
+            // "work": "󰪢"
+        },
+        "exec": "$HOME/.config/waybar/modules/waybar-todo",
+        "on-click": "pkill -x -USR1 waybar-todo",
+        "on-click-right": "pkill -x -USR2 waybar-todo",
+        "escape": true,
+        "return-type": "json"
+    },
+    "custom/gammastep": {
+        "format": "{icon}",
+        "format-icons": {
             "day": "󰱌",
             "night": "󰱊"
         },
-        "exec-if": "pgrep redshift",
-        "exec": "$HOME/.config/waybar/modules/waybar-redshift",
+        "exec-if": "pgrep gammastep",
+        "exec": "$HOME/.config/waybar/modules/waybar-gammastep",
         "return-type": "json",
-        "on-click": "pkill -x -USR1 redshift",
-        "on-click-right": "pkill -x -HUP waybar-redshift"
+        "on-click": "pkill -x -USR1 gammastep",
+        "on-click-right": "pkill -x -HUP waybar-gammastep"
     },
     "custom/weather": {
         "format": "{icon} {percentage}℃",
@@ -199,32 +195,8 @@
         "interval": 600,
         "return-type": "json",
         "tooltip": true,
-        "signal": 4,
-        "on-click-right": "pkill -SIGRTMIN+5 waybar",
+        // "signal": 4,
+        // "on-click-right": "pkill -SIGRTMIN+5 waybar",
         "on-click": "swx -t env REPORT=1 $HOME/.config/waybar/modules/weather.sh Berlin"
-    },
-    "mpd": {
-        "format": "{stateIcon} {artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
-        "format-disconnected": "",
-        "unknown-tag": "N/A",
-        "consume-icons": {
-            "on": "󰆐"
-        },
-        "random-icons": {
-            "off": "",
-            "on": "󰒝"
-        },
-        "repeat-icons": {
-            "on": "󰑖"
-        },
-        "single-icons": {
-            "on": "󰑘"
-        },
-        "state-icons": {
-            "paused": "󰏤",
-            "playing": "󰐊"
-        },
-        "tooltip-format": "mpd (connected)",
-        "tooltip-format-disconnected": "mpd (disconnected)"
     }
 }