diff --git a/waybar/modules b/waybar/modules new file mode 100644 index 0000000..1c5d813 --- /dev/null +++ b/waybar/modules @@ -0,0 +1,199 @@ +{ + "layer": "bottom", + "position": "top", + "margin-top": 0, + "margin-left": 0, + "margin-right": 0, + "height": 35, + "group/hardware": { + "orientation": "horizontal", + "modules": [ + "cpu", + "memory" + ] + }, + "group/temp": { + "orientation": "horizontal", + "modules": [ + "temperature#cpu", + "custom/gpu_temperature" + ] + }, + "group/audio": { + "orientation": "horizontal", + "modules": [ + "wireplumber#source", + "wireplumber#sink" + ] + }, + "group/keyboard": { + "orientation": "horizontal", + "modules": [ + "custom/kbd", + "keyboard-state#num", + "keyboard-state#caps", + "custom/language" + ] + }, + "custom/rofi": { + "exec-if": "[ \"$USER\" != \"pyrschtjag\" ]", + "exec": "echo '{\"text\": \"\", \"tooltip\": \"\"}'", + "return-type": "json", + "format": "{icon}{text}", + "format-icons": ["󰀻"], + "interval": "once", + "on-click": "rofi -show drun", + "tooltip": false + }, + "sway/workspaces": { + "format": "{icon}{windows}", + "window-rewrite": { + "class": " 󰈹", + "class": " ", + "class": " 󰙯", + "class": " ", + "class": " 󰓓", + "class": " 󰷕", + "class": " ", + "class": " 󰊗", + "title": " ", + "title": " ", + "title": " ", + "title<\\[work\\] .*Thunderbird.*>": " ", + "title<\\[work\\] .*Firefox.*>": " 󰈹", + "title<\\[work\\] .*Element.*>": " 󰭻", + "title<\\[work\\] .*Octo Browser.*>": " ", + "title<(.*)Octium>": " ", + "title<(.*)LibreOffice Calc>": " ", + "": " " + }, + "disable-scroll": true, + "disable-auto-back-and-forth": true, + "tooltip": false, + "cursor": "" + }, + "sway/mode": { + "format": "{}", + "max-length": 18, + "tooltip": false + }, + "clock#time": { + "format": " {:%H:%M}", + "tooltip": false + }, + "clock#date": { + "format": "󰃭 {:%d/%m}", + "tooltip": false + }, + "privacy": { + "icon-spacing": 10, + "icon-size": 14, + "transition-duration": 0, + "modules": [ + { + "type": "screenshare", + "tooltip": false + }, + { + "type": "audio-in", + "tooltip": false + } + ] + }, + "tray": { + "icon-size": 14, + "spacing": 10, + "tooltip": false + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "󱎴" + }, + "signal": 13, + "tooltip": false, + "cursor": "" + }, + "custom/kbd": { + "format": "󰌌", + "tooltip": false + }, + "keyboard-state#num": { + "numlock": true, + "capslock": false, + "format": "{icon}", + "format-icons": { + "locked": "󰎠", + "unlocked": "" + } + }, + "keyboard-state#caps": { + "numlock": false, + "capslock": true, + "format": "{icon}", + "format-icons": { + "locked": "󰬴", + "unlocked": "" + } + }, + "sway/language": { + "format": "{shortDescription}", + "tooltip": false + }, + "custom/language": { + "exec": "~/.config/waybar/scripts/lang.sh", + "format": "{}", + "tooltip": false + }, + "disk": { + "format": " {specific_free:0.1f}GB", + "paths": ["/"], + "unit": "GB", + "interval": 120, + "tooltip": false + }, + "cpu": { + "format": " {usage:03}%", + "interval": 5, + "tooltip": false + }, + "memory": { + "format": " {percentage:03}%", + "interval": 5, + "tooltip": false + }, + "temperature#cpu": { + "format": " {temperatureC:03}°C", + "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "interval": 5, + "tooltip": false + }, + "custom/gpu_temperature": { + "format": "󰢮 {text}°C", + "exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | xargs printf '%03d'", + "interval": 5, + "tooltip": false + }, + "custom/mouse": { + "format": "{text} {percentage}%", + "exec": "~/.config/waybar/scripts/razer-battery.sh", + "return-type": "json", + "interval": 60, + "tooltip": false + }, + "wireplumber#source": { + "format": " {volume:03}%", + "format-muted": " {volume:03}%", + "node-type": "Audio/Source", + "scroll-step": 5, + "tooltip": false + }, + "wireplumber#sink": { + "format": "{icon} {volume:03}%", + "format-muted": " {volume:03}%", + "format-icons": ["", "", ""], + "scroll-step": 5, + "tooltip": false + } +}