// -*- mode: jsonc -*- { "width": 1400, "height": 25, "layer": "top", "position": "top", "exclusive": true, "passthrough": false, "margin-top": 6, "spacing": 8, "fixed-center": true, "reload_style_on_change": true, "modules-left": [ "custom/notifications", "custom/sep", "tray", "custom/sep", "niri/language", "niri/window", "cava" ], "modules-center": [ "clock" ], "modules-right": [ "cava","privacy", "custom/sep", "pulseaudio","custom/sep", "backlight","custom/sep", "battery","custom/sep", "network", ], /*"custom/sep": { "format": "|", "tooltip": false, },*/ "niri/window": { "format": "{app_id}", "icon": true, "icon-size": 14, "seperate-outputs": false, "rewrite": { "io.github.kukuruzka165.materialgram": "materialgram", "com.obsproject.Studio": "obs", "com.github.th_ch.youtube_music": "ytm", }, }, "cava": { "framerate": 60, "autosens": 1, "bars": 8, "lower_cutoff_freq": 50, "higher_cutoff_freq": 10000, "method": "pulse", "source": "auto", "stereo": true, "bar_delimiter": 0, "noise_reduction": 0.30, "input_delay": 0, "format-icons" : ["", "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], }, "niri/workspaces": { "disable-scroll": false, "show-special": false, "format": "{icon}", "format-icons": { "active": "1", "default": "0" }, }, "privacy": { "icon-spacing": 10, "icon-size": 12, "transition-duration": 250, "modules": [ { "type": "screenshare", "tooltip": true, "tooltip-icon-size": 24 }, { "type": "audio-in", "tooltip": true, "tooltip-icon-size": 24 } ], "ignore-monitor": true, "ignore": [ { //"type": "screenshare", //"name": "obs" "type": "audio-in", "name": "cava" } ] }, "network": { "format-wifi": "󰤯", "format-ethernet": "󰈀", "format-linked": "󰈀", "format-disconnected": "󰤮", "on-click": "python ~/.config/rofi/network/network.py", "on-click-right": "/mnt/bine4/scripts/wallpaperkonachan.bash", }, "custom/notifications": { "tooltip": false, "format": "{icon}", "format-icons": { "notification": "", "none": "", "dnd-notification":"", "dnd-none": "", }, "return-type": "json", "exec-if": "which swaync-client", "exec": "swaync-client -swb", "on-click": "swaync-client -t -sw", "on-click-right": "swaync-client -d -sw", "escape": true }, "tray": { "icon-size": 14, "spacing": 5, }, "clock": { "format": "{:%H:%M:%S  %d.%m.%y}", "tooltip-format": "{:%OI:%M:%S}", "timezone": "Europe/Riga", "interval": 1, "tooltip": "false", // "format-alt": "{:%d.%m.%y}", "on-click-right": "bash ~/.config/rofi/calendar/calendar.sh" }, "pulseaudio": { "format": "{volume} {format_source}", "format-muted": "MUTE", "format-source": "1", "format-source-muted": "0", "format-icons": { "default": ["1", "2", "3"]}, "on-click": "pavucontrol", "tooltip-format": "{volume}%" }, "niri/language": { "format": "{}", "format-en": "󰑂 ", "format-ru": "󰑀 " }, "battery": { "interval": 5, "states": { "warning": 40, "critical": 20, }, "format": "{capacity}", "format-icons": ["0", "1", "2", "3", "4"], "format-time": "{H}h {M}m", "tooltip-format": "{capacity} {power}w {time}", "tooltip-format-charging": "{capacity}% (charging) {time}", }, "backlight": { "device": "intel_backlight", "format": "{percent}", "format-icons": ["1","2","3"], "on-scroll-up": "brightnessctl s 1%+", "on-scroll-down": "brightnessctl s 1%-", "on-click-right": "brightnessctl s 0" }, }