waybar config

This commit is contained in:
Matthieu Fortin (CPC/CCP) 2024-09-19 16:05:50 -04:00
parent eee7ade89b
commit 68d112a8a4
12 changed files with 171 additions and 70 deletions

View file

@ -0,0 +1 @@
https://git.sr.ht/~robertgzr/dotfiles/tree/master/item/.config/waybar/config.jsonc

View file

@ -33,8 +33,8 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP #
##exec-once = hyprpaper
exec-once = hypridle $ #
##exec-once = ~/.config/hypr/scripts/waybar.sh
exec-once = waybar & #
exec-once = ~/.config/hypr/scripts/waybar.sh
#exec-once = waybar & #
exec-once = nm-applet --indicator & #
exec-once = swaync & #
exec-once = blueman-applet & #

View file

@ -11,6 +11,7 @@ configuration {
/* ---- Window ---- */
window {
width: 60%;
}
/* ---- Listview ---- */
listview {

View file

@ -1,69 +1,32 @@
/* ---- 💫 https://github.com/JaKooLit 💫 ---- */
// ### DEFAULT - Top ### //
{
"include": [
"$HOME/.config/waybar/Modules",
"$HOME/.config/waybar/ModulesWorkspaces",
],
"layer": "top",
//"mode": "dock",
"exclusive": true,
"passthrough": false,
"position": "top",
"spacing": 3,
"fixed-center": true,
"ipc": true,
"margin-top": 3,
"margin-left": 8,
"margin-right": 8,
"modules-left": [
"hyprland/workspaces#pacman",
"custom/separator#dot-line",
"cpu",
"custom/separator#dot-line",
"temperature",
"custom/separator#dot-line",
"memory",
"custom/separator#dot-line",
"custom/weather",
"custom/separator#blank_3",
"custom/cava_mviz",
],
"modules-center": [
"custom/menu",
"custom/separator#dot-line",
"idle_inhibitor",
"custom/separator#dot-line",
"clock",
"custom/separator#dot-line",
"custom/light_dark",
"custom/separator#dot-line",
"custom/lock",
//],
"custom/separator#dot-line",
"custom/hint",
],
"modules-right": [
"network#speed",
"custom/separator#dot-line",
"custom/swaync",
"tray",
"mpris",
"custom/separator#dot-line",
"bluetooth",
"custom/separator#dot-line",
"pulseaudio",
"custom/separator#dot-line",
"pulseaudio#microphone",
"custom/separator#dot-line",
"keyboard-state",
"custom/separator#dot-line",
"custom/keyboard",
"custom/separator#dot-line",
"custom/power",
],
"layer":"top",
"position":"top",
"modules-left":["hyprland/workspaces"],
"modules-center":["hyprland/window"],
"modules-right":["wireplumber","battery","clock"],
"battery":{
"format":"{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
},
"clock": {
"format":"{:%H:%M}",
"format-alt": "{:%Y-%m-%d %H:%M}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"wireplumber": {
"format":"{volume}% {icon}",
"format-muted": "",
"scroll-step": 1,
"on-click":"qpwgraph",
"format-icons": ["", "", ""],
"tooltip":true,
"tooltip-format": "{volume}%"
}
}

View file

@ -1 +1,67 @@
@import "mocha.css";
* {
font-family: FontAwesome, NotoSans, Helvetica, Arial, sans-serif;
font-size: 1rem;
}
window#waybar {
background-color: rgba(43,48,59,0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
#wireplumber,
#clock,
#battery {
padding: 0 0.625rem;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 0.25rem;
}
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#wireplumber,
#battery {
background-color: #ffffff;
color: #000000;
}
#battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
#battery.discharging {
background-color: #ff1111;
}
#battery.charging {
background-color: #00ff00;
}
#clock {
background-color: #ffffff;
color: #000000;
}
#idle_inhibitor.activated {
font-size: 1.5rem;
}
#idle_inhibitor.deactivated {
font-size: 1.5rem;
}

View file

@ -0,0 +1,69 @@
/* ---- 💫 https://github.com/JaKooLit 💫 ---- */
// ### DEFAULT - Top ### //
{
"include": [
"$HOME/.config/waybar/Modules",
"$HOME/.config/waybar/ModulesWorkspaces",
],
"layer": "top",
//"mode": "dock",
"exclusive": true,
"passthrough": false,
"position": "top",
"spacing": 3,
"fixed-center": true,
"ipc": true,
"margin-top": 3,
"margin-left": 8,
"margin-right": 8,
"modules-left": [
"hyprland/workspaces#pacman",
"custom/separator#dot-line",
"cpu",
"custom/separator#dot-line",
"temperature",
"custom/separator#dot-line",
"memory",
"custom/separator#dot-line",
"custom/weather",
"custom/separator#blank_3",
"custom/cava_mviz",
],
"modules-center": [
"custom/menu",
"custom/separator#dot-line",
"idle_inhibitor",
"custom/separator#dot-line",
"clock",
"custom/separator#dot-line",
"custom/light_dark",
"custom/separator#dot-line",
"custom/lock",
//],
"custom/separator#dot-line",
"custom/hint",
],
"modules-right": [
"network#speed",
"custom/separator#dot-line",
"custom/swaync",
"tray",
"mpris",
"custom/separator#dot-line",
"bluetooth",
"custom/separator#dot-line",
"pulseaudio",
"custom/separator#dot-line",
"pulseaudio#microphone",
"custom/separator#dot-line",
"keyboard-state",
"custom/separator#dot-line",
"custom/keyboard",
"custom/separator#dot-line",
"custom/power",
],
}

View file

@ -0,0 +1 @@
@import "mocha.css";