fixes waybar. moves stuff to vicinae
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
@define-color cursor #AA9BB0;
|
||||
@define-color background #1B1D1E;
|
||||
@define-color foreground #E1E9EE;
|
||||
@define-color color0 #424345;
|
||||
@define-color color1 #58120D;
|
||||
@define-color color2 #744E72;
|
||||
@define-color color3 #517185;
|
||||
@define-color color4 #DD2A4A;
|
||||
@define-color color5 #DEACB3;
|
||||
@define-color color6 #A9BFCE;
|
||||
@define-color color7 #CCD7DE;
|
||||
@define-color color8 #8E969B;
|
||||
@define-color color9 #58120D;
|
||||
@define-color color10 #744E72;
|
||||
@define-color color11 #517185;
|
||||
@define-color color12 #DD2A4A;
|
||||
@define-color color13 #DEACB3;
|
||||
@define-color color14 #A9BFCE;
|
||||
@define-color color15 #CCD7DE;
|
||||
@define-color cursor #9D7C73;
|
||||
@define-color background #0E0E11;
|
||||
@define-color foreground #FDF2DE;
|
||||
@define-color color0 #38393C;
|
||||
@define-color color1 #424652;
|
||||
@define-color color2 #6A3E40;
|
||||
@define-color color3 #736956;
|
||||
@define-color color4 #897C88;
|
||||
@define-color color5 #9B8166;
|
||||
@define-color color6 #F9D9A2;
|
||||
@define-color color7 #F4E4C8;
|
||||
@define-color color8 #AA9F8C;
|
||||
@define-color color9 #424652;
|
||||
@define-color color10 #6A3E40;
|
||||
@define-color color11 #736956;
|
||||
@define-color color12 #897C88;
|
||||
@define-color color13 #9B8166;
|
||||
@define-color color14 #F9D9A2;
|
||||
@define-color color15 #F4E4C8;
|
||||
|
||||
@@ -1,385 +0,0 @@
|
||||
{
|
||||
// -------------------------------------------------------------------------
|
||||
// Global configuration
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
"layer": "top",
|
||||
|
||||
"position": "top",
|
||||
|
||||
"height": 20,
|
||||
|
||||
"margin-left": 10,
|
||||
"margin-bottom": 0,
|
||||
"margin-right": 10,
|
||||
|
||||
"spacing": 5, // Gaps between modules (4px)
|
||||
|
||||
"modules-left": [
|
||||
//"custom/rofi",
|
||||
"hyprland/workspaces",
|
||||
"custom/weather",
|
||||
"clock",
|
||||
//"hyprland/submap",
|
||||
"temperature",
|
||||
//"idle_inhibitor",
|
||||
//"mpd",
|
||||
"custom/spotify"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
//"custom/gammastep"
|
||||
],
|
||||
"modules-right": [
|
||||
"backlight",
|
||||
"custom/storage",
|
||||
"memory",
|
||||
"cpu",
|
||||
"battery",
|
||||
//"pulseaudio",
|
||||
"wireplumber",
|
||||
"bluetooth",
|
||||
//"custom/screenshot_t",
|
||||
"tray",
|
||||
"custom/power"
|
||||
],
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Modules
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
"custom/sp1": {
|
||||
"format": " | ",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/sp2": {
|
||||
"format": " |",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"custom/rofi": {
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
"on-click-right": "nwg-drawer",
|
||||
"on-click": "wofi --show run",
|
||||
"on-click-middle": "pkill -9 wofi"
|
||||
},
|
||||
"custom/screenshot_t":{
|
||||
"format":" ",
|
||||
"on-click": "~/.config/hypr/scripts/screenshot_full",
|
||||
"on-click-right":"~/.config/hypr/scripts/screenshot_area"
|
||||
},
|
||||
|
||||
"clock#1": {
|
||||
"format": " {:%a}",
|
||||
"tooltip": false,
|
||||
"on-click": "gsimplecal"
|
||||
},
|
||||
"clock#2": {
|
||||
"format": " {:%d-%h-%Y}",
|
||||
"tooltip": false,
|
||||
"on-click": "gsimplecal"
|
||||
},
|
||||
"clock#3": {
|
||||
"format": " {:%H:%M:%S %p}",
|
||||
"tooltip": false,
|
||||
"on-click": "gsimplecal"
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
|
||||
"format": "",
|
||||
"format-connected": " {num_connections} connected",
|
||||
"tooltip-format": "{controller_alias}\t{controller_address}",
|
||||
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
||||
"on-click": "blueman-manager"
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
// "thermal-zone": 1,
|
||||
"interval": 4,
|
||||
//"hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": " {temperatureC}°C",
|
||||
"format-critical": " {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"max-length": 7,
|
||||
"min-length": 7,
|
||||
"on-click": "xsensors"
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 30,
|
||||
"format": " {used:0.2f} / {total:0.0f} GB",
|
||||
"on-click": "alacritty -e btop"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 2,
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " {essid} ({signalStrength}%)",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format": "",
|
||||
"format-disconnected": "",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)",
|
||||
"on-click-right": "wl-copy $(ip address show up scope global | grep inet6 | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c6-)",
|
||||
"tooltip-format": " {bandwidthUpBits} {bandwidthDownBits}\n{ifname}\n{ipaddr}/{cidr}\n",
|
||||
"tooltip-format-wifi": " {essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\nIP: {ipaddr}/{cidr}\n {bandwidthUpBits} {bandwidthDownBits}",
|
||||
"interval": 10
|
||||
},
|
||||
"custom/storage": {
|
||||
"format": " {}",
|
||||
"format-alt": "{percentage}% ",
|
||||
"format-alt-click": "click-right",
|
||||
"return-type": "json",
|
||||
"interval": 60,
|
||||
"exec": "~/.config/waybar/modules/storage.sh"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon} {percent}%",
|
||||
"format-alt": "{percent}% {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
//"format-icons": ["", ""],
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-down": "brightnessctl s 5%-",
|
||||
"on-scroll-up": "brightnessctl s +5%"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
"tooltip": "true"
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
"format-alt": "{alt}: {}",
|
||||
"format-alt-click": "click-right",
|
||||
"interval": 3600,
|
||||
"exec": "curl -s 'https://wttr.in/?format=1'",
|
||||
//"return-type": "json",
|
||||
//"exec": "~/.config/waybar/modules/weather.sh",
|
||||
"exec-if": "ping wttr.in -c1"
|
||||
},
|
||||
"custom/pacman": {
|
||||
"format": "<big></big> {}",
|
||||
"interval": 3600, // every hour
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "alacritty -e 'paru'; pkill -SIGRTMIN+8 waybar", // update system
|
||||
"signal": 8,
|
||||
"max-length": 5,
|
||||
"min-length": 3
|
||||
},
|
||||
|
||||
"custom/spotify": {
|
||||
"exec": "~/.config/waybar/mediaplayer.py --player spotify",
|
||||
"format": "{} ",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-scroll-up": "playerctl next",
|
||||
"on-scroll-down": "playerctl previous"
|
||||
},
|
||||
|
||||
"custom/media": {
|
||||
"format": "{0} {1}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
//"exec": "~/.config/waybar/mediaplayer.py" // Script in resources folder
|
||||
// "exec": "~/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "wlogout"
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": " {:%H:%M %e %b}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>"
|
||||
},
|
||||
|
||||
"clock#date": {
|
||||
"format": " {:%H:%M \n %e %b}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>"
|
||||
},
|
||||
|
||||
"custom/gammastep": {
|
||||
"interval": 5,
|
||||
"return-type": "json",
|
||||
"exec": {
|
||||
"pre": "if unit_status=\"$(systemctl --user is-active gammastep)\"; then\nstatus=\"$unit_status ($(journalctl --user -u gammastep.service -g 'Period: ' | tail -1 | cut -d ':' -f6 | xargs))\"\nelse\nstatus=\"$unit_status\"\nfi",
|
||||
"alt": "${status:-inactive}",
|
||||
"tooltip": "Gammastep is $status",
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activating": " ",
|
||||
"deactivating": " ",
|
||||
"inactive": "? ",
|
||||
"active (Night)": " ",
|
||||
"active (Nighttime)": " ",
|
||||
"active (Transition (Night)": " ",
|
||||
"active (Transition (Nighttime)": " ",
|
||||
"active (Day)": " ",
|
||||
"active (Daytime)": " ",
|
||||
"active (Transition (Day)": " ",
|
||||
"active (Transition (Daytime)": " ",
|
||||
},
|
||||
"on-click": "systemctl --user is-active gammastep && systemctl --user stop gammastep || systemctl --user start gammastep",
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 1,
|
||||
//"format": " {}%", // Icon: microchip
|
||||
"format": "{max_frequency}GHz <span color=\"darkgray\">| {usage}%</span>",
|
||||
"max-length": 13,
|
||||
"min-length": 13
|
||||
},
|
||||
|
||||
"mpd": {
|
||||
"max-length": 25,
|
||||
"format": "<span foreground='#bb9af7'></span> {title}",
|
||||
"format-paused": " {title}",
|
||||
"format-stopped": "<span foreground='#bb9af7'></span>",
|
||||
"format-disconnected": "",
|
||||
"on-click": "mpc --quiet toggle",
|
||||
"on-click-right": "mpc update; mpc ls | mpc add",
|
||||
"on-click-middle": "alacritty -e ncmpcpp",
|
||||
"on-scroll-up": "mpc --quiet prev",
|
||||
"on-scroll-down": "mpc --quiet next",
|
||||
"smooth-scrolling-threshold": 5,
|
||||
"tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})"
|
||||
},
|
||||
|
||||
"custom/title": {
|
||||
"format": "{}",
|
||||
"interval": 0,
|
||||
"return-type": "json",
|
||||
//"max-length": 35,
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"custom/title#name": {
|
||||
"format": "{}",
|
||||
"interval": 0,
|
||||
"return-type": "json",
|
||||
|
||||
"max-length": 35,
|
||||
"exec": "$HOME/.scripts/title"
|
||||
},
|
||||
|
||||
/*"custom/keyboard": {
|
||||
"format": " {}",
|
||||
"interval": 1,
|
||||
"exec": "$HOME/.config/waybar/get_kbdlayout.sh"
|
||||
},*/
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"all-outputs": true,
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"1": "一",
|
||||
"2": "二",
|
||||
"3": "三",
|
||||
"4": "四",
|
||||
"5": "五",
|
||||
"6": "六",
|
||||
"7": "七",
|
||||
"8": "八",
|
||||
"9": "九",
|
||||
"10": "十",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
|
||||
"sort-by-number": true,
|
||||
"active-only": false,
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"max-length": 100,
|
||||
"separate-outputs": true
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 3, // %, can be a float
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
//"format-source": "{volume}% ",
|
||||
//"format-source-muted": "",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "amixer sset Master toggle"
|
||||
},
|
||||
|
||||
"wireplumber": {
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "amixer sset Master toggle 1>/dev/null",
|
||||
//on-click: "${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
//on-scroll-down: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04+";
|
||||
//on-scroll-up: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04-";
|
||||
"format": "<span foreground='#fab387'>{icon}</span> {volume}%",
|
||||
"format-muted": " ",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
//"format-muted": "<span foreground='#fab387'> </span>",
|
||||
//"format-icons": [ "<span foreground='#fab387'></span>" ]
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [" ", " ", " "]
|
||||
},
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 5
|
||||
}
|
||||
}
|
||||
439
.config/waybar/config.jsonc
Normal file
439
.config/waybar/config.jsonc
Normal file
@@ -0,0 +1,439 @@
|
||||
{
|
||||
// -------------------------------------------------------------------------
|
||||
// Global configuration
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
"layer": "top",
|
||||
|
||||
"position": "top",
|
||||
|
||||
"height": 36,
|
||||
|
||||
"margin-left": 2,
|
||||
"margin-bottom": 1,
|
||||
"margin-right": 2,
|
||||
|
||||
"spacing": 1, // Gaps between modules (4px)
|
||||
|
||||
"modules-left": [
|
||||
"clock",
|
||||
"custom/weather",
|
||||
//"custom/rofi",
|
||||
"hyprland/workspaces",
|
||||
//"hyprland/submap",
|
||||
//"idle_inhibitor",
|
||||
//"mpd",
|
||||
"custom/spotify",
|
||||
"hyprland/window",
|
||||
],
|
||||
// "modules-center": [
|
||||
// //"custom/gammastep"
|
||||
// ],
|
||||
"modules-right": [
|
||||
//"wlr/taskbar",
|
||||
//"custom/storage",
|
||||
"memory",
|
||||
"cpu",
|
||||
"temperature",
|
||||
"battery",
|
||||
//"pulseaudio",
|
||||
"wireplumber",
|
||||
"cava",
|
||||
//"backlight",
|
||||
"bluetooth",
|
||||
//"custom/screenshot_t",
|
||||
"custom/power_profiles",
|
||||
//"tray",
|
||||
"custom/power",
|
||||
],
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Modules
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
"wlr/taskbar": {
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"format": "{icon}",
|
||||
"icon-size": 12,
|
||||
"icon-theme": "Numix-Circle",
|
||||
},
|
||||
|
||||
"custom/sp1": {
|
||||
"format": " | ",
|
||||
"tooltip": false,
|
||||
},
|
||||
"custom/sp2": {
|
||||
"format": " |",
|
||||
"tooltip": false,
|
||||
},
|
||||
|
||||
"custom/rofi": {
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
"on-click-right": "nwg-drawer",
|
||||
"on-click": "wofi --show run",
|
||||
"on-click-middle": "pkill -9 wofi",
|
||||
},
|
||||
"custom/screenshot_t": {
|
||||
"format": " ",
|
||||
"on-click": "~/.config/hypr/scripts/screenshot_full",
|
||||
"on-click-right": "~/.config/hypr/scripts/screenshot_area",
|
||||
},
|
||||
|
||||
"clock#1": {
|
||||
"format": " {:%a}",
|
||||
"tooltip": false,
|
||||
"on-click": "gnome-calendar",
|
||||
},
|
||||
"clock#2": {
|
||||
"format": " {:%d-%h-%Y}",
|
||||
"tooltip": false,
|
||||
"on-click": "gnome-calendar",
|
||||
},
|
||||
"clock#3": {
|
||||
"format": " {:%H:%M:%S %p}",
|
||||
"tooltip": false,
|
||||
"on-click": "gnome-calendar",
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
|
||||
"format": "ᛒ {status}",
|
||||
"format-connected": "ᛒ {device_alias}",
|
||||
"format-disabled": "ᛒ off",
|
||||
"tooltip-format": "{controller_alias}\t{controller_address}",
|
||||
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
||||
"on-click": "blueman-manager",
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
// "thermal-zone": 1,
|
||||
"interval": 4,
|
||||
//"hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": " {temperatureC}°C",
|
||||
"format-critical": " {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"max-length": 7,
|
||||
"min-length": 7,
|
||||
"on-click": "xsensors",
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 30,
|
||||
"format": " {used:0.2f} / {total:0.0f} GB",
|
||||
"on-click": "kitty -e btop",
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 2,
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15,
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " {essid} ({signalStrength}%)",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format": "",
|
||||
"format-disconnected": "",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)",
|
||||
"on-click-right": "wl-copy $(ip address show up scope global | grep inet6 | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c6-)",
|
||||
"tooltip-format": " {bandwidthUpBits} {bandwidthDownBits}\n{ifname}\n{ipaddr}/{cidr}\n",
|
||||
"tooltip-format-wifi": " {essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\nIP: {ipaddr}/{cidr}\n {bandwidthUpBits} {bandwidthDownBits}",
|
||||
"interval": 10,
|
||||
},
|
||||
"custom/storage": {
|
||||
"format": " {}",
|
||||
"format-alt": "{percentage}% ",
|
||||
"format-alt-click": "click-right",
|
||||
"return-type": "json",
|
||||
"interval": 60,
|
||||
"exec": "~/.config/waybar/modules/storage.sh",
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon} {percent}%",
|
||||
"format-alt": "{percent}% {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
//"format-icons": ["", ""],
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-down": "brightnessctl s 5%-",
|
||||
"on-scroll-up": "brightnessctl s +5%",
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": "",
|
||||
},
|
||||
"tooltip": "true",
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
"format-alt": "{alt}: {}",
|
||||
"format-alt-click": "click-right",
|
||||
"interval": 3600,
|
||||
"exec": "curl -s 'https://wttr.in/?format=1'",
|
||||
//"return-type": "json",
|
||||
//"exec": "~/.config/waybar/modules/weather.sh",
|
||||
"exec-if": "ping wttr.in -c1",
|
||||
},
|
||||
"custom/pacman": {
|
||||
"format": "<big></big> {}",
|
||||
"interval": 3600, // every hour
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "alacritty -e 'paru'; pkill -SIGRTMIN+8 waybar", // update system
|
||||
"signal": 8,
|
||||
"max-length": 5,
|
||||
"min-length": 3,
|
||||
},
|
||||
|
||||
"custom/spotify": {
|
||||
"exec": "~/.config/waybar/mediaplayer.py --player spotify",
|
||||
"format": "{} ",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-scroll-up": "playerctl next",
|
||||
"on-scroll-down": "playerctl previous",
|
||||
},
|
||||
|
||||
"custom/media": {
|
||||
"format": "{0} {1}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜",
|
||||
},
|
||||
"escape": true,
|
||||
//"exec": "~/.config/waybar/mediaplayer.py" // Script in resources folder
|
||||
// "exec": "~/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": " {:%H:%M %e %b}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>",
|
||||
"on-click": "gnome-calendar",
|
||||
},
|
||||
|
||||
"clock#date": {
|
||||
"format": " {:%H:%M \n %e %b}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"today-format": "<b>{}</b>",
|
||||
},
|
||||
|
||||
"custom/gammastep": {
|
||||
"interval": 5,
|
||||
"return-type": "json",
|
||||
"exec": {
|
||||
"pre": "if unit_status=\"$(systemctl --user is-active gammastep)\"; then\nstatus=\"$unit_status ($(journalctl --user -u gammastep.service -g 'Period: ' | tail -1 | cut -d ':' -f6 | xargs))\"\nelse\nstatus=\"$unit_status\"\nfi",
|
||||
"alt": "${status:-inactive}",
|
||||
"tooltip": "Gammastep is $status",
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activating": " ",
|
||||
"deactivating": " ",
|
||||
"inactive": "? ",
|
||||
"active (Night)": " ",
|
||||
"active (Nighttime)": " ",
|
||||
"active (Transition (Night)": " ",
|
||||
"active (Transition (Nighttime)": " ",
|
||||
"active (Day)": " ",
|
||||
"active (Daytime)": " ",
|
||||
"active (Transition (Day)": " ",
|
||||
"active (Transition (Daytime)": " ",
|
||||
},
|
||||
"on-click": "systemctl --user is-active gammastep && systemctl --user stop gammastep || systemctl --user start gammastep",
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 1,
|
||||
//"format": " {}%", // Icon: microchip
|
||||
"format": "{max_frequency}GHz <span color=\"darkgray\">| {usage}%</span>",
|
||||
"max-length": 13,
|
||||
"min-length": 13,
|
||||
},
|
||||
|
||||
"mpd": {
|
||||
"max-length": 25,
|
||||
"format": "<span foreground='#bb9af7'></span> {title}",
|
||||
"format-paused": " {title}",
|
||||
"format-stopped": "<span foreground='#bb9af7'></span>",
|
||||
"format-disconnected": "",
|
||||
"on-click": "mpc --quiet toggle",
|
||||
"on-click-right": "mpc update; mpc ls | mpc add",
|
||||
"on-click-middle": "alacritty -e ncmpcpp",
|
||||
"on-scroll-up": "mpc --quiet prev",
|
||||
"on-scroll-down": "mpc --quiet next",
|
||||
"smooth-scrolling-threshold": 5,
|
||||
"tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})",
|
||||
},
|
||||
|
||||
"custom/title": {
|
||||
"format": "{}",
|
||||
"interval": 0,
|
||||
"return-type": "json",
|
||||
//"max-length": 35,
|
||||
"tooltip": false,
|
||||
},
|
||||
|
||||
"custom/title#name": {
|
||||
"format": "{}",
|
||||
"interval": 0,
|
||||
"return-type": "json",
|
||||
|
||||
"max-length": 35,
|
||||
"exec": "$HOME/.scripts/title",
|
||||
},
|
||||
|
||||
/*"custom/keyboard": {
|
||||
"format": " {}",
|
||||
"interval": 1,
|
||||
"exec": "$HOME/.config/waybar/get_kbdlayout.sh"
|
||||
},*/
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"all-outputs": false,
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"1": "一",
|
||||
"2": "二",
|
||||
"3": "三",
|
||||
"4": "四",
|
||||
"5": "五",
|
||||
"6": "六",
|
||||
"7": "七",
|
||||
"8": "八",
|
||||
"9": "九",
|
||||
"10": "十",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
|
||||
"sort-by-number": true,
|
||||
"active-only": false,
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"max-length": 200,
|
||||
"separate-outputs": true,
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 3, // %, can be a float
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
//"format-source": "{volume}% ",
|
||||
//"format-source-muted": "",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""],
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "amixer sset Master toggle",
|
||||
},
|
||||
|
||||
"wireplumber": {
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "amixer sset Master toggle 1>/dev/null",
|
||||
//on-click: "${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
//on-scroll-down: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04+";
|
||||
//on-scroll-up: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04-";
|
||||
"format": "<span foreground='#fab387'>{icon}</span> {volume}%",
|
||||
"format-muted": " ",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
//"format-muted": "<span foreground='#fab387'> </span>",
|
||||
//"format-icons": [ "<span foreground='#fab387'></span>" ]
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [" ", " ", " "],
|
||||
},
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 5,
|
||||
},
|
||||
|
||||
"custom/power_profiles": {
|
||||
"format": "{}",
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"exec": "~/.config/waybar/modules/power_profiles.py",
|
||||
"menu": "on-click",
|
||||
"menu-file": "~/.config/waybar/modules/power_profiles_menu.xml",
|
||||
"menu-actions": {
|
||||
"performance": "~/.config/waybar/modules/power_profiles.py --set performance",
|
||||
"balanced": "~/.config/waybar/modules/power_profiles.py --set balanced",
|
||||
"power-saver": "~/.config/waybar/modules/power_profiles.py --set power-saver",
|
||||
},
|
||||
"tooltip": true,
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "⏻ ",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "~/.config/waybar/modules/power_menu.xml",
|
||||
"menu-actions": {
|
||||
"shutdown": "shutdown",
|
||||
"reboot": "reboot",
|
||||
"suspend": "systemctl suspend",
|
||||
"hibernate": "systemctl hibernate",
|
||||
},
|
||||
},
|
||||
|
||||
"cava": {
|
||||
// "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
|
||||
"framerate": 30,
|
||||
"autosens": 1,
|
||||
"sensitivity": 100,
|
||||
"bars": 14,
|
||||
"lower_cutoff_freq": 50,
|
||||
"higher_cutoff_freq": 10000,
|
||||
"hide_on_silence": false,
|
||||
// "format_silent": "quiet",
|
||||
"method": "pulse",
|
||||
"source": "auto",
|
||||
"stereo": true,
|
||||
"reverse": false,
|
||||
"bar_delimiter": 0,
|
||||
"monstercat": false,
|
||||
"waves": false,
|
||||
"noise_reduction": 0.77,
|
||||
"input_delay": 2,
|
||||
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
},
|
||||
},
|
||||
}
|
||||
127
.config/waybar/mediaplayer.py
Executable file
127
.config/waybar/mediaplayer.py
Executable file
@@ -0,0 +1,127 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import logging
|
||||
import sys
|
||||
import signal
|
||||
import gi
|
||||
import json
|
||||
gi.require_version('Playerctl', '2.0')
|
||||
from gi.repository import Playerctl, GLib
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def write_output(text, player):
|
||||
logger.info('Writing output')
|
||||
|
||||
output = {'text': text,
|
||||
'class': 'custom-' + player.props.player_name,
|
||||
'alt': player.props.player_name}
|
||||
|
||||
sys.stdout.write(json.dumps(output) + '\n')
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def on_play(player, status, manager):
|
||||
logger.info('Received new playback status')
|
||||
on_metadata(player, player.props.metadata, manager)
|
||||
|
||||
|
||||
def on_metadata(player, metadata, manager):
|
||||
logger.info('Received new metadata')
|
||||
track_info = ''
|
||||
|
||||
if player.props.player_name == 'spotify' and \
|
||||
'mpris:trackid' in metadata.keys() and \
|
||||
':ad:' in player.props.metadata['mpris:trackid']:
|
||||
track_info = 'AD PLAYING'
|
||||
elif player.get_artist() != '' and player.get_title() != '':
|
||||
track_info = '{artist} - {title}'.format(artist=player.get_artist(),
|
||||
title=player.get_title())
|
||||
else:
|
||||
track_info = player.get_title()
|
||||
|
||||
if player.props.status != 'Playing' and track_info:
|
||||
track_info = ' ' + track_info
|
||||
write_output(track_info, player)
|
||||
|
||||
|
||||
def on_player_appeared(manager, player, selected_player=None):
|
||||
if player is not None and (selected_player is None or player.name == selected_player):
|
||||
init_player(manager, player)
|
||||
else:
|
||||
logger.debug("New player appeared, but it's not the selected player, skipping")
|
||||
|
||||
|
||||
def on_player_vanished(manager, player):
|
||||
logger.info('Player has vanished')
|
||||
sys.stdout.write('\n')
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def init_player(manager, name):
|
||||
logger.debug('Initialize player: {player}'.format(player=name.name))
|
||||
player = Playerctl.Player.new_from_name(name)
|
||||
player.connect('playback-status', on_play, manager)
|
||||
player.connect('metadata', on_metadata, manager)
|
||||
manager.manage_player(player)
|
||||
on_metadata(player, player.props.metadata, manager)
|
||||
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
logger.debug('Received signal to stop, exiting')
|
||||
sys.stdout.write('\n')
|
||||
sys.stdout.flush()
|
||||
# loop.quit()
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
# Increase verbosity with every occurance of -v
|
||||
parser.add_argument('-v', '--verbose', action='count', default=0)
|
||||
|
||||
# Define for which player we're listening
|
||||
parser.add_argument('--player')
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main():
|
||||
arguments = parse_arguments()
|
||||
|
||||
# Initialize logging
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG,
|
||||
format='%(name)s %(levelname)s %(message)s')
|
||||
|
||||
# Logging is set by default to WARN and higher.
|
||||
# With every occurrence of -v it's lowered by one
|
||||
logger.setLevel(max((3 - arguments.verbose) * 10, 0))
|
||||
|
||||
# Log the sent command line arguments
|
||||
logger.debug('Arguments received {}'.format(vars(arguments)))
|
||||
|
||||
manager = Playerctl.PlayerManager()
|
||||
loop = GLib.MainLoop()
|
||||
|
||||
manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player))
|
||||
manager.connect('player-vanished', on_player_vanished)
|
||||
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
signal.signal(signal.SIGTERM, signal_handler)
|
||||
|
||||
for player in manager.props.player_names:
|
||||
if arguments.player is not None and arguments.player != player.name:
|
||||
logger.debug('{player} is not the filtered player, skipping it'
|
||||
.format(player=player.name)
|
||||
)
|
||||
continue
|
||||
|
||||
init_player(manager, player)
|
||||
|
||||
loop.run()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
31
.config/waybar/modules/power_menu.xml
Normal file
31
.config/waybar/modules/power_menu.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkMenu" id="menu">
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="suspend">
|
||||
<property name="label">Suspend</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="hibernat">
|
||||
<property name="label">Hibernate</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="shutdown">
|
||||
<property name="label">Shutdown</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorMenuItem" id="delimiter1"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="reboot">
|
||||
<property name="label">Reboot</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
|
||||
150
.config/waybar/modules/power_profiles.py
Executable file
150
.config/waybar/modules/power_profiles.py
Executable file
@@ -0,0 +1,150 @@
|
||||
#!/usr/bin/env python3
|
||||
import subprocess
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
def get_current_profile():
|
||||
"""Get the current power profile"""
|
||||
try:
|
||||
result = subprocess.run(
|
||||
["powerprofilesctl", "get"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=5
|
||||
)
|
||||
if result.returncode == 0:
|
||||
return result.stdout.strip()
|
||||
except Exception as e:
|
||||
print(f"Error getting profile: {e}", file=sys.stderr)
|
||||
return "unknown"
|
||||
|
||||
def get_available_profiles():
|
||||
"""Get list of available power profiles"""
|
||||
try:
|
||||
result = subprocess.run(
|
||||
["powerprofilesctl", "list"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=5
|
||||
)
|
||||
if result.returncode == 0:
|
||||
profiles = []
|
||||
for line in result.stdout.split('\n'):
|
||||
line = line.strip()
|
||||
if line and ':' in line and not line.startswith('Cpu') and not line.startswith('Platform') and not line.startswith('Degraded'):
|
||||
profile_name = line.split(':')[0].strip()
|
||||
if profile_name and not profile_name.startswith('*'):
|
||||
profiles.append(profile_name)
|
||||
elif profile_name.startswith('*'):
|
||||
profiles.append(profile_name[1:].strip())
|
||||
return profiles
|
||||
except Exception as e:
|
||||
print(f"Error getting profiles: {e}", file=sys.stderr)
|
||||
return []
|
||||
|
||||
def set_profile(profile):
|
||||
"""Set the power profile"""
|
||||
try:
|
||||
subprocess.run(
|
||||
["powerprofilesctl", "set", profile],
|
||||
capture_output=True,
|
||||
timeout=5
|
||||
)
|
||||
except Exception as e:
|
||||
print(f"Error setting profile: {e}", file=sys.stderr)
|
||||
|
||||
def write_menu_file(menu_path, profiles, current):
|
||||
"""Write a GTK menu XML file for Waybar."""
|
||||
items = []
|
||||
if not profiles:
|
||||
items.append(
|
||||
" <child>\n"
|
||||
" <object class=\"GtkMenuItem\" id=\"none\">\n"
|
||||
" <property name=\"label\">No profiles</property>\n"
|
||||
" <property name=\"sensitive\">false</property>\n"
|
||||
" </object>\n"
|
||||
" </child>\n"
|
||||
)
|
||||
else:
|
||||
for profile in profiles:
|
||||
label = profile
|
||||
if profile == current:
|
||||
label = f"{profile} (current)"
|
||||
items.append(
|
||||
" <child>\n"
|
||||
f" <object class=\"GtkMenuItem\" id=\"{profile}\">\n"
|
||||
f" <property name=\"label\">{label}</property>\n"
|
||||
" </object>\n"
|
||||
" </child>\n"
|
||||
)
|
||||
|
||||
content = (
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
"<interface>\n"
|
||||
" <object class=\"GtkMenu\" id=\"menu\">\n"
|
||||
+ "".join(items) +
|
||||
" </object>\n"
|
||||
"</interface>\n"
|
||||
)
|
||||
try:
|
||||
menu_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
menu_path.write_text(content)
|
||||
except Exception as e:
|
||||
print(f"Error writing menu file: {e}", file=sys.stderr)
|
||||
|
||||
def format_output(profile):
|
||||
"""Format output for waybar"""
|
||||
# Icons for each profile
|
||||
icons = {
|
||||
"performance": "⚡",
|
||||
"balanced": "⚖",
|
||||
"power-saver": "🔋"
|
||||
}
|
||||
|
||||
icon = icons.get(profile, "⚡")
|
||||
|
||||
output = {
|
||||
"text": f"{icon}",
|
||||
"alt": profile,
|
||||
"class": f"power-profile-{profile}",
|
||||
"tooltip": f"Current: {profile}"
|
||||
}
|
||||
|
||||
return json.dumps(output)
|
||||
|
||||
def main():
|
||||
menu_path = Path("~/.config/waybar/modules/power_profiles_menu.xml").expanduser()
|
||||
|
||||
if len(sys.argv) > 2 and sys.argv[1] == "--set":
|
||||
target = sys.argv[2]
|
||||
set_profile(target)
|
||||
current = get_current_profile()
|
||||
available = get_available_profiles()
|
||||
write_menu_file(menu_path, available, current)
|
||||
print(format_output(current))
|
||||
return
|
||||
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "--next":
|
||||
# Cycle to next profile
|
||||
current = get_current_profile()
|
||||
available = get_available_profiles()
|
||||
write_menu_file(menu_path, available, current)
|
||||
|
||||
if current in available and available:
|
||||
idx = available.index(current)
|
||||
next_profile = available[(idx + 1) % len(available)]
|
||||
set_profile(next_profile)
|
||||
print(format_output(next_profile))
|
||||
else:
|
||||
print(format_output(current))
|
||||
return
|
||||
|
||||
# Just display current profile
|
||||
current = get_current_profile()
|
||||
available = get_available_profiles()
|
||||
write_menu_file(menu_path, available, current)
|
||||
print(format_output(current))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
20
.config/waybar/modules/power_profiles_menu.xml
Normal file
20
.config/waybar/modules/power_profiles_menu.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkMenu" id="menu">
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="performance">
|
||||
<property name="label">performance</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="balanced">
|
||||
<property name="label">balanced (current)</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="power-saver">
|
||||
<property name="label">power-saver</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -1,31 +1,33 @@
|
||||
/* Import wallust colors */
|
||||
@import url("colors-wallust.css");
|
||||
|
||||
/* Global defaults */
|
||||
* {
|
||||
font-family: "Fira Sans Semibold", "Font Awesome 6 Free", FontAwesome, Roboto,
|
||||
font-family:
|
||||
"Fira Sans Condensed", "Font Awesome 6 Free", FontAwesome, Roboto,
|
||||
Helvetica, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
/* Reset all styles */
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
transition: background-color 0.5s;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-right {
|
||||
background-color: rgba(17, 24, 39, 0.5);
|
||||
margin-top: 2px;
|
||||
border-radius: 3px;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
/* The whole bar */
|
||||
#waybar {
|
||||
background-color: alpha(@background, 0);
|
||||
color: @foreground;
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
border-radius: 0px;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -48,6 +50,12 @@ window#waybar.empty #window {
|
||||
font-size: 9px; /* Slightly smaller font size */
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: transparent;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @foreground;
|
||||
background: @color3;
|
||||
@@ -61,21 +69,15 @@ window#waybar.empty #window {
|
||||
background-color: @color9;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: rgba(17, 24, 39, 0.5);
|
||||
margin-top: 2px;
|
||||
border-radius: 3px;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
#window {
|
||||
background-color: alpha(@background, 0.5);
|
||||
background-color: alpha(@background, 0.1);
|
||||
color: @foreground;
|
||||
border-radius: 3px;
|
||||
padding: 1px 10px; /* Reduced padding */
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
/* Shared module styling */
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
@@ -84,27 +86,52 @@ window#waybar.empty #window {
|
||||
#custom-weather,
|
||||
#bluetooth,
|
||||
#custom-media,
|
||||
#custom-power_profiles,
|
||||
#custom-power,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#wireplumber,
|
||||
#pulseaudio {
|
||||
background-color: alpha(@background, 0.3);
|
||||
background-color: alpha(@foreground, 0.15);
|
||||
color: @foreground;
|
||||
padding: 0 10px;
|
||||
padding: 0px 10px;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
#clock:hover,
|
||||
#battery:hover,
|
||||
#cpu:hover,
|
||||
#memory:hover,
|
||||
#custom-storage:hover,
|
||||
#custom-weather:hover,
|
||||
#bluetooth:hover,
|
||||
#custom-media:hover,
|
||||
#custom-power_profiles:hover,
|
||||
#custom-power:hover,
|
||||
#temperature:hover,
|
||||
#backlight:hover,
|
||||
#network:hover,
|
||||
#wireplumber:hover,
|
||||
#pulseaudio:hover {
|
||||
background: @color2;
|
||||
}
|
||||
|
||||
#bluetooth {
|
||||
background-color: alpha(@color3, 0.3);
|
||||
}
|
||||
|
||||
#bluetooth.disabled {
|
||||
background-color: alpha(@color8, 0);
|
||||
background-color: alpha(@color2, 1);
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
color: @color1;
|
||||
background-color: alpha(@color2, 1);
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: alpha(@foreground, 0.5);
|
||||
background-color: alpha(@color2, 1);
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
@@ -125,20 +152,22 @@ window#waybar.empty #window {
|
||||
color: rgba(45, 52, 54, 1);
|
||||
}
|
||||
|
||||
#language {
|
||||
background: rgba(0, 176, 147, 0.5);
|
||||
color: rgba(116, 8, 100, 0.5);
|
||||
/* Language + keyboard state */
|
||||
#language,
|
||||
#keyboard-state {
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: rgba(0, 176, 147, 0.5);
|
||||
color: rgba(116, 8, 100, 0.5);
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: rgba(151, 225, 173, 0.5);
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
@@ -148,3 +177,30 @@ window#waybar.empty #window {
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
padding: 0px 3px 0px 6px;
|
||||
margin: 2px 1px;
|
||||
border-radius: 6px;
|
||||
color: @foreground;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background: alpha(@foreground, 0.2);
|
||||
transition: all 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
menu {
|
||||
border-radius: 15px;
|
||||
background: rgba(22, 19, 32, 0);
|
||||
color: #b5e8e0;
|
||||
padding: 5px;
|
||||
}
|
||||
menuitem {
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
10
.config/waybar/waybar.sh
Executable file
10
.config/waybar/waybar.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q waybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x waybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch main
|
||||
waybar &
|
||||
Reference in New Issue
Block a user