~ersen/dotfiles

ref: 3c19d4d8c2fcac5fa84135b3c53177097043b205 dotfiles/.config/waybar/config -rw-r--r-- 3.2 KiB
3c19d4d8Oğuz Ersen bin: convert some awk to perl a month ago
                                                                                
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
    "height": 30,
    "modules-left": ["sway/workspaces", "sway/mode", "wlr/taskbar"],
    "modules-right": ["memory", "cpu", "temperature", "battery", "backlight", "pulseaudio#source", "pulseaudio", "clock", "idle_inhibitor", "tray"],
    "sway/mode": {
        "format": "{} ✳"
    },
    "sway/workspaces": {
        "all-outputs": true,
        "format": "{icon}",
        "format-icons": {
            "1": "I",
            "2": "II",
            "3": "III",
            "4": "IV",
            "5": "V",
            "6": "VI",
            "7": "VII",
            "8": "VIII",
            "9": "IX",
            "10": "X",
            "urgent": "",
            "focused": "",
            "default": ""
        }
    },
    "backlight": {
        "format": "{percent}% {icon}",
        "format-icons": ["", ""],
        "on-scroll-down": "brightnessctl set 1%-",
        "on-scroll-up": "brightnessctl set 1%+"
    },
    "battery": {
        "format": "{capacity}% {icon}",
        "format-charging": "{capacity}% ",
        "format-plugged": "{capacity}% ",
        "format-icons": ["", "", "", "", ""],
        "states": {
            "warning": 32,
            "critical": 16
        }
    },
    "clock": {
        "format": "{:%I:%M %p}",
        "format-alt": "{:%a %d %b %Y}",
        "tooltip-format": "<small>{:%B %Y}</small>\n<tt><small>{calendar}</small></tt>",
    },
    "cpu": {
        "format": "{usage}% ",
        "format-alt": "{load}% ",
        "tooltip": false,
    },
    "idle_inhibitor": {
        "format": "{icon}",
        "format-icons": {
            "activated": "",
            "deactivated": ""
        }
    },
    "memory": {
        "format": "{percentage}% ",
        "format-alt": "{avail:0.1f}GiB ",
    },
    "pulseaudio": {
        "format": "{volume}% {icon}",
        "format-bluetooth": "{volume}% {icon} ",
        "format-bluetooth-muted": "{volume}%  ",
        "format-muted": "{volume}% ",
        "format-icons": {
            "car": "",
            "hands-free": "",
            "headphone": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "default": ["", "", ""]
        },
        "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
        "on-click-right": "pavucontrol -t 3"
    },
    "pulseaudio#source": {
        "format": "{format_source}",
        "format-source": "{volume}% ",
        "format-source-muted": "{volume}% ",
        "on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
        "on-click-right": "pavucontrol -t 4",
        "on-scroll-down": "pactl set-source-volume @DEFAULT_SOURCE@ -1%",
        "on-scroll-up": "pactl set-source-volume @DEFAULT_SOURCE@ +1%"
    },
    "temperature": {
        "critical-threshold": 80,
        "format": "{temperatureC} °C {icon}",
        "format-alt": "{temperatureF} °F {icon}",
        "format-icons": ["", "", ""]
    },
    "tray": {
        "icon-size": 16,
        "spacing": 6
    },
    "wlr/taskbar": {
        "format": "{icon}",
        "icon-size": 16,
        "on-click": "activate",
        "on-click-middle": "close",
        "on-click-right": "minimize"
    }
}