Last active
September 16, 2024 18:33
-
-
Save t0m5k1/6dd3984ca6a66d69fbc3cd345439e8c6 to your computer and use it in GitHub Desktop.
.config/waybar/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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