Waybar and Wodi
This commit is contained in:
244
.config/waybar/config2
Normal file
244
.config/waybar/config2
Normal file
@@ -0,0 +1,244 @@
|
||||
[{
|
||||
"layer": "top", // Waybar at top layer
|
||||
"position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 2560, // Waybar width
|
||||
// Choose the order of the modules
|
||||
|
||||
"margin-right": 8,
|
||||
"margin-left": 8,
|
||||
"margin-top": 1,
|
||||
"margin-bottom":8,
|
||||
|
||||
"modules-left": ["custom/launcher", "sway/workspaces","custom/firefox", "custom/libreoffice", "custom/youtube", "custom/dolphin", "custom/kate","custom/store", "custom/spotify",],
|
||||
"modules-center": ["sway/window",],
|
||||
"modules-right": ["pulseaudio", "custom/weather", "cpu", "custom/pacman", "battery", "backlight" , "tray", "clock", "custom/recorder", "custom/power", ],
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": false,
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"persistent_workspaces": {
|
||||
"1": [],
|
||||
"2": [],
|
||||
"3": [],
|
||||
"4": [],
|
||||
},
|
||||
"format-icons": {
|
||||
"1": "1",
|
||||
"2": "2",
|
||||
"3": "3",
|
||||
"4": "4",
|
||||
"5": "5",
|
||||
"focused": "",
|
||||
"urgent": "",
|
||||
"default": ""
|
||||
},
|
||||
"icon-size": 15
|
||||
},
|
||||
"river/tags": {
|
||||
"num-tags": 5
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/window": {
|
||||
"format": "{}",
|
||||
"max-length": 65,
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon}{}",
|
||||
"return-type": "json",
|
||||
"format-icons": {
|
||||
"Playing": " ",
|
||||
"Paused": " ",
|
||||
"Music": " "
|
||||
},
|
||||
"max-length":65,
|
||||
"interval": 2,
|
||||
"exec": "fish -c playerstatus",
|
||||
"exec-on-event": "fish -c playerstatus",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "mpc toggle --host 127.0.0.1 --port 6002",
|
||||
},
|
||||
"custom/recorder": {
|
||||
"return-type": "json",
|
||||
"format": "",
|
||||
"interval": 1,
|
||||
"exec-if": "pgrep wf-recorder",
|
||||
"exec": "echo '{\"class\": \"recording\"}'",
|
||||
"on-click": "fish -c recording",
|
||||
"tooltip": false,
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
|
||||
// "timezone": "America/New_York",
|
||||
"format": "{:%I:%M %p}",
|
||||
"format-alt": "{:%A, %B %d}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
// "format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage} ",
|
||||
"on-click": "alacritty -e ytop",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{} "
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 2,
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
"format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC} {icon}",
|
||||
"interval": 60,
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
"interval": 5,
|
||||
"format": "{icon}",
|
||||
"format-alt": "{percent}% {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
"format-icons": ["🌕", "🌔", "🌓", "🌒", "🌑"],
|
||||
"on-scroll-down": "brightnessctl -c backlight set +5%",
|
||||
"on-scroll-up": "brightnessctl -c backlight set 5%-"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
"interface": "wlan0", // (Optional) To force the use of this interface
|
||||
"format-wifi": " connected",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"interval": 60,
|
||||
"on-click-right": "exec /home/aryan/nmcli-rofi/nmcli-rofi"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["奄"]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
|
||||
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "~/.config/waybar/scripts/weather.sh Royal Tunbridge Wells",
|
||||
"format": "{}",
|
||||
"return-type": "json",
|
||||
"interval": 600
|
||||
},
|
||||
"custom/pacman": {
|
||||
"format": "{} ",
|
||||
"interval": 3600, // every hour
|
||||
// "restart-interval": 3600,
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "alacritty -e yay; pkill -SIGRTMIN+8 waybar", // update system
|
||||
"signal": 8,
|
||||
},
|
||||
"disk": {
|
||||
"interval": 30,
|
||||
"format": "{free}",
|
||||
"path": "/run/media/aryan/",
|
||||
},
|
||||
"custom/power": {
|
||||
"format": "⏻",
|
||||
"on-click": "exec nwgbar",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/firefox": {
|
||||
"format": "",
|
||||
"on-click": "exec firefox",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/libreoffice": {
|
||||
"format": "",
|
||||
"on-click": "exec libreoffice",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/youtube": {
|
||||
"format": "輸",
|
||||
"on-click": "xdg-open https://www.youtube.com/",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/dolphin": {
|
||||
"format": "",
|
||||
"on-click": "exec dolphin",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/kate": {
|
||||
"format": "",
|
||||
"on-click": "exec kate",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/store": {
|
||||
"format": " ",
|
||||
"on-click": "exec pamac-manager",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/launcher": {
|
||||
"format":" ",
|
||||
"on-click": "exec ~/.config/rofi/launchers/text/launcher.sh",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
// "format": "{app_id}",
|
||||
"icon-theme": "Papirus",
|
||||
"icon-size": 15,
|
||||
"on-click": "activate",
|
||||
"markup": true,
|
||||
"max-length": 7,
|
||||
"on-click-right": "minimize",
|
||||
"on-click-middle": "close"
|
||||
},
|
||||
"custom/spotify": {
|
||||
"interval": 1,
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/waybar/modules/spotify.sh",
|
||||
"exec-if": "pgrep spotify",
|
||||
"escape": true
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user