diff --git a/waybar/themes/linuxmobile/config b/waybar/themes/linuxmobile/config new file mode 100644 index 0000000..b253602 --- /dev/null +++ b/waybar/themes/linuxmobile/config @@ -0,0 +1,168 @@ +{ + "position": "top", + "layer": "top", + "height": 16, + "margin-top": 0, + "margin-bottom": 0, + "margin-left": 0, + "margin-right": 0, + "modules-left": ["custom/launcher", "hyprland/workspaces", "custom/playerctl", "custom/playerlabel"], + "modules-center": ["cpu", "memory", "disk"], + "modules-right": ["tray", "custom/randwall", "network", "pulseaudio", "clock"], + // Modules configuration + "clock": { + "format": " {:%H:%M}", + "tooltip": "true", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": " {:%d/%m}" + }, + + + "hyprland/workspaces": { + "active-only": false, + "all-outputs": true, + "disable-scroll": false, + "on-scroll-up": "hyprctl dispatch workspace -1", + "on-scroll-down": "hyprctl dispatch workspace +1", + "format": "{icon}", + "on-click": "activate", + "format-icons": { +// "1": "一", +// "2": "二", +// "3": "三", +// "4": "四", +// "5": "五", + "urgent": "", + "active": "", + "default": "󰧞", + "sort-by-number": true + }, + }, + +// "custom/playerctl": { +// "format": "{icon}", +// "return-type": "json", +// "max-length": 64, +// "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", +// "on-click-middle": "playerctl play-pause", +// "on-click": "playerctl previous", +// "on-click-right": "playerctl next", +// "format-icons": { +// "Playing": "󰒮 󰐌 󰒭", +// "Paused": "󰒮 󰏥 󰒭" +// }, +// }, + +// "custom/playerlabel": { +// "format": "{}", +// "return-type": "json", +// "max-length": 48, +// "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", +// "on-click-middle": "playerctl play-pause", +// "on-click": "playerctl previous", +// "on-click-right": "playerctl next", +// "format-icons": { +// "Playing": "󰒮 󰐌 󰒭", +// "Paused": "󰒮 󰏥 󰒭" +// }, +// }, + + "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": ["", "", "", "", ""] + }, + + "memory": { + "format": "󰍛 {}%", + "format-alt": "󰍛 {used}/{total} GiB", + "interval": 5 + }, + + "cpu": { + "format": "󰻠 {usage}%", + "format-alt": "󰻠 {avg_frequency} GHz", + "interval": 5 + }, + + "disk": { + "format": "󰋊 {}%", + "format-alt": "󰋊 {used}/{total} GiB", + "interval": 5, + "path": "/" + }, + + "network": { + "format-wifi": "󰤨", + "format-ethernet": " {ifname}: Aesthetic", + "format-linked": " {ifname} (No IP)", + "format-disconnected": "󰤭", + "format-alt": " {ifname}: {ipaddr}/{cidr}", + "tooltip-format": "{essid}", + "on-click-right": "nm-connection-editor" + }, + + "tray": { + "icon-size": 16, + "spacing": 5 + }, + + "backlight": { + // "device": "acpi_video1", + "format": "{icon} {percent}%", + "format-icons": ["", "", "", "", "", "", "", "", ""], +// "on-scroll-up":, +// "on-scroll-down":, + }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": "󰝟", + "format-icons": { + "default": ["󰕿", "󰖀", "󰕾"] + }, + "on-click": "bash ~/.scripts/volume mute", + "on-scroll-up": "bash ~/.scripts/volume up", + "on-scroll-down": "bash ~/.scripts/volume down", + "scroll-step": 5, + "on-click-right": "pavucontrol" + }, +// "custom/randwall": { +// "format": "󰏘", +// "on-click": "bash $HOME/.config/hypr/randwall.sh", +// "on-click-right": "bash $HOME/.config/hypr/wall.sh" +// }, + "custom/launcher": { + "format": "󰈸", + "on-click": "bash $HOME/.config/rofi/launcher.sh", +// "on-click": "wofi --show drun -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css", + "on-click-right": "bash $HOME/.config/rofi/run.sh" +// "on-click-right": "wofi --show run -I -a -n -W 500 -H 376 -s ~/.config/wofi/themes/gruvbox.css" + }, + +// "custom/wf-recorder": { +// "format": "{}", +// "interval": "once", +// "exec": "echo ''", +// "tooltip": "false", +// "exec-if": "pgrep 'wf-recorder'", +// "on-click": "exec ./scripts/wlrecord.sh", +// "signal": 8 +// }, + +// "custom/hyprpicker": { +// "format": "󰈋", +// "on-click": "hyprpicker -a -f hex", +// "on-click-right": "hyprpicker -a -f rgb" +// }, + } +} diff --git a/waybar/themes/linuxmobile/default/config.sh b/waybar/themes/linuxmobile/default/config.sh new file mode 100644 index 0000000..f55e458 --- /dev/null +++ b/waybar/themes/linuxmobile/default/config.sh @@ -0,0 +1,2 @@ +#!/bin/bash +theme_name="LINUXMOBILE Default" diff --git a/waybar/themes/linuxmobile/default/style.css b/waybar/themes/linuxmobile/default/style.css new file mode 100644 index 0000000..9e0e318 --- /dev/null +++ b/waybar/themes/linuxmobile/default/style.css @@ -0,0 +1,16 @@ +/* ----------------------------------------------------- + * Import Pywal colors + * ----------------------------------------------------- */ +@import '../../../../../.cache/wal/colors-waybar.css'; + +@define-color backgroundlight @color8; +@define-color backgrounddark #FFFFFF; +@define-color workspacesbackground1 @color8; +@define-color workspacesbackground2 #FFFFFF; +@define-color bordercolor @color8; +@define-color textcolor1 @color8; +@define-color textcolor2 #FFFFFF; +@define-color textcolor3 #FFFFFF; +@define-color iconcolor @color8; + +@import '../style.css'; diff --git a/waybar/themes/linuxmobile/style.css b/waybar/themes/linuxmobile/style.css new file mode 100644 index 0000000..41d90e6 --- /dev/null +++ b/waybar/themes/linuxmobile/style.css @@ -0,0 +1,246 @@ +* { + border: none; + border-radius: 0px; + /*font-family: VictorMono, Iosevka Nerd Font, Noto Sans CJK;*/ + font-family: Iosevka, FontAwesome, Noto Sans CJK; + font-size: 14px; + font-style: normal; + min-height: 0; +} + +window#waybar { + background: rgba(30, 30, 46, 0.5); + border-bottom: 1px solid #282828; + color: #f4d9e1 +} + +#workspaces { + background: #282828; + margin: 5px 5px 5px 5px; + padding: 0px 5px 0px 5px; + border-radius: 16px; + border: solid 0px #f4d9e1; + font-weight: normal; + font-style: normal; +} +#workspaces button { + padding: 0px 5px; + border-radius: 16px; + color: #928374; +} + +#workspaces button.active { + color: #f4d9e1; + background-color: transparent; + border-radius: 16px; +} + +#workspaces button:hover { + background-color: #E6B9C6; + color: black; + border-radius: 16px; +} + +#custom-date, #clock, #battery, #pulseaudio, #network, #custom-randwall, #custom-launcher { + background: transparent; + padding: 5px 5px 5px 5px; + margin: 5px 5px 5px 5px; + border-radius: 8px; + border: solid 0px #f4d9e1; +} + +#custom-date { + color: #D3869B; +} + +#custom-power { + color: #24283b; + background-color: #db4b4b; + border-radius: 5px; + margin-right: 10px; + margin-top: 5px; + margin-bottom: 5px; + margin-left: 0px; + padding: 5px 10px; +} + +#tray { + background: #282828; + margin: 5px 5px 5px 5px; + border-radius: 16px; + padding: 0px 5px; + /*border-right: solid 1px #282738;*/ +} + +#clock { + color: #E6B9C6; + background-color: #282828; + border-radius: 0px 0px 0px 24px; + padding-left: 13px; + padding-right: 15px; + margin-right: 0px; + margin-left: 10px; + margin-top: 0px; + margin-bottom: 0px; + font-weight: bold; + /*border-left: solid 1px #282738;*/ +} + + +#battery { + color: #9ece6a; +} + +#battery.charging { + color: #9ece6a; +} + +#battery.warning:not(.charging) { + background-color: #f7768e; + color: #24283b; + border-radius: 5px 5px 5px 5px; +} + +#backlight { + background-color: #24283b; + color: #db4b4b; + border-radius: 0px 0px 0px 0px; + margin: 5px; + margin-left: 0px; + margin-right: 0px; + padding: 0px 0px; +} + +#network { + color: #f4d9e1; + border-radius: 8px; + margin-right: 5px; +} + +#pulseaudio { + color: #f4d9e1; + border-radius: 8px; + margin-left: 0px; +} + +#pulseaudio.muted { + background: transparent; + color: #928374; + border-radius: 8px; + margin-left: 0px; +} + +#custom-randwall { + color: #f4d9e1; + border-radius: 8px; + margin-right: 0px; +} + +#custom-launcher { + color: #e5809e; + background-color: #282828; + border-radius: 0px 24px 0px 0px; + margin: 0px 0px 0px 0px; + padding: 0 20px 0 13px; + /*border-right: solid 1px #282738;*/ + font-size: 20px; +} + +#custom-launcher button:hover { + background-color: #FB4934; + color: transparent; + border-radius: 8px; + margin-right: -5px; + margin-left: 10px; +} + +#custom-playerctl { + background: #282828; + padding-left: 15px; + padding-right: 14px; + border-radius: 16px; + /*border-left: solid 1px #282738;*/ + /*border-right: solid 1px #282738;*/ + margin-top: 5px; + margin-bottom: 5px; + margin-left: 0px; + font-weight: normal; + font-style: normal; + font-size: 16px; +} + +#custom-playerlabel { + background: transparent; + padding-left: 10px; + padding-right: 15px; + border-radius: 16px; + /*border-left: solid 1px #282738;*/ + /*border-right: solid 1px #282738;*/ + margin-top: 5px; + margin-bottom: 5px; + font-weight: normal; + font-style: normal; +} + +#window { + background: #282828; + padding-left: 15px; + padding-right: 15px; + border-radius: 16px; + /*border-left: solid 1px #282738;*/ + /*border-right: solid 1px #282738;*/ + margin-top: 5px; + margin-bottom: 5px; + font-weight: normal; + font-style: normal; +} + +#custom-wf-recorder { + padding: 0 20px; + color: #e5809e; + background-color: #1E1E2E; +} + +#cpu { + background-color: #282828; + /*color: #FABD2D;*/ + border-radius: 16px; + margin: 5px; + margin-left: 5px; + margin-right: 5px; + padding: 0px 10px 0px 10px; + font-weight: bold; +} + +#memory { + background-color: #282828; + /*color: #83A598;*/ + border-radius: 16px; + margin: 5px; + margin-left: 5px; + margin-right: 5px; + padding: 0px 10px 0px 10px; + font-weight: bold; +} + +#disk { + background-color: #282828; + /*color: #8EC07C;*/ + border-radius: 16px; + margin: 5px; + margin-left: 5px; + margin-right: 5px; + padding: 0px 10px 0px 10px; + font-weight: bold; +} + +#custom-hyprpicker { + background-color: #282828; + /*color: #8EC07C;*/ + border-radius: 16px; + margin: 5px; + margin-left: 5px; + margin-right: 5px; + padding: 0px 11px 0px 9px; + font-weight: bold; +}