initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="powersaver">
|
||||
<property name="label">Powersaver</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
// -*- mode: jsonc -*-
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"exclusive": true,
|
||||
"passthrough": false,
|
||||
"gtk-layer-shell": true,
|
||||
"ipc": false,
|
||||
//"reload_style_on_change": true,
|
||||
"height": 18,
|
||||
"margin": "0",
|
||||
"modules-left": [
|
||||
"dwl/tags",
|
||||
// "ext/workspaces",
|
||||
"dwl/window"
|
||||
// "wlr/taskbar"
|
||||
],
|
||||
// "modules-center": [ // "mpris" ],
|
||||
"modules-right": [
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"custom/notification",
|
||||
"tray",
|
||||
"custom/power",
|
||||
"clock"
|
||||
],
|
||||
// Modules configuration
|
||||
"dwl/tags": {
|
||||
"num-tags": 9,
|
||||
"hide-vacant": false,
|
||||
"expand": true,
|
||||
"disable-click": false,
|
||||
"tag-labels": [
|
||||
],
|
||||
},
|
||||
|
||||
"ext/workspaces": {
|
||||
"format": "{icon}",
|
||||
"ignore-hidden": true,
|
||||
"on-click": "activate",
|
||||
"on-click-right": "deactivate",
|
||||
"sort-by-id": true
|
||||
},
|
||||
"dwl/window": {
|
||||
"format": "{layout} {title}",
|
||||
"max-length": 50,
|
||||
"rewrite": {
|
||||
" \\| ": ""
|
||||
}
|
||||
},
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 12,
|
||||
"all-outputs": false,
|
||||
"tooltip-format": "{title}",
|
||||
"markup": true,
|
||||
"on-click": "activate",
|
||||
"on-click-right": "close",
|
||||
"ignore-list": ["Rofi", "wofi"]
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 12,
|
||||
"spacing": 12
|
||||
},
|
||||
"mpris": {
|
||||
"format": "{player_icon} {artist} - {title}",
|
||||
"format-paused": "{status_icon} <i>{artist} - {title}</i>",
|
||||
"player-icons": {
|
||||
"vivaldi-stable": "▶",
|
||||
"spotify": "",
|
||||
"default": ""
|
||||
},
|
||||
"status-icons": {
|
||||
"paused": ""
|
||||
},
|
||||
"max-length": 80
|
||||
// "ignored-players": ["firefox"]
|
||||
},
|
||||
"custom/music": {
|
||||
"format": " {}",
|
||||
"escape": true,
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
"exec": "playerctl metadata --format='{{ titles }}'",
|
||||
"on-click": "playerctl play-pause",
|
||||
"max-length": 50
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
// "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
// "format-alt": "{:%d/%m/%Y}",
|
||||
"format": "{:%H:%M}"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "~/.config/waybar/battery_menu.xml",
|
||||
"menu-actions": {
|
||||
"performance": "powerprofilesctl set performance",
|
||||
"balanced": "powerprofilesctl set balanced",
|
||||
"powersaver": "powerprofilesctl set power-saver",
|
||||
},
|
||||
|
||||
// "format-alt": "{icon}",
|
||||
// "format-charging": "",
|
||||
// "format-plugged": "",
|
||||
"format-icons": ["", "", "", "", "", ""]
|
||||
},
|
||||
"pulseaudio": {
|
||||
"disable-scroll": true,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": "",
|
||||
"format-on": "{icon}",
|
||||
"format-off": "{icon}",
|
||||
"format-connected": "{icon}",
|
||||
"format-icons": {
|
||||
"on": "",
|
||||
"off": "",
|
||||
"connected": ""
|
||||
},
|
||||
"on-click": "blueman-manager",
|
||||
"tooltip-format-connected": "{device_enumerate}"
|
||||
},
|
||||
"custom/notification": {
|
||||
"format": "{icon} {text}",
|
||||
"tooltip": false,
|
||||
"format-icons": {
|
||||
"notification": "",
|
||||
"none": "",
|
||||
"dnd-notification": "",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
"custom/power": {
|
||||
"format" : "⏻",
|
||||
"tooltip": false,
|
||||
"on-click": "wlogout"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Catppuccin Frappé Color Palette for Waybar
|
||||
* Colors from https://github.com/catppuccin/catppuccin
|
||||
*/
|
||||
|
||||
/* Raw Catppuccin Frappé Colors */
|
||||
@define-color rosewater #f2d5cf;
|
||||
@define-color flamingo #eebebe;
|
||||
@define-color pink #f4b8e4;
|
||||
@define-color mauve #ca9ee6;
|
||||
@define-color red #e78284;
|
||||
@define-color maroon #ea999c;
|
||||
@define-color peach #ef9f76;
|
||||
@define-color yellow #e5c890;
|
||||
@define-color green #a6d189;
|
||||
@define-color teal #81c8be;
|
||||
@define-color sky #99d1db;
|
||||
@define-color sapphire #85c1dc;
|
||||
@define-color blue #8caaee;
|
||||
@define-color lavender #babbf1;
|
||||
|
||||
@define-color text #c6d0f5;
|
||||
@define-color subtext1 #b5bfe2;
|
||||
@define-color subtext0 #a5adce;
|
||||
@define-color overlay2 #949cbb;
|
||||
@define-color overlay1 #838ba7;
|
||||
@define-color overlay0 #737994;
|
||||
@define-color surface2 #626880;
|
||||
@define-color surface1 #51576d;
|
||||
@define-color surface0 #414559;
|
||||
@define-color base #303446;
|
||||
@define-color mantle #292c3c;
|
||||
@define-color crust #232634;
|
||||
|
||||
/* GTK/Waybar Theme Variable Mappings */
|
||||
/* Widget text/foreground color */
|
||||
@define-color theme_fg_color @text;
|
||||
/* Text color for entries, views, and general content */
|
||||
@define-color theme_text_color @text;
|
||||
/* Widget base background color (#090e13 @ 70% opacity) */
|
||||
@define-color theme_bg_color rgba(9, 14, 19, 0.7);
|
||||
/* Text widgets and the like base background color (dark grey-blue) */
|
||||
@define-color theme_base_color @surface0;
|
||||
/* Base background color of selections */
|
||||
@define-color theme_selected_bg_color @lavender;
|
||||
/* Text/foreground color of selections */
|
||||
@define-color theme_selected_fg_color @base;
|
||||
|
||||
/* Disabled widgets styling */
|
||||
@define-color insensitive_bg_color @surface1;
|
||||
@define-color insensitive_fg_color @overlay1;
|
||||
@define-color insensitive_base_color @mantle;
|
||||
|
||||
/* Backdrop/unfocused window styling */
|
||||
@define-color theme_unfocused_fg_color @subtext0;
|
||||
@define-color theme_unfocused_text_color @subtext0;
|
||||
@define-color theme_unfocused_bg_color rgba(9, 14, 19, 0.7);
|
||||
@define-color theme_unfocused_base_color @mantle;
|
||||
@define-color theme_unfocused_selected_bg_color @surface2;
|
||||
@define-color theme_unfocused_selected_fg_color @text;
|
||||
|
||||
/* Border styling */
|
||||
@define-color borders @crust;
|
||||
@define-color unfocused_borders @crust;
|
||||
|
||||
/* State & Status Colors */
|
||||
@define-color warning_color @peach;
|
||||
@define-color error_color @red;
|
||||
@define-color success_color @green;
|
||||
|
||||
/* Duplicate / Fallback definitions for compatibility */
|
||||
@define-color fg_color @text;
|
||||
@define-color text_color @text;
|
||||
@define-color bg_color rgba(9, 14, 19, 0.7);
|
||||
@define-color base_color @surface0;
|
||||
@define-color selected_bg_color @lavender;
|
||||
@define-color selected_fg_color @base;
|
||||
|
||||
@define-color unfocused_fg_color @subtext0;
|
||||
@define-color unfocused_text_color @subtext0;
|
||||
@define-color unfocused_bg_color rgba(9, 14, 19, 0.7);
|
||||
@define-color unfocused_base_color @mantle;
|
||||
@define-color unfocused_selected_bg_color @surface2;
|
||||
@define-color unfocused_selected_fg_color @text;
|
||||
@@ -0,0 +1,50 @@
|
||||
/* widget text/foreground color */
|
||||
@define-color theme_fg_color #d8dee9;
|
||||
/* text color for entries, views and content in general */
|
||||
@define-color theme_text_color #d8dee9;
|
||||
/* widget base background color */
|
||||
@define-color theme_bg_color #434c5e;
|
||||
/* text widgets and the like base background color */
|
||||
@define-color theme_base_color #3b4252;
|
||||
/* base background color of selections */
|
||||
@define-color theme_selected_bg_color #8fbcbb;
|
||||
/* text/foreground color of selections */
|
||||
@define-color theme_selected_fg_color #fff;
|
||||
/* base background color of disabled widgets */
|
||||
@define-color insensitive_bg_color #404859;
|
||||
/* text foreground color of disabled widgets */
|
||||
@define-color insensitive_fg_color #8e95a4;
|
||||
/* disabled text widgets and the like base background color */
|
||||
@define-color insensitive_base_color #3b4252;
|
||||
/* widget text/foreground color on backdrop windows */
|
||||
@define-color theme_unfocused_fg_color #8e95a4;
|
||||
/* text color for entries, views and content in general on backdrop windows */
|
||||
@define-color theme_unfocused_text_color #d8dee9;
|
||||
/* widget base background color on backdrop windows */
|
||||
@define-color theme_unfocused_bg_color #434c5e;
|
||||
/* text widgets and the like base background color on backdrop windows */
|
||||
@define-color theme_unfocused_base_color #3d4455;
|
||||
/* base background color of selections on backdrop windows */
|
||||
@define-color theme_unfocused_selected_bg_color #8fbcbb;
|
||||
/* text/foreground color of selections on backdrop windows */
|
||||
@define-color theme_unfocused_selected_fg_color #2e3440;
|
||||
/* widgets main borders color */
|
||||
@define-color borders #232831;
|
||||
/* widgets main borders color on backdrop windows */
|
||||
@define-color unfocused_borders #262c36;
|
||||
/* these are pretty self explicative */
|
||||
@define-color warning_color #c3674a;
|
||||
@define-color error_color #b84f59;
|
||||
@define-color success_color #49688e;
|
||||
@define-color fg_color #d8dee9;
|
||||
@define-color text_color #d8dee9;
|
||||
@define-color bg_color #434c5e;
|
||||
@define-color base_color #3b4252;
|
||||
@define-color selected_bg_color #8fbcbb;
|
||||
@define-color selected_fg_color #fff;
|
||||
@define-color unfocused_fg_color #8e95a4;
|
||||
@define-color unfocused_text_color #d8dee9;
|
||||
@define-color unfocused_bg_color #434c5e;
|
||||
@define-color unfocused_base_color #3d4455;
|
||||
@define-color unfocused_selected_bg_color #8fbcbb;
|
||||
@define-color unfocused_selected_fg_color #2e3440;
|
||||
@@ -0,0 +1,100 @@
|
||||
@import "frappe.css";
|
||||
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
font-family: "JetBrainsMono Nerd Font Propo", "JetBrainsMono Nerd Font", monospace;
|
||||
font-size: 12px;
|
||||
text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
|
||||
letter-spacing: 0.2px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
/*min-height: 0;*/
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#waybar {
|
||||
background: @theme_bg_color;
|
||||
color: @theme_fg_color;
|
||||
}
|
||||
#window,
|
||||
#mpris {
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
#clock,
|
||||
#battery,
|
||||
#pulseaudio,
|
||||
#custom-notification,
|
||||
#tray,
|
||||
#custom-power {
|
||||
padding: 0 0.75rem;
|
||||
}
|
||||
#tags {
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
|
||||
#tags button {
|
||||
font-weight: normal;
|
||||
border-radius: 4px;
|
||||
margin: 2px 3px;
|
||||
padding: 0px;
|
||||
min-width: 24px;
|
||||
color: rgba(198, 208, 245, 0.3);
|
||||
}
|
||||
|
||||
#tags button.occupied {
|
||||
background-color: transparent;
|
||||
color: @theme_fg_color;
|
||||
}
|
||||
|
||||
#tags button.focused {
|
||||
background-color: rgba(186, 187, 241, 0.18);
|
||||
color: @theme_selected_bg_color;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#tags button.urgent {
|
||||
/* background-color: rgba(231, 130, 132, 0.2); */
|
||||
color: @error_color;
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
|
||||
#tags button:hover {
|
||||
/* background-color: rgba(255, 255, 255, 0.08); */
|
||||
/* color: @theme_fg_color; */
|
||||
background-color: transparent;
|
||||
color: @theme_selected_bg_color;
|
||||
}
|
||||
|
||||
/* Optional: Add subtle transition for hover effects */
|
||||
#tags button {
|
||||
/* transition: all 0.2s ease-in-out; */
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: @success_color;
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
color: @warning_color;
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
color: @theme_selected_fg_color;
|
||||
}
|
||||
|
||||
#tray button {
|
||||
padding: 0 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#tray button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
Executable
+10
@@ -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