aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config.jsonc
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar/config.jsonc')
-rw-r--r--.config/waybar/config.jsonc301
1 files changed, 301 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..52d6a0c
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,301 @@
+{
+ "layer": "top",
+ "position": "top",
+ "output": "DP-2",
+ "reload_style_on_change": true,
+ "modules-left": [
+ "hyprland/workspaces",
+ "hyprland/window"
+ ],
+ "modules-right": [
+ "custom/recording",
+ "tray",
+ "image#album-art",
+ "custom/tasks",
+ "custom/music",
+ "custom/packages",
+ "custom/news",
+ "custom/torrent",
+ "cpu",
+ "custom/memory",
+ "custom/rainchance",
+ "custom/weather",
+ "custom/mailbox",
+ "custom/microphone",
+ "custom/volume",
+ "custom/clock"
+ // "custom/internet"
+ ],
+
+ "hyprland/workspaces": {
+ "disable-scroll": true,
+ "all-outputs": true,
+ "on-click": "activate",
+ "format": "{icon}"
+ },
+
+ "hyprland/window": {
+ "rewrite": {
+ "(.*) — Mozilla Firefox": "󰈹 $1",
+ "Mozilla Firefox": "󰈹 Mozilla Firefox",
+ "(.*) - Nvim": " $1",
+ "(.*) - mpv": " $1",
+ "Yazi: (.*)": " $1",
+ "neomutt": " neomutt"
+ }
+ },
+
+ "custom/recording" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 9,
+ "exec" : "cat /tmp/recordingicon 2> /dev/null"
+ },
+
+ "image#album-art": {
+ "cursor": "false",
+ "signal": 11,
+ "size": 32,
+ "exec": "rmpcover",
+ "on-click": "mpc toggle"
+ },
+
+ "custom/tasks" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 26,
+ "interval": 10,
+ "exec" : "sb-tasks",
+ "on-click": "BLOCK_BUTTON=1 sb-tasks",
+ "on-click-right": "BLOCK_BUTTON=3 sb-tasks",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-tasks",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-tasks"
+ },
+
+ "custom/music" : {
+ "cursor": false,
+ "tooltip": false,
+ "escape": true,
+ "format": "{}",
+ "signal": 11,
+ "exec" : "sb-music",
+ "on-click": "BLOCK_BUTTON=1 sb-music",
+ "on-click-right": "BLOCK_BUTTON=3 sb-music",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-music",
+ "on-scroll-up": "BLOCK_BUTTON=4 sb-music",
+ "on-scroll-down": "BLOCK_BUTTON=5 sb-music",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-music",
+ "max-length": 120
+ },
+
+ "custom/packages" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 8,
+ "exec" : "sb-pacpackages",
+ "on-click": "BLOCK_BUTTON=1 sb-pacpackages",
+ "on-click-right": "BLOCK_BUTTON=3 sb-pacpackages",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-pacpackages",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-pacpackages"
+ },
+
+ "custom/news" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 6,
+ "exec" : "sb-news",
+ "on-click": "BLOCK_BUTTON=1 sb-news; pkill -RTMIN+6 waybar",
+ "on-click-right": "BLOCK_BUTTON=3 sb-news 3",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-news 2",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-news 8"
+ },
+
+ "custom/torrent" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 7,
+ "interval": 20,
+ "exec" : "sb-torrent",
+ "on-click": "BLOCK_BUTTON=1 sb-torrent",
+ "on-click-right": "BLOCK_BUTTON=3 sb-torrent",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-torrent",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-torrent"
+ },
+
+ "cpu" : {
+ "tooltip": false,
+ "format": "{icon} {usage}%",
+ "interval": 10,
+ "states": {
+ "high": 70,
+ "mid": 40,
+ "low": 0
+ },
+ "format-icons": ["󰾆", "󰾅", "󰓅"]
+ },
+
+ "custom/memory" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 14,
+ "exec" : "sb-memory",
+ "interval": 10,
+ "on-click": "BLOCK_BUTTON=1 sb-memory",
+ "on-click-right": "BLOCK_BUTTON=3 sb-memory",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-memory",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-memory",
+ "return-type": "json"
+ },
+
+ "custom/doppler" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 13,
+ "interval": 650,
+ "exec" : "sb-doppler",
+ "on-click": "BLOCK_BUTTON=1 sb-doppler",
+ "on-click-right": "BLOCK_BUTTON=3 sb-doppler",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-doppler",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-doppler"
+ },
+
+ "custom/rainchance" : {
+ "cursor": false,
+ "tooltip": false,
+ "hide-empty-text": true,
+ "format": "{}",
+ "signal": 5,
+ "exec" : "sb-weather rain",
+ "interval" : 18000,
+ "on-click": "BLOCK_BUTTON=1 sb-weather rain",
+ "on-click-right": "BLOCK_BUTTON=3 sb-weather rain",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-weather rain",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-weather rain",
+ "return-type": "json"
+ },
+
+ "custom/weather" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 5,
+ "exec" : "sb-weather weather",
+ "interval" : 400,
+ "on-click": "BLOCK_BUTTON=1 sb-weather weather",
+ "on-click-right": "BLOCK_BUTTON=3 sb-weather weather",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-weather weather",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-weather weather",
+ "return-type": "json"
+ },
+
+ "custom/mailbox" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 12,
+ "exec" : "sb-mailbox",
+ "interval" : 180,
+ "on-click": "BLOCK_BUTTON=1 sb-mailbox",
+ "on-click-right": "BLOCK_BUTTON=3 sb-mailbox",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-mailbox",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-mailbox"
+ },
+
+ "network#usage": {
+ "format": "{bandwidthDownBytes} {bandwidthUpBytes}",
+ "interval" : 1,
+ "tooltip-format": "{ifname}"
+ },
+
+ "network#interface": {
+ "format": "{ifname}",
+ "format-wifi": "{essid} ({signalStrength}%) ",
+ "format-ethernet": "{ifname} ",
+ "format-disconnected": "",
+ "tooltip-format": "{ifname}",
+ "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
+ "tooltip-format-ethernet": "{ifname} ",
+ "tooltip-format-disconnected": "Disconnected",
+ //"max-length": 50
+ },
+
+ "custom/nettraf" : {
+ "tooltip": false,
+ "cursor": false,
+ "format": "{}",
+ "signal": 16,
+ "exec" : "sb-nettraf",
+ "interval" : 1,
+ "on-click": "BLOCK_BUTTON=1 sb-nettraf",
+ "on-click-right": "BLOCK_BUTTON=3 sb-nettraf",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-nettraf"
+ },
+
+ "custom/microphone" : {
+ "tooltip": false,
+ "cursor": false,
+ "format": "{}",
+ "signal": 23,
+ "exec" : "sb-microphone",
+ "interval": 10,
+ "on-click": "BLOCK_BUTTON=1 sb-microphone",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-microphone",
+ "on-scroll-up": "BLOCK_BUTTON=4 sb-microphone",
+ "on-scroll-down": "BLOCK_BUTTON=5 sb-microphone",
+ "on-click-right": "BLOCK_BUTTON=3 sb-microphone",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-microphone"
+ },
+
+ "custom/volume" : {
+ "tooltip": false,
+ "cursor": false,
+ "format": "{}",
+ "signal": 10,
+ "exec" : "sb-volume",
+ "interval": 10,
+ "on-click": "BLOCK_BUTTON=1 sb-volume",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-volume",
+ "on-scroll-up": "BLOCK_BUTTON=4 sb-volume",
+ "on-scroll-down": "BLOCK_BUTTON=5 sb-volume",
+ "on-click-right": "BLOCK_BUTTON=3 sb-volume",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-volume"
+ },
+
+ "custom/clock" : {
+ "tooltip": false,
+ "cursor": false,
+ "format": "{}",
+ "signal": 1,
+ "exec" : "sb-clock",
+ "interval" : 5,
+ "on-click": "BLOCK_BUTTON=1 sb-clock",
+ "on-click-middle": "BLOCK_BUTTON=2 sb-clock",
+ "on-click-right": "BLOCK_BUTTON=3 sb-clock",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-clock"
+ },
+
+ "custom/internet" : {
+ "cursor": false,
+ "tooltip": false,
+ "format": "{}",
+ "signal": 4,
+ "exec" : "sb-internet",
+ "interval": 10,
+ "on-click": "BLOCK_BUTTON=1 sb-internet; pkill -RTMIN+4 waybar",
+ "on-click-right": "BLOCK_BUTTON=3 sb-internet; pkill -RTMIN+4 waybar",
+ "on-click-middle": "pkill -RTMIN+4 waybar",
+ "on-click-backward": "BLOCK_BUTTON=8 sb-internet"
+ },
+
+ "tray" : {
+ "icon-size": 18,
+ "spacing": 10
+ }
+}