{
	"reload_style_on_change": true,
	"ipc": true,
	"layer": "overlay",
 	"position": "bottom",
	"output": "eDP-1",
  	"margin-top": 1,
  	"margin-left": 41,
  	"margin-right": 41,
  	"margin-bottom": 0,


	"group/left0": {
		"orientation": "inherit",
   		"modules": ["custom/debian"],
   		"margin-left": 4,
		"margin-right": 4
  	},

	"group/left1": {
		"orientation": "inherit",
   		"modules": ["clock", "custom/notification-silencing-indicator", "custom/weather"]
   	},

	"group/left2": {
    		"orientation": "inherit",
    		"modules": ["sway/workspaces"]
  	},

	"modules-left": [
		"group/left0",
    		"group/left1",
    		"group/left2",
    		"group/left3",
    		"group/left4"
    	],


	"modules-center": ["mpris"],
  	"modules-right": ["group/right1", "group/right2"],

	"group/right1": {
		"orientation": "inherit",
    		"modules": ["tray", "idle_inhibitor"]
  	},

	"group/right2": {
		"orientation": "inherit",
    		"modules": [
    			"backlight",
    			"bluetooth",
    			"pulseaudio",
    			"network",
    			"memory",
    			"battery"
    		],
	},

	"sway/workspaces": {
    		"format": "{icon}",
    		"format-icons": {
      			"01": "<span></span>",
      			"02": "<span></span>",
      			"03": "<span>󰎚</span>",
      			"04": "<span>󰭹</span>",
      			"05": "<span></span>",
      			"06": "<span></span>",
      			"07": "<span></span>",
      			"08": "<span>󰽉</span>",
    		},
		"on-click": "activate"
  	},

	"custom/debian": {
    		"format": "",
    		"on-click": "exec wlogout",
    		"on-click-right": "",
    		"tooltip-format": "L’université n’est pas une usine à fabriquer des diplômes, à la façon des usines à saucisses qui fabriquent des saucisses. \n\nC’est le lieu où une chance est donnée à des hommes de devenir qui ils sont vraiment. \n\nSimon Leys"
  	},

	"idle_inhibitor": {
    		"format": "{icon}",
    		"format-icons": {
			"activated": "󰈈",
			"deactivated": "󰈉"
    		}
	},

	"custom/notification-silencing-indicator": {
    		"on-click": "omarchy-toggle-notification-silencing",
    		"exec": "$OMARCHY_PATH/default/waybar/indicators/notification-silencing.sh",
    		"signal": 10,
    		"return-type": "json"
	},

	"sway/window": {
		"format": "{title}",
    		"max-length": 30,
    		"rewrite": {
      			" - ": "", // if no window is focused, a single dash is displayed, this removes it
	      		"(.*chrome)...(.*)": "   $1 ",
      			"(.*zen)...(.*)": "   $1 ",
      			"(.*foot)...(.*)": "   $2 ",
      			"(.*code) - (.*)": " 󰨞  $1 ",
      			"^.*btop( .*|$)": " 󰧨 BTOP $1 ",
       			"(.*) - Spotify": "  $1 ",
      			"(.*) - BeeperTexts": " 󰻞  $1 ",
      			"(.*Discord)...(.*).. (.*)": "   $2 ",
      			"(.*) - org.gnome.Nautilus": " 󰣆  $1 ",
      	 		"(.*Steam)...(.*)": "   $1",
      			"(.*imv)...(.*).. (.*)": "   $2",
      			"(.*) - com.obsproject.Studio": "  $1 "
		}
	},

	"memory": {
    		"interval": 5,
    	"format": " {icon} {percentage:02}%",
    	"format-icons": [
   			"󰾆",
			"󰾅",
      			"󰓅"
  		]
	},

	"clock": {
    		"format": " {:%H:%M %a} ",
    		"format-alt": " {:%d/%m/%Y  %H:%M:%S}",
		"tooltip-format": "<span>{calendar}</span>",
		"calendar": {
			"mode": "month",
			"mode-mon-col": 3,
      			"on-click-right": "mode",
			"format": {
				"month": "<span color='#ffead3'><b>{}</b></span>",
        			"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
        			"today": "<span color='#ff6699'><b>{}</b></span>"
      			}
		},
    		"on-click-right": "omarchy-launch-floating-terminal-with-presentation omarchy-tz-select"
	},

	"network": {
    	"format-icons": [
      		"󰤯",
      		"󰤟",
      		"󰤢",
      		"󰤥",
      		"󰤨"
    	],
    	"format": "{icon}",
    	"format-wifi": "{icon}",
    	"format-ethernet": "󰈀",
    	"format-disconnected": "󰤮",
    	"tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes}  ⇡{bandwidthUpBytes}",
    	"tooltip-format-ethernet": "⇣{bandwidthDownBytes}  ⇡{bandwidthUpBytes}",
    	"tooltip-format-disconnected": "Disconnected",
    	"interval": 3,
    	"spacing": 1,
    	"on-click": "exec foot nmtui"
	},

	"battery": {
		"format": "{capacity}% {icon}",
    		"format-discharging": "{icon} {capacity}%",
    		"format-charging": "{icon} {capacity}%",
    		"format-plugged": " {capacity} %",
    		"format-icons": {
      			"charging": [
        			"󰢜",
        			"󰂆",
        			"󰂇",
        			"󰂈",
        			"󰢝",
 				"󰂉",
        			"󰢞",
        			"󰂊",
        			"󰂋",
        			"󰂅"
			],
			"default": [
        			"󰁺",
        			"󰁻",
        			"󰁼",
        			"󰁽",
        			"󰁾",
        			"󰁿",
        			"󰂀",
        			"󰂁",
        			"󰂂",
        			"󰁹"
      			]
    		},
		"format-full": "󰂅",
    		"tooltip-format-discharging": "{timeTo}",
    		"tooltip-format-charging": "{timeTo}",
    		"interval": 5,
    		"on-click": "exec tlp toggle",
    		"on-click-right": "notify-send -u low \"$(omarchy-battery-status)\"",
    		"states": {
      			"warning": 20,
      			"critical": 10
    		}
	},

	"bluetooth": {
    		"format": "",
    		"format-disabled": "󰂲",
    		"format-connected": "",
    		"tooltip-format": "Devices connected: {num_connections}",
    		"on-click": "bluetooth toggle"
	},

	"backlight": {
    		"device": "intel_backlight",
    		"format": "{icon}",
    		"tooltip-format": "{percent}%",
    		"format-icons": [
      			"🌑",
      			"🌘",
      			"🌗",
      			"🌖",
      			"🌕"
    		]
	},

	"custom/weather": {
    		"format": "{}",
    		"interval": 900,
    		"exec": "~/.config/waybar/scripts/weather_module.py",
    		"tooltip": true,
    		"on-click": "exec ~/.config/waybar/scripts/weather_module.py",
    		"return-type": "json",
	},

	"pulseaudio": {
		"format": "{icon} {volume}%",
		"format-muted": "󰖁",
		"format-icons": {
			"default": [
				"󰕿",
				"󰖀",
				"󰕾",
			],
		},
		"on-click": "amixer sset 'Master' toggle",
		"scroll-step": 3,
	},

	"tray": {
   		"icon-size": 19,
    		"spacing": 10
	},

	"mpris": {
    		"ignored-players": [],
		"interval": 10,
    		"format": "{player_icon} {dynamic}",
    		"format-paused": "{status_icon} {artist} {title}",
    		"on-click-middle": "playerctl play-pause",
   		"on-click": "playerctl previous",
    		"on-click-right": "playerctl next",
    		"scroll-step": 5.0,
    		"on-scroll-up": "",
    		"on-scroll-down": "",
    		"smooth-scrolling-threshold": 1,
    		"tooltip": true,
    		"tooltip-format": "{status_icon} {dynamic}\nLeft Click: previous\nMid Click: Pause\nRight Click: Next",
    		"player-icons": {
            		"chromium": "",
            		"default": "",
            		"firefox": "",
            		"kdeconnect": "",
            		"mopidy": "",
            		"mpv": "󰐹",
            	        "vlc": "󰕼",
    		},
    		"status-icons": {
            		"paused": "󰐎",
            		"playing": "",
            		"stopped": "",
    		},
		"dynamic-order": ["artist", "title"],
		"max-length": 50,
	},

	"custom/screenrecording-indicator": {
    		"on-click": "omarchy-capture-screenrecording",
    		"exec": "$OMARCHY_PATH/default/waybar/indicators/screen-recording.sh",
    		"signal": 8,
    		"return-type": "json"
  	},

}

