Skip to content

Instantly share code, notes, and snippets.

@t0m5k1
Last active September 16, 2024 18:33
Show Gist options
  • Save t0m5k1/6dd3984ca6a66d69fbc3cd345439e8c6 to your computer and use it in GitHub Desktop.
Save t0m5k1/6dd3984ca6a66d69fbc3cd345439e8c6 to your computer and use it in GitHub Desktop.
.config/waybar/config
{
"layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
//"margin": "20 20 0 20",
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["custom/launcher", "hyprland/workspaces", "hyprland/window"],
"modules-center": ["mpris"],
"modules-right": ["pulseaudio", "clock", "temperature", "custom/pacman", "tray"],
//***************************
//* Modules configuration *
//***************************
"hyprland/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"warp-on-scroll": false,
"on-click": "activate",
"on-scroll-up": "hyprctl dispatch workspace -1",
"on-scroll-down": "hyprctl dispatch workspace +1",
"format": "{icon}",
"format-icons": {
"1":"πŸ–₯",
"2":"πŸ—‚",
"3":"⛓️",
"4":"πŸ“©",
"5":"πŸ’¬",
"6":"🌍",
"7":"πŸ‘ͺ",
"8":"πŸ“°",
"9":"🎧",
"urgent": "οͺ",
"focused": "ο†’",
"default": "ο„‘"
}
},
"hyprland/window": {
"format": "{}",
"icon": true,
"icon-size": 14,
"icon-theme": "elementary",
"rewrite": {
"(.*) - YouTube(.*)": " ο…¦ ξŠ… $1",
"(.*)Mastodon(.*)": " σ°«‘ ξŠ… $1",
"(.*) - Deezer(.*)": " πŸ’œ ξŠ… $1",
"(.*)Twitter(.*)": " 🐦 ξŠ… $1",
"(.*)Facebook(.*)": " πŸ“˜ ξŠ… $1",
"(.*) - Reddit(.*)": " ο†’ ξŠ… $1",
},
"separate-outputs": true
},
"custom/pacman": {
"format": "{}",
"interval": 3600, // every hour
//"exec": "(checkupdates;pacman -Qm) | wc -l", // # of updates
"exec": "$HOME/scripts/updates-chk.sh", // # of updates
"exec-if": "exit 0", // always run; consider advanced run conditions
"on-click": "kitty sh -c 'sudo pacman -Syu; echo Done - Press enter to exit; read'; pkill -SIGRTMIN+8 waybar", // update system
"signal": 8,
"tooltip": false,
},
"clock": {
"format": "{:%a %H:%M %d/%m/%y} ",
"format-alt": "{:%R, %A, %B %d, %Y } πŸ—“ ",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "year",
"mode-mon-col" : 3,
"weeks-pos" : "right",
"on-scroll" : 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"mpris": {
"format": "{player_icon}:{status_icon} {dynamic}",
"format-paused": "{player_icon}:{status_icon} {dynamic}",
"player-icons": {
"default": "🎡",
"mpv": "πŸ“Ί",
"brave": "🦁",
"firefox": "🦊",
"vlc": "σ°•Ό"
},
"status-icons": {
"playing": "⏯",
"stopped": "⏹️",
"paused": "⏯"
},
// "ignored-players": ["firefox"]
},
"pulseaudio": {
// "scroll-step": 2, // %, can be a float
"format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon}οŠ” ",
"format-bluetooth-muted": "πŸ”‡ {icon}οŠ” ",
"format-muted": "πŸ”‡ ",
"format-icons": {
"headphones": "🎧",
"default": ["πŸ”‡", "πŸ”ˆ", "πŸ”‰", "πŸ”Š"]
},
"on-click": "pamixer -t",
"on-click-right": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"]
},
"temperature": {
// "thermal-zone": 2,
"hwmon-path": "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1_input",
// "critical-threshold": 80,
"on-click": "kitty sh -c btop",
"on-click-middle": "cpu-x",
"on-click-right": "psensor",
"format-critical": "{temperatureC}Β°C ",
"format": "{temperatureC}Β°C "
},
//"network": {
// "interface": "",
// "interval": "1",
// "format": "πŸ“Ά {ifname} {bandwidthUpBytes} {bandwidthDownBytes}",
// "format-wifi": "{essid} ({signalStrength}%) ",
// "format-ethernet": "{ipaddr}/{cidr} πŸ“Ά",
// "format-disconnected": "", //An empty format will hide the module.
// "tooltip-format": "{ifname} via {gwaddr} ",
// "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
// "tooltip-format-ethernet": "{ifname} ",
// "tooltip-format-disconnected": "Disconnected",
// "max-length": 50
//},
"custom/launcher":{
"format": "οŒƒ ",
"on-click": "rofi -show drun -theme ~/.config/rofi/launchers/type-6/style-7.rasi",
"on-click-right": "killall rofi"
},
"tray": {
"icon-size": 16,
"spacing": 0
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment