aboutsummaryrefslogtreecommitdiff
path: root/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'waybar')
-rw-r--r--waybar/config34
-rw-r--r--waybar/modules.json.bak207
-rw-r--r--waybar/modules.jsonc73
-rw-r--r--waybar/style.css112
-rw-r--r--waybar/style.css.bak357
5 files changed, 783 insertions, 0 deletions
diff --git a/waybar/config b/waybar/config
new file mode 100644
index 0000000..1296a1b
--- /dev/null
+++ b/waybar/config
@@ -0,0 +1,34 @@
+{
+ // "layer": "top", // Waybar at top layer
+
+ // "position": "bottom", // Waybar position (top|bottom|left|right)
+
+ // "height": 30, // Waybar height (to be removed for auto height)
+ // "width": 1280, // Waybar width
+
+ "spacing": 2, // Gaps between modules (4px)
+ // Choose the order of the modules
+
+ // Load Modules
+ "include": [
+ "~/.config/waybar/modules.jsonc"
+ ],
+ "modules-left": [
+ "hyprland/workspaces",
+ "hyprland/window"
+ ],
+ "modules-center": [
+ ],
+ "modules-right": [
+ "mpd",
+ "pulseaudio",
+ "network",
+ "cpu",
+ "memory",
+ "keyboard-state",
+ "battery",
+ "clock",
+ "tray",
+ "custom/exit"
+ ]
+}
diff --git a/waybar/modules.json.bak b/waybar/modules.json.bak
new file mode 100644
index 0000000..5f68b50
--- /dev/null
+++ b/waybar/modules.json.bak
@@ -0,0 +1,207 @@
+// __ __ _ _
+// | \/ | ___ __| |_ _| | ___ ___
+// | |\/| |/ _ \ / _` | | | | |/ _ \/ __|
+// | | | | (_) | (_| | |_| | | __/\__ \
+// |_| |_|\___/ \__,_|\__,_|_|\___||___/
+//
+//
+// by Stephan Raabe (2023)
+// -----------------------------------------------------
+//
+{
+ // Workspaces
+ "hyprland/workspaces" : {
+ "on-click": "activate",
+ "active-only": false,
+ "all-outputs": true,
+ "format": "{}",
+ "format-icons": {
+ "urgent": "",
+ "active": "",
+ "default": ""
+ },
+ "persistent-workspaces": {
+ "*": 5
+ }
+ },
+
+ // Hyprland Window
+ "hyprland/window": {
+ "rewrite": {
+ "(.*) - Brave": "$1",
+ "(.*) - Chromium": "$1",
+ "(.*) - Brave Search": "$1",
+ "(.*) - Outlook": "$1",
+ "(.*) Microsoft Teams": "$1"
+ },
+ "separate-outputs": true
+ },
+
+ // Rofi Application Launcher
+ "custom/appmenu": {
+ "format": "Apps",
+ "tooltip-format": "Left: Open the application launcher\nRight: Show all keybindings",
+ "on-click": "rofi -show drun -replace",
+ "on-click-right": "~/.config/ml4w/scripts/keybindings.sh",
+ "tooltip": false
+ },
+
+ // Power Menu
+ "custom/exit": {
+ "format": "",
+ "tooltip-format": "Powermenu",
+ "on-click": "wlogout -b 4",
+ "tooltip": false
+ },
+
+ // Keyboard State
+ "keyboard-state": {
+ "numlock": true,
+ "capslock": true,
+ "format": "{name} {icon}",
+ "format-icons": {
+ "locked": "",
+ "unlocked": ""
+ }
+ },
+
+ // System tray
+ "tray": {
+ // "icon-size": 21,
+ "spacing": 10
+ },
+
+ // Clock
+ "clock": {
+ // "timezone": "America/New_York",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "format-alt": "{:%Y-%m-%d}"
+ },
+
+ // System
+ "custom/system": {
+ "format": "",
+ "tooltip": false
+ },
+
+ // CPU
+ "cpu": {
+ "interval": 1,
+ "format": "C: {usage}%",
+ "on-click": "alacritty -e btop"
+ },
+
+ // Memory
+ "memory": {
+ "format": "M {used}G / {total}G ",
+ "on-click": "alacritty -e htop"
+ },
+
+ // Harddisc space used
+ "disk": {
+ "interval": 30,
+ "format": "D {percentage_used}% ",
+ "path": "/",
+ "on-click": "alacritty -e htop"
+ },
+
+ "hyprland/language": {
+ "format": "/ K {short}"
+ },
+
+ // Group Hardware
+ "group/hardware": {
+ "orientation": "inherit",
+ "drawer": {
+ "transition-duration": 300,
+ "children-class": "not-memory",
+ "transition-left-to-right": false
+ },
+ "modules": [
+ "custom/system",
+ "disk",
+ "cpu",
+ "memory",
+ "hyprland/language"
+ ]
+ },
+
+ // Network
+ "network": {
+ "format": "{ifname}",
+ "format-wifi": " {signalStrength}%",
+ "format-ethernet": " {ipaddr}",
+ "format-disconnected": "Not connected", //An empty format will hide the module.
+ "tooltip-format": " {ifname} via {gwaddri}",
+ "tooltip-format-wifi": " {essid} ({signalStrength}%)",
+ "tooltip-format-ethernet": " {ifname} ({ipaddr}/{cidr})",
+ "tooltip-format-disconnected": "Disconnected",
+ "max-length": 50,
+ "on-click": "alacritty -e nmtui"
+ },
+
+ // Battery
+ "battery": {
+ "states": {
+ "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{icon} {capacity}% | {time}",
+ "format-charging": " {capacity}%",
+ "format-plugged": " {capacity}%",
+ "format-alt": "{icon} {time}",
+ // "format-good": "", // An empty format will hide the module
+ // "format-full": "",
+ "format-icons": [" ", " ", " ", " ", " "],
+ "interval": 5
+ },
+
+ // Pulseaudio
+ "pulseaudio": {
+ // "scroll-step": 1, // %, can be a float
+ "format": "{icon} {volume}%",
+ "format-bluetooth": "{volume}% {icon} {format_source}",
+ "format-bluetooth-muted": " {icon} {format_source}",
+ "format-muted": " {format_source}",
+ "format-source": "{volume}% ",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", " ", " "]
+ },
+ "on-click": "pavucontrol"
+ },
+
+ // Bluetooth
+ "bluetooth": {
+ "format-disabled": "",
+ "format-off": "",
+ "interval": 30,
+ "on-click": "blueman-manager",
+ "format-no-controller": ""
+ },
+
+ // Other
+ "user": {
+ "format": "{user}",
+ "interval": 60,
+ "icon": false,
+ },
+
+ // Idle Inhibator
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "tooltip": true,
+ "format-icons":{
+ "activated": "",
+ "deactivated": ""
+ },
+ "on-click-right": "hyprlock"
+ }
+}
diff --git a/waybar/modules.jsonc b/waybar/modules.jsonc
new file mode 100644
index 0000000..4a655a2
--- /dev/null
+++ b/waybar/modules.jsonc
@@ -0,0 +1,73 @@
+{
+ "layer": "top",
+ "position": "top",
+ "modules-left": [
+ "hyprland/workspaces"
+ ],
+ "modules-center": [
+ "clock"
+ ],
+ "modules-right": [
+ "pulseaudio",
+ "backlight",
+ "battery",
+ "network",
+ "cpu",
+ "memory",
+ "tray",
+ "custom/lock",
+ "custom/power"
+ ],
+ "hyprland/workspaces": {
+ "format": "{name}: {icon}",
+ "format-icons": {
+ "active": "",
+ "default": ""
+ }
+ },
+ "tray": {
+ "icon-size": 21,
+ "spacing": 10
+ },
+ "custom/music": {
+ "format": " {}",
+ "escape": true,
+ "interval": 5,
+ "tooltip": false,
+ "exec": "playerctl metadata --format='{{ artist }} - {{ title }}'",
+ "on-click": "playerctl play-pause",
+ "max-length": 50
+ },
+ "clock": {
+ //"timezone": "America/Sao_Paulo",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "format": "{:%m/%d/%Y - %H:%M}"
+ },
+ "network": {
+ "format-wifi": "󰤢 {signalStrength}%",
+ "format-ethernet": "󰈀 {bandwidthDownBits}",
+ "format-disconnected": "󰤠 No Network",
+ "interval": 5,
+ "tooltip": false
+ },
+ "cpu": {
+ "interval": 1,
+ "format": " {usage:>2}%"
+ },
+ "memory": {
+ "interval": 30,
+ "format": "{used:0.1f}G / {total:0.1f}G"
+ },
+ "pulseaudio": {
+ "format": "{icon} {volume}%",
+ "format-muted": "",
+ "format-icons": {
+ "default": [
+ "",
+ "",
+ " "
+ ]
+ },
+ "on-click": "pavucontrol"
+ }
+}
diff --git a/waybar/style.css b/waybar/style.css
new file mode 100644
index 0000000..6041450
--- /dev/null
+++ b/waybar/style.css
@@ -0,0 +1,112 @@
+* {
+ font-family: JetbrainsMono Nerd Font;
+ font-size: 10px;
+ min-height: 0;
+ padding-right: 2px;
+ padding-left: 2px;
+ padding-bottom: 0px;
+}
+
+#waybar {
+ background: transparent;
+ color: #c6d0f5;
+ margin: 2px 2px;
+}
+
+#workspaces {
+ border-radius: 5px;
+ margin: 5px;
+ background: #101010;
+ margin-left: 1rem;
+}
+
+#workspaces button {
+ color: #babbf1;
+ border-radius: 5px;
+ padding: 0.4rem;
+}
+
+#workspaces button.active {
+ color: #99d1db;
+ border-radius: 5px;
+}
+
+#workspaces button:hover {
+ color: #85c1dc;
+ border-radius: 5px;
+}
+
+#custom-music,
+#tray,
+#backlight,
+#clock,
+#battery,
+#pulseaudio,
+#network,
+#cpu,
+#memory,
+#custom-lock,
+#custom-power {
+ background-color: #101010;
+ padding: 0.5rem 1rem;
+ margin: 5px 0;
+}
+
+#memory {
+ border-radius: 0px 5px 5px 0px;
+}
+
+#clock {
+ color: #8caaee;
+ border-radius: 5px;
+ margin-right: 1rem;
+}
+
+#battery {
+ color: #a6d189;
+}
+
+#battery.charging {
+ color: #a6d189;
+}
+
+#battery.warning:not(.charging) {
+ color: #e78284;
+}
+
+#backlight {
+ color: #e5c890;
+}
+
+#backlight,
+#battery {
+ border-radius: 0;
+}
+
+#pulseaudio {
+ color: #ea999c;
+ border-radius: 5px 0px 0px 5%;
+ margin-left: 1rem;
+}
+
+#custom-music {
+ color: #ca9ee6;
+ border-radius: 5px;
+}
+
+#custom-lock {
+ border-radius: 5px 0px 0px 5px;
+ color: #babbf1;
+}
+
+#custom-power {
+ margin-right: 1rem;
+ border-radius: 0px 5px 5px 0px;
+ color: #e78284;
+}
+
+#tray {
+ margin-right: 1rem;
+ margin-left: 1rem;
+ border-radius: 5px;
+}
diff --git a/waybar/style.css.bak b/waybar/style.css.bak
new file mode 100644
index 0000000..38e0d92
--- /dev/null
+++ b/waybar/style.css.bak
@@ -0,0 +1,357 @@
+/*
+ * __ __ _ ____ _ _
+ * \ \ / /_ _ _ _| |__ __ _ _ __ / ___|| |_ _ _| | ___
+ * \ \ /\ / / _` | | | | '_ \ / _` | '__| \___ \| __| | | | |/ _ \
+ * \ V V / (_| | |_| | |_) | (_| | | ___) | |_| |_| | | __/
+ * \_/\_/ \__,_|\__, |_.__/ \__,_|_| |____/ \__|\__, |_|\___|
+ * |___/ |___/
+ *
+ * by Stephan Raabe (2024)
+ * -----------------------------------------------------
+*/
+
+@define-color backgroundlight #FFFFFF;
+@define-color backgrounddark #FFFFFF;
+@define-color workspacesbackground1 #FFFFFF;
+@define-color workspacesbackground2 #CCCCCC;
+@define-color bordercolor #FFFFFF;
+@define-color textcolor1 #000000;
+@define-color textcolor2 #000000;
+@define-color textcolor3 #FFFFFF;
+@define-color iconcolor #FFFFFF;
+
+/* -----------------------------------------------------
+ * General
+ * ----------------------------------------------------- */
+
+* {
+ font-family: "Hack", FontAwesome, Roboto, Helvetica, Arial, sans-serif;
+ font-size: 10px;
+ border: none;
+ border-radius: 0px;
+}
+
+window#waybar {
+ background-color: rgba(0,0,0,0.2);
+ border-bottom: 0px solid #ffffff;
+ /* color: #FFFFFF; */
+ transition-property: background-color;
+ transition-duration: .5s;
+}
+
+/* -----------------------------------------------------
+ * Workspaces
+ * ----------------------------------------------------- */
+
+#workspaces {
+ margin: 10px 15px 10px 0px;
+ padding: 0px 0px;
+ border-radius: 0px;
+ border: 0px;
+ font-weight: bold;
+ font-style: normal;
+ font-size: 10px;
+ color: @textcolor1;
+}
+
+#workspaces button {
+ padding: 0px 0px;
+ margin: 4px 3px;
+ border-radius: 0px;
+ border: 0px;
+ color: @textcolor3;
+ transition: all 0.3s ease-in-out;
+}
+
+#workspaces button.active {
+ color: @textcolor1;
+ background: @workspacesbackground2;
+ border-radius: 0px;
+ min-width: 10px;
+ transition: all 0.3s ease-in-out;
+}
+
+#workspaces button:hover {
+ color: @textcolor1;
+ background: @workspacesbackground2;
+ border-radius: 0px;
+}
+
+/* -----------------------------------------------------
+ * Tooltips
+ * ----------------------------------------------------- */
+
+tooltip {
+ border-radius: 10px;
+ background-color: @backgroundlight;
+ opacity:0.8;
+ padding:20px;
+ margin:0px;
+}
+
+tooltip label {
+ color: @textcolor2;
+}
+
+/* -----------------------------------------------------
+ * Window
+ * ----------------------------------------------------- */
+
+#window {
+ background: @backgroundlight;
+ margin: 10px 15px 10px 0px;
+ padding: 2px 10px 0px 10px;
+ border-radius: 0px;
+ color:@textcolor2;
+ font-size:10px;
+ font-weight:normal;
+}
+
+window#waybar.empty #window {
+ background-color:transparent;
+}
+
+/* -----------------------------------------------------
+ * Taskbar
+ * ----------------------------------------------------- */
+
+#taskbar {
+ background: @backgroundlight;
+ margin: 6px 15px 6px 0px;
+ padding:0px;
+ border-radius: 0px;
+ font-weight: normal;
+ font-style: normal;
+ border: 3px solid @backgroundlight;
+}
+
+#taskbar button {
+ margin:0;
+ border-radius: 0px;
+ padding: 0px 5px 0px 5px;
+}
+
+/* -----------------------------------------------------
+ * Modules
+ * ----------------------------------------------------- */
+
+.modules-left > widget:first-child > #workspaces {
+ margin-left: 0;
+}
+
+.modules-right > widget:last-child > #workspaces {
+ margin-right: 0;
+}
+
+/* -----------------------------------------------------
+ * Custom Quicklinks
+ * ----------------------------------------------------- */
+
+#custom-browser,
+#custom-filemanager,
+#network,
+#pulseaudio,
+#battery,
+#custom-appmenu,
+#clock {
+ margin-right: 20px;
+ font-size: 10px;
+ font-weight: bold;
+ color: @iconcolor;
+ padding: 4px 10px 2px 10px;
+ font-size: 10px;
+}
+
+#custom-quicklink1,
+#custom-quicklink2,
+#custom-quicklink3,
+#custom-quicklink4,
+#custom-quicklink5,
+#custom-quicklink6,
+#custom-quicklink7,
+#custom-quicklink8,
+#custom-quicklink9,
+#custom-quicklink10 {
+ padding:0px;
+ margin-right: 7px;
+ font-size:10px;
+ color: @iconcolor;
+}
+
+/* -----------------------------------------------------
+ * Custom Modules
+ * ----------------------------------------------------- */
+
+#custom-appmenu {
+ background-color: @backgrounddark;
+ color: @textcolor1;
+ border-radius: 15px;
+ margin: 10px 10px 10px 10px;
+}
+
+/* -----------------------------------------------------
+ * Custom Exit
+ * ----------------------------------------------------- */
+
+#custom-exit {
+ margin: 2px 20px 0px 0px;
+ padding:0px;
+ font-size:10px;
+ color: @iconcolor;
+}
+
+/* -----------------------------------------------------
+ * Hardware Group
+ * ----------------------------------------------------- */
+
+ #disk,#memory,#cpu,#language {
+ margin:0px;
+ padding:0px;
+ font-size:10px;
+ color:@iconcolor;
+}
+
+#language {
+ margin-right:10px;
+}
+
+/* -----------------------------------------------------
+ * Clock
+ * ----------------------------------------------------- */
+
+#clock {
+ background-color: @backgrounddark;
+ font-size: 10px;
+ color: @textcolor1;
+ border-radius: 0px;
+ margin: 10px 7px 10px 0px;
+}
+
+/* -----------------------------------------------------
+ * Pulseaudio
+ * ----------------------------------------------------- */
+
+#pulseaudio {
+ background-color: @backgroundlight;
+ font-size: 10px;
+ color: @textcolor2;
+ border-radius: 0px;
+ margin: 10px 10px 10px 0px;
+}
+
+#pulseaudio.muted {
+ background-color: @backgrounddark;
+ color: @textcolor1;
+}
+
+/* -----------------------------------------------------
+ * Network
+ * ----------------------------------------------------- */
+
+#network {
+ background-color: @backgroundlight;
+ font-size: 10px;
+ color: @textcolor2;
+ border-radius: 0px;
+ margin: 10px 10px 10px 0px;
+}
+
+#network.ethernet {
+ background-color: @backgroundlight;
+ color: @textcolor2;
+}
+
+#network.wifi {
+ background-color: @backgroundlight;
+ color: @textcolor2;
+}
+
+/* -----------------------------------------------------
+ * Bluetooth
+ * ----------------------------------------------------- */
+
+ #bluetooth, #bluetooth.on, #bluetooth.connected {
+ background-color: @backgroundlight;
+ font-size: 10px;
+ color: @textcolor2;
+ border-radius: 0px;
+ margin: 10px 15px 10px 0px;
+}
+
+#bluetooth.off {
+ background-color: transparent;
+ padding: 0px;
+ margin: 0px;
+}
+
+/* -----------------------------------------------------
+ * Battery
+ * ----------------------------------------------------- */
+
+#battery {
+ background-color: @backgroundlight;
+ font-size: 10px;
+ color: @textcolor2;
+ border-radius: 0px;
+ margin: 10px 15px 10px 0px;
+}
+
+#battery.charging, #battery.plugged {
+ color: @textcolor2;
+ background-color: @backgroundlight;
+}
+
+@keyframes blink {
+ to {
+ background-color: @backgroundlight;
+ color: @textcolor2;
+ }
+}
+
+#battery.critical:not(.charging) {
+ background-color: #f53c3c;
+ color: @textcolor3;
+ animation-name: blink;
+ animation-duration: 0.5s;
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-direction: alternate;
+}
+
+/* -----------------------------------------------------
+ * Tray
+ * ----------------------------------------------------- */
+
+#tray {
+ margin:0px 10px 0px 0px;
+}
+
+#tray > .passive {
+ -gtk-icon-effect: dim;
+}
+
+#tray > .needs-attention {
+ -gtk-icon-effect: highlight;
+ background-color: #eb4d4b;
+}
+
+/* -----------------------------------------------------
+ * Other
+ * ----------------------------------------------------- */
+
+label:focus {
+ background-color: #000000;
+}
+
+#backlight {
+ background-color: #90b1b1;
+}
+
+#network {
+ background-color: #2980b9;
+}
+
+#network.disconnected {
+ background-color: #f53c3c;
+}
+