diff options
author | altaf-creator <dev@altafcreator.com> | 2024-05-19 14:54:41 +0700 |
---|---|---|
committer | altaf-creator <dev@altafcreator.com> | 2024-05-19 14:54:41 +0700 |
commit | 3ec8d42fbf6eed78c24de2caca63d91a2604ff50 (patch) | |
tree | 985517bcce150969a050f7f408bea6670177bbb7 /config/waybar |
Diffstat (limited to 'config/waybar')
-rw-r--r-- | config/waybar/config | 209 | ||||
-rw-r--r-- | config/waybar/config.horizontal | 195 | ||||
-rw-r--r-- | config/waybar/style.css | 137 | ||||
-rw-r--r-- | config/waybar/style.css.compact | 139 | ||||
-rw-r--r-- | config/waybar/style.css.horizontal | 139 |
5 files changed, 819 insertions, 0 deletions
diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 0000000..364610f --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,209 @@ +{ + "layer": "top", // Waybar at top layer + "position": "left", // Waybar position (top|bottom|left|right) + "width": 58, + "spacing": 0, // Gaps between modules (4px) + "modules-left": ["custom/arch", "tray", "hyprland/workspaces", "sway/mode", "hyprland/special", "custom/media"], + "modules-center": ["clock", "clock#date"], + // "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], + "modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "keyboard-state", "battery", "battery#bat2"], + // Modules configuration + "hyprland/workspaces": { + "format": "<span size='small'>{name}</span>", + // "format-icons": { + // "1": " ", + // "2": " ", + // "3": " ", + // "4": " ", + // "8": " ", + // "9": " ", + // "10": " ", + // "urgent": " ", + // "focused": " ", + // "default": " " + // } + "justify": "center" + }, + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": "{name} {icon}", + "format-icons": { + "locked": "", + "unlocked": "" + } + }, + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "sway/window": { + "max-length": 55 + }, + "hyprland/window": { + "max-length": 55, + "tooltip": true + }, +"sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "mpd": { + "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", + "format-disconnected": "Disconnected ", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 2, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": "<span color=\"#f53c3c\"></span> ", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock": { + "format": "{:%H\n%M}", + // "timezone": "America/New_York", + "tooltip-format": "{:%H:%M:%S}", + "format-alt": "{:%H\n%M\n%S}", + "interval": 1, + "justify": "center" + + }, + "clock#date": { + "format": "{:%d\n%m\n%y}", + "tooltip-format": "<big>{:%d %B}</big>\n<tt><small>{calendar}</small></tt>", + "format-alt": "<b>{:%a</b>\n%d\n%b}", + "interval": 30, + "justify": "center" + + }, + "cpu": { + "format": "\n{usage}%", + "interval": 5, + "justify": "center" + }, + "memory": { + "format": "\n{}%", + "interval": 10, + "justify": "center" + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{icon}\n{temperatureC}°C", + "format-icons": ["", "", ""], + "justify": "center" + + }, + "backlight": { + // "device": "acpi_video1", + "format": "{icon} {percent}%", + "format-icons": ["", "", "", "", "", "", "", "", ""] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon}\n{capacity}%", + "format-charging": "\n{capacity}%", + "format-plugged": "\n{capacity}%", + // "format-alt": "{icon} {time}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""], + "justify": "center" + + }, + "battery#bat2": { + "bat": "BAT2" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "\n{signalStrength}%", + "format-ethernet": "{ipaddr}/{cidr}", + "tooltip-format": "Interface: {ifname}\nSSID: {essid}\nIP Address: {ipaddr}/{cidr}\nGateway: {gwaddr}", + "format-linked": "{ifname} (No IP)", + "format-disconnected": "", + //"format-alt": " {ifname}: {ipaddr}/{cidr}", + "justify": "center" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{icon}\n{volume}%", + "format-bluetooth": "\n{volume}%", + "format-bluetooth-muted": "\n{volume}%", + "format-muted": "\n{volume}%", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol", + "justify": "center" + }, + "custom/media": { + "format": "{icon} {}", + "return-type": "json", + "max-length": 20, + "format-icons": { + "spotify": "", + "default": "🎜" + }, + "escape": true, + "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/alsa": { + "format": " {}", + "exec": "amixer get Master | grep -o [0-9]*%", + "interval": 1 + }, + "custom/arch": { + "format": "", + "tooltip": true, + "tooltip-format": "i use arch btw", + "on-click": "~/Scripts/rofi-power.sh", + "justify": "center" + }, + "custom/sep": { + "format": "<span fgalpha='50%'>|</span>" + } +} + diff --git a/config/waybar/config.horizontal b/config/waybar/config.horizontal new file mode 100644 index 0000000..e46b9a6 --- /dev/null +++ b/config/waybar/config.horizontal @@ -0,0 +1,195 @@ +{ + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) + "height": 45, // Waybar height (to be removed for auto height) + "spacing": 0, // Gaps between modules (4px) + "modules-left": ["custom/arch", "tray", "hyprland/workspaces", "sway/mode", "hyprland/special", "custom/media"], + "modules-center": ["pulseaudio", "network", "cpu", "memory", "temperature", "keyboard-state", "battery", "battery#bat2"], + // "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], + "modules-right": ["clock", "clock#date"], + // Modules configuration + "hyprland/workspaces": { + "format": "<span size='large' rise='-1000'>{icon}</span><span size='x-small' rise='1300' fgalpha='60%'>{name}</span>", + "format-icons": { + "1": " ", + "2": " ", + "3": " ", + "4": " ", + "8": " ", + "9": " ", + "10": " ", + "urgent": " ", + "focused": " ", + "default": " " + } + }, + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": "{name} {icon}", + "format-icons": { + "locked": "", + "unlocked": "" + } + }, + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "sway/window": { + "max-length": 55 + }, + "hyprland/window": { + "max-length": 55, + "tooltip": true + }, +"sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "mpd": { + "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", + "format-disconnected": "Disconnected ", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 2, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": "<span color=\"#f53c3c\"></span> ", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock": { + "format": " {:%H:%M}", + // "timezone": "America/New_York", + "tooltip-format": "{:%H:%M:%S}", + "format-alt": " {:%H:%M:%S}", + "interval": 1 + }, + "clock#date": { + "format": " {:%d/%m/%y}", + "tooltip-format": "<big>{:%d %B}</big>\n<tt><small>{calendar}</small></tt>", + "format-alt": " {:%A, %d %B %Y}", + "interval": 30 + }, + "cpu": { + "format": " {usage}%", + "interval": 5, + }, + "memory": { + "format": " {}%", + "interval": 10, + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{icon} {temperatureC}°C", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{icon} {percent}%", + "format-icons": ["", "", "", "", "", "", "", "", ""] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-alt": "{icon} {time}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": " {signalStrength}%", + "format-ethernet": "{ipaddr}/{cidr}", + "tooltip-format": "Interface: {ifname}\nSSID: {essid}\nIP Address: {ipaddr}\nGateway: {gwaddr}", + "format-linked": "{ifname} (No IP)", + "format-disconnected": " {ifname}", + "format-alt": " {ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{icon} {volume}%", + "format-bluetooth": " {volume}%", + "format-bluetooth-muted": " {volume}%", + "format-muted": " {volume}%", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/media": { + "format": "{icon} {}", + "return-type": "json", + "max-length": 20, + "format-icons": { + "spotify": "", + "default": "🎜" + }, + "escape": true, + "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/alsa": { + "format": " {}", + "exec": "amixer get Master | grep -o [0-9]*%", + "interval": 1 + }, + "custom/arch": { + "format": "", + "tooltip": true, + "tooltip-format": "i use arch btw", + "on-click": "~/Scripts/rofi-power.sh" + }, + "custom/sep": { + "format": "<span fgalpha='50%'>|</span>" + } +} + diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100644 index 0000000..cfe4740 --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,137 @@ +* { + font-family: 'JetBrainsMono Nerd Font'; + font-size: 14px; +} + +window { + background: transparent; + /*background-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.5) 90%);*/ + color: white; +} + +#workspaces button { + color: white; + background: none; + border: none; + /*border-top: 3px solid transparent;*/ + box-shadow: none; + border-radius: 5px; + text-shadow: none; + padding-top: 5px; + padding-bottom: 5px; + margin-bottom: 5px; + margin-left: 5px; + margin-right: 5px; +} + +#workspaces button:hover { + /*border-top: 3px solid gray;*/ + background: white; + color: rgb(41, 46, 62); + text-shadow: none; +} + +#workspaces button.active > span { + color: rgb(41, 46, 62); +} + +#workspaces button.active { + /*border-top: 3px solid white;*/ + background: white; + color: rgb(41, 46, 62); + text-shadow: none; +} + +#battery.warning { + color: #b58310; +} + +#battery.critical { + color: #db330d; +} + +#window { + background: white; + text-shadow: none; + color: rgb(41, 46, 62); + margin-top: 10px; + margin-left: 10px; + padding-right: 10px; + padding-left: 10px; + border-radius: 5px 10px 10px 5px; +} + +#battery { + background: white; + color: rgb(41, 46, 62); + margin-top: 10px; + margin-bottom: 10px; + margin-left: 10px; + border-radius: 5px; + padding-top: 7px; + padding-bottom: 7px; +} + +#pulseaudio, #temperature, #memory, #cpu, #network, #backlight { + background: rgb(41, 46, 62); + margin-top: 10px; + margin-left: 10px; + border-radius: 5px; + padding-top: 7px; + padding-bottom: 7px; +} + +#custom-arch { + background: #3692D7; + color: white; + font-size: 1.2rem; + text-shadow: none; + margin-top: 10px; + margin-left: 10px; + padding-top: 7px; + padding-bottom: 7px; + border-radius: 5px; +} + +#custom-arch.hover { + background: white; + color: #4299e5; +} + +#workspaces { + background: rgb(41, 46, 62); + margin-top: 10px; + margin-left: 10px; + box-shadow: none; + border-radius: 5px; + padding-top: 5px; +} + +#clock { + background: rgb(41, 46, 62); + color: white; + text-shadow: none; + margin-top: 10px; + margin-left: 10px; + padding-top: 7px; + padding-bottom: 7px; + border-radius: 5px; +} + +#clock.date { + border-radius: 5px; + color: rgb(41, 46, 62); + background: white; +} + + +#tray { + background: rgb(41, 46, 62); + text-shadow: none; + color: white; + margin-top: 10px; + margin-left: 10px; + padding-top: 7px; + padding-bottom: 7px; + border-radius: 5px; +} diff --git a/config/waybar/style.css.compact b/config/waybar/style.css.compact new file mode 100644 index 0000000..a4ccfbd --- /dev/null +++ b/config/waybar/style.css.compact @@ -0,0 +1,139 @@ +* { + font-family: 'JetBrainsMono Nerd Font'; + font-size: 14px; +} + +window { + background: rgba(41, 46, 62, 0.8); + /*background-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.5) 90%);*/ + color: white; +} + +#workspaces button { + padding: 0 10px; + color: white; + background: none; + border: none; + /*border-top: 3px solid transparent;*/ + box-shadow: none; + border-radius: 0; + text-shadow: none; +} + +#workspaces button:hover { + /*border-top: 3px solid gray;*/ + background: white; + color: rgba(41, 46, 62, 0.8); + text-shadow: none; +} + +#workspaces button.active > span { + color: rgba(41, 46, 62, 0.8); +} + +#workspaces button.active { + /*border-top: 3px solid white;*/ + background: white; + color: rgba(41, 46, 62, 0.8); + text-shadow: none; +} + +#battery.warning { + color: #b58310; +} + +#battery.critical { + color: #db330d; +} + +#window { + background: white; + text-shadow: none; + color: rgba(41, 46, 62, 0.8); + margin-top: 0; + margin-left: 0; + padding-right: 10px; + padding-left: 10px; + border-radius: 0; +} + +#battery { + background: white; + color: rgba(41, 46, 62, 0.8); + margin-top: 0; + padding-right: 12px; + padding-left: 10px; + border-radius: 0; +} + +#temperature, #memory, #cpu, #network, #backlight { + + margin-top: 0; + padding-right: 10px; + padding-left: 10px; + margin-right: 0; + border-radius: 0; +} + +#pulseaudio { + color: white; + + margin-top: 0; + margin-right: 0; + padding-right: 10px; + padding-left: 12px; + border-radius: 0; +} + +#custom-arch { + background: #4299e5; + color: white; + font-size: 1.1rem; + text-shadow: none; + margin-top: 0; + margin-left: 0; + padding-left: 20px; + padding-right: 20px; + border-radius: 0; +} + +#custom-arch.hover { + background: white; + color: #4299e5; +} + +#workspaces { + + margin-top: 0; + margin-left: 0; + border-radius: 0; +} + +#clock { + + color: white; + text-shadow: none; + margin-top: 0; + margin-right: 0; + border-radius: 0; + padding-left: 10px; + padding-right: 10px; +} + +#clock.date { + border-radius: 0; + color: rgba(41, 46, 62, 0.8); + background: white; +} + + +#tray { + + text-shadow: none; + color: white; + margin-top: 0; + margin-left: 0; + padding-right: 10px; + padding-left: 10px; + border-radius: 0; +} diff --git a/config/waybar/style.css.horizontal b/config/waybar/style.css.horizontal new file mode 100644 index 0000000..78a3608 --- /dev/null +++ b/config/waybar/style.css.horizontal @@ -0,0 +1,139 @@ +* { + font-family: 'JetBrainsMono Nerd Font'; + font-size: 14px; +} + +window { + background: transparent; + /*background-image: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.5) 90%);*/ + color: white; +} + +#workspaces button { + padding: 0 10px; + color: white; + background: none; + border: none; + /*border-top: 3px solid transparent;*/ + box-shadow: none; + border-radius: 5px 10px 10px 5px; + text-shadow: none; +} + +#workspaces button:hover { + /*border-top: 3px solid gray;*/ + background: white; + color: rgba(41, 46, 62, 0.8); + text-shadow: none; +} + +#workspaces button.active > span { + color: rgba(41, 46, 62, 0.8); +} + +#workspaces button.active { + /*border-top: 3px solid white;*/ + background: white; + color: rgba(41, 46, 62, 0.8); + text-shadow: none; +} + +#battery.warning { + color: #b58310; +} + +#battery.critical { + color: #db330d; +} + +#window { + background: white; + text-shadow: none; + color: rgba(41, 46, 62, 0.8); + margin-top: 10px; + margin-left: 10px; + padding-right: 10px; + padding-left: 10px; + border-radius: 5px 10px 10px 5px; +} + +#battery { + background: white; + color: rgba(41, 46, 62, 0.8); + margin-top: 10px; + padding-right: 12px; + padding-left: 10px; + border-radius: 5px 10px 10px 5px; +} + +#temperature, #memory, #cpu, #network, #backlight { + background: rgba(41, 46, 62, 0.8); + margin-top: 10px; + padding-right: 10px; + padding-left: 10px; + margin-right: 10px; + border-radius: 5px; +} + +#pulseaudio { + color: white; + background: rgba(41, 46, 62, 0.8); + margin-top: 10px; + margin-right: 10px; + padding-right: 10px; + padding-left: 12px; + border-radius: 10px 5px 5px 10px; +} + +#custom-arch { + background: #3692D7; + color: white; + font-size: 1.1rem; + text-shadow: none; + margin-top: 10px; + margin-left: 10px; + padding-left: 20px; + padding-right: 20px; + border-radius: 10px 5px 5px 10px; +} + +#custom-arch.hover { + background: white; + color: #4299e5; +} + +#workspaces { + background: rgba(41, 46, 62, 0.8); + margin-top: 10px; + margin-left: 10px; + border-radius: 5px 10px 10px 5px; +} + +#clock { + background: rgba(41, 46, 62, 0.8); + color: white; + text-shadow: none; + margin-top: 10px; + margin-right: 10px; + border-radius: 10px 5px 5px 10px; + padding-left: 10px; + padding-right: 10px; +} + +#clock.date { + border-radius: 5px 10px 10px 5px; + color: rgba(41, 46, 62, 0.8); + background: white; +} + + +#tray { + background: rgba(41, 46, 62, 0.8); + text-shadow: none; + color: white; + margin-top: 10px; + margin-left: 10px; + padding-right: 10px; + padding-left: 10px; + border-radius: 5px; +} |