aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: ad3478bfa4a917adf0458f74acc42bbaaa9c6d53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
  "layer": "top",
  "height": 20,
  "spacing": 5,
  "margin-top" :5,
  "margin-right" :10,
  "margin-left" :10,

  "modules-left": [
    "dwl/tags",
    "dwl/window",
  ],

  "modules-center": ["custom/clock"],

  "modules-right": [
    //"custom/scratchpad-indicator",
    "idle_inhibitor",
    "custom/brightness",
    "custom/audio",
    "custom/battery",
  ],

  "dwl/tags": {
    "num-tags": 9,
    "tag-labels": ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  },
    
  "dwl/window": {
    "format": "<span color='#202020' bgcolor='#d3869b' > 󰣆  </span> {app_id} - {title}",
    "icon":false,
    "max-length": 100,
  },

  "custom/scratchpad-indicator": {
    "format": "<span color='#202020' bgcolor='#8ec07c' >   </span> {}",
    "return-type": "json",
    "interval": 1,
    "exec": "~/.local/bin/scratchpad-indicator.sh"
  },

  "idle_inhibitor": {
    "format": "<span color='#202020' bgcolor='#458588' > {icon}  </span>",
    "format-icons": {
        "activated": "",
        "deactivated": ""
    }
  },

  "custom/brightness": {
		"format": "<span color='#202020' bgcolor='#d79921'>   </span> {}%",
    "return-type": "json",
    "exec": "~/.config/waybar/scripts/brightnesscontrol.sh",
		"on-click": "~/.config/waybar/scripts/brightnesscontrol.sh down",
    "on-click-right": "~/.config/waybar/scripts/brightnesscontrol.sh up",
    "interval" : 1,
  "tooltip" : false
	},

  "custom/battery": {
    "format-icons": ["󰂎","󰁺","󰁻","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"],
    "format": "<span color='#202020' bgcolor='#689d6a' > {icon}{alt} </span> {}%",
    "return-type": "json",
    "interval": 1,
    "exec": "~/.config/waybar/scripts/battery.sh",
    "tooltip": false
  },
 
  "custom/audio": {
    "format": "{}%",
    "return-type": "json",
    "interval": 1,
    "exec": "~/.config/waybar/scripts/volumecontrol.sh",
    "on-scroll-up": "~/.config/waybar/scripts/volumecontrol.sh up",
    "on-scroll-down": "~/.config/waybar/scripts/volumecontrol.sh down",
    "on-click": "~/.config/waybar/scripts/volumecontrol.sh mute",
    "tooltip": false
  },

  "custom/clock": {
    "format": "<span color='#202020' bgcolor='#689d6a' >   </span> {}",
    "return-type": "json",
    "interval": 1,
    "exec": "~/.config/waybar/scripts/date-time.sh",
    "on-click": "~/.config/waybar/scripts/calendar.sh show"
  },
}