summaryrefslogtreecommitdiff
path: root/.config/waybar/config.jsonc
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar/config.jsonc')
-rw-r--r--.config/waybar/config.jsonc112
1 files changed, 112 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..c20a95c
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,112 @@
+{
+ "exclusive": true,
+ "reload_style_on_change": true,
+ "position": "top",
+ "margin-top": 0,
+ "spacing": 0,
+ "height": 0,
+ "margin-bottom": 0,
+ "modules-left": [
+ "niri/workspaces",
+ "custom/separator",
+ "tray",
+ "custom/separator2",
+ "custom/separator5",
+ "custom/media",
+ "custom/separator6"
+ ],
+ "modules-center": ["custom/separator", "custom/clock", "custom/separator2"],
+ "modules-right": [
+ "custom/separator",
+ "custom/separator3",
+ "custom/kbd",
+ "custom/separator3",
+ "pulseaudio",
+ "custom/separator3",
+ "memory",
+ "custom/separator2"
+ ],
+ "niri/workspaces": {
+ "disable-scroll": true,
+ "format": "{index}"
+ },
+ "custom/separator": {
+ "format": "[",
+ "tooltip": false
+ },
+ "custom/separator2": {
+ "format": "]",
+ "tooltip": false
+ },
+ "custom/separator3": {
+ "format": "󰿟",
+ "tooltip": false
+ },
+ "custom/separator5": {
+ "exec": "sh -c 'if pgrep -x cliamp >/dev/null || playerctl status 2>/dev/null | grep -qE \"Playing|Paused\"; then echo \"{\\\"text\\\":\\\"[\\\",\\\"class\\\":\\\"show\\\"}\"; else echo \"{\\\"text\\\":\\\"\\\",\\\"class\\\":\\\"hide\\\"}\"; fi'",
+ "return-type": "json",
+ "interval": 2,
+ "format": "{}"
+ },
+ "custom/separator6": {
+ "exec": "sh -c 'if pgrep -x cliamp >/dev/null || playerctl status 2>/dev/null | grep -qE \"Playing|Paused\"; then echo \"{\\\"text\\\":\\\"]\\\",\\\"class\\\":\\\"show\\\"}\"; else echo \"{\\\"text\\\":\\\"\\\",\\\"class\\\":\\\"hide\\\"}\"; fi'",
+ "return-type": "json",
+ "interval": 2,
+ "format": "{}"
+ },
+
+ "memory": {
+ "interval": 2,
+ "format": "RAM {percentage:02}%",
+ "on-click": "foot btop",
+ "states": {
+ "warning": 50,
+ "critical": 80
+ }
+ },
+ "custom/kbd": {
+ "exec": "/home/seraphim/dotfiles-gentoo/waybar/.config/waybar/kbd-layout.sh",
+ "tooltip": false
+ },
+ "custom/clock": {
+ "exec": "date +'%H:%M %p - %A, %b %d' | tr '[:upper:]' '[:lower:]'",
+ "interval": 1,
+ "tooltip": false
+ },
+ "pulseaudio": {
+ "justify": "center",
+ "format": "vol {volume}%",
+ "on-click": "foot wiremix",
+ "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
+ "tooltip-format": "Playing at {volume}%",
+ "scroll-step": 5,
+ "format-muted": "vol <span style='italic' weight='900' color='#999999'>muted</span>",
+ "format-icons": {
+ "headphone": "",
+ "default": ["", "", ""]
+ },
+ "states": {
+ "warning": 50,
+ "critical": 10
+ }
+ },
+ "custom/media": {
+ "format": "{}",
+ "max-length": 30,
+ "interval": 2,
+ "exec": "playerctl metadata --format '{{ artist }} - {{ title }}' 2>/dev/null || echo \"\"",
+ "on-click": "playerctl play-pause"
+ },
+"tray": {
+ "icon-size": 14,
+ "spacing": 3
+ },
+ "custom/analyze-theme": {
+ "exec": "node /home/seraphim/dotfiles-gentoo/waybar/.config/waybar/custom/analyze-theme.js",
+ "interval": 5,
+ "tooltip": true,
+ "format": "{}",
+ "return-type": "json",
+ "on-click": "sh -c '~/.config/niri/apply-colors.sh \"$(find ~/Pictures/wallpapers -type f | shuf -n 1)\"'"
+ }
+}