From fd2a747cd5289f82b78dbc87afbe7f8461c286f1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Mar 2025 14:51:48 +0900 Subject: added apps in the waybar-menu as some people seem to have no idea what the hyprland icon is --- config/waybar/ModulesCustom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/waybar') diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index df5f8786..bab0107e 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -105,7 +105,7 @@ }, "custom/menu": { - "format": "", + "format": " apps", "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser,window", "on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh", "on-click-right": "$HOME/.config/hypr/scripts/WaybarLayout.sh", -- cgit v1.2.3 From b4485d18066464929ec33fd59b7d98e7b4b2f141 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Mar 2025 15:24:26 +0900 Subject: nope bad idea. it ruins the vertical layout waybar --- config/waybar/ModulesCustom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/waybar') diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index bab0107e..96a718a6 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -105,7 +105,7 @@ }, "custom/menu": { - "format": " apps", + "format": "  ", "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser,window", "on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh", "on-click-right": "$HOME/.config/hypr/scripts/WaybarLayout.sh", -- cgit v1.2.3 From 9bc329bc2ce5110873b7fe10bae4ec1c806e9ab5 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 17 Mar 2025 22:21:25 +0900 Subject: updated waybar layout ja --- config/waybar/configs/[TOP] 0-Ja-0 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/waybar') diff --git a/config/waybar/configs/[TOP] 0-Ja-0 b/config/waybar/configs/[TOP] 0-Ja-0 index 5c9393ff..c4cb0a65 100644 --- a/config/waybar/configs/[TOP] 0-Ja-0 +++ b/config/waybar/configs/[TOP] 0-Ja-0 @@ -28,8 +28,6 @@ "custom/separator#blank", "clock", "custom/separator#blank_2", - "mpris", - "custom/separator#blank_2", "hyprland/window", ], @@ -47,7 +45,9 @@ "group/mobo_drawer", "custom/separator#line", "group/audio", - "custom/separator#dot-line", + "custom/separator#dot-line", + "mpris", + "custom/separator#blank", "group/status", ], } \ No newline at end of file -- cgit v1.2.3 From fc84e0d342334d1dc03f956cc74343fb16434c53 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 18 Mar 2025 15:30:14 +0900 Subject: added [Extra] ML4W waybar starter style. Of course I edited to work well with KooL Hyprland --- config/waybar/style/[Extra] ML4W starter.css | 363 +++++++++++++++++++++++++++ 1 file changed, 363 insertions(+) create mode 100644 config/waybar/style/[Extra] ML4W starter.css (limited to 'config/waybar') diff --git a/config/waybar/style/[Extra] ML4W starter.css b/config/waybar/style/[Extra] ML4W starter.css new file mode 100644 index 00000000..79456a84 --- /dev/null +++ b/config/waybar/style/[Extra] ML4W starter.css @@ -0,0 +1,363 @@ +/* ---- 💫 https://github.com/JaKooLit 💫 ---- */ +/* ML4W - Waybar Style */ +/* Original design from ML4W - Hyprland Starter Waybar */ + +@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: "JetBrainsMono Nerd Font"; + border: none; + border-radius: 4px; + font-weight: bold; + /* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ + font-size: 97%; + font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; +} + +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 & Taskbar + * ----------------------------------------------------- */ + +#taskbar, +#workspaces { + margin: 5px 1px 6px 1px; + padding: 0px 1px; + border-radius: 15px; + border: 0px; + font-weight: bold; + font-style: normal; + color: @textcolor1; +} + +#taskbar button, +#workspaces button { + padding: 0px 5px; + margin: 4px 3px; + border-radius: 12px; + border: 0px; + color: @textcolor3; + transition: all 0.3s ease-in-out; +} + +#taskbar button.active, +#workspaces button.active { + color: @textcolor1; + background: @workspacesbackground2; + border-radius: 8px; + min-width: 40px; + transition: all 0.3s ease-in-out; +} + +#workspaces button:hover { + color: @textcolor1; + background: @workspacesbackground2; + border-radius: 15px; +} + +/* ----------------------------------------------------- + * 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: 8px; + color:@textcolor2; + font-weight:normal; +} + +window#waybar.empty #window { + background-color:transparent; +} + +/* ----------------------------------------------------- + * Modules + * ----------------------------------------------------- */ + +.modules-left > widget:first-child > #workspaces { + margin-left: 0; +} + +.modules-right > widget:last-child > #workspaces { + margin-right: 0; +} + +/* ----------------------------------------------------- + * Custom Quicklinks + * ----------------------------------------------------- */ + +#network, +#pulseaudio, +#battery, +#clock { + margin-right: 20px; + font-weight: bold; + color: @iconcolor; + padding: 4px 10px 2px 10px; +} + +#backlight, +#backlight-slider, +#battery, +#bluetooth, +#clock, +#cpu, +#disk, +#idle_inhibitor, +#keyboard-state, +#memory, +#mode, +#mpris, +#network, +#power-profiles-daemon, +#pulseaudio, +#pulseaudio-slider, +#taskbar, +#temperature, +#tray, +#wireplumber, +#workspaces, +#custom-backlight, +#custom-browser, +#custom-cava_mviz, +#custom-cycle_wall, +#custom-dot_update, +#custom-file_manager, +#custom-keybinds, +#custom-keyboard, +#custom-light_dark, +#custom-lock, +#custom-hint, +#custom-hypridle, +#custom-menu, +#custom-playerctl, +#custom-power_vertical, +#custom-power, +#custom-quit, +#custom-reboot, +#custom-settings, +#custom-spotify, +#custom-swaync, +#custom-tty, +#custom-updater, +#custom-weather, +#custom-weather.clearNight, +#custom-weather.cloudyFoggyDay, +#custom-weather.cloudyFoggyNight, +#custom-weather.default, +#custom-weather.rainyDay, +#custom-weather.rainyNight, +#custom-weather.severe, +#custom-weather.showyIcyDay, +#custom-weather.snowyIcyNight, +#custom-weather.sunnyDay { + padding-right: 6px; + padding-left: 6px; + color: @iconcolor; +} + +/* ----------------------------------------------------- + * Custom Modules + * ----------------------------------------------------- */ + +#custom-menu { + background-color: @backgrounddark; + color: @textcolor1; + border-radius: 10px; + margin: 10px 10px 10px 10px; + padding-right: 6px; + padding-left: 4px; +} + +#custom-power { + margin: 2px 10px 0px 0px; + padding:0px; + color: @iconcolor; +} + +/* ----------------------------------------------------- + * Hardware Group + * ----------------------------------------------------- */ + + #disk,#memory,#cpu,#language { + margin:0px; + padding:0px; + color:@iconcolor; +} + +#language { + margin-right:10px; +} + +/* ----------------------------------------------------- + * Clock + * ----------------------------------------------------- */ + +#clock { + background-color: @backgrounddark; + color: @textcolor1; + border-radius: 15px; + margin: 10px 2px 10px 0px; +} + +/* ----------------------------------------------------- + * Pulseaudio + * ----------------------------------------------------- */ + +#pulseaudio { + background-color: @backgroundlight; + color: @textcolor2; + border-radius: 12px; + margin: 10px 10px 10px 0px; +} + +#pulseaudio.muted { + background-color: @backgrounddark; + color: @textcolor1; +} + +/* ----------------------------------------------------- + * Network + * ----------------------------------------------------- */ + +#network { + background-color: @backgroundlight; + color: @textcolor2; + border-radius: 15px; + 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; + color: @textcolor2; + border-radius: 15px; + margin: 10px 15px 10px 0px; +} + +#bluetooth.off { + background-color: transparent; + padding: 0px; + margin: 0px; +} + +/* ----------------------------------------------------- + * Battery + * ----------------------------------------------------- */ + +#battery { + background-color: @backgroundlight; + color: @textcolor2; + border-radius: 15px; + 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; +} + -- cgit v1.2.3 From 51b04af8b39201a86d1c095bde51d4019ccef796 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 18 Mar 2025 18:23:10 +0900 Subject: Added WaybarScripts.sh. In this way, waybar modules can use the default terminal set in ~/.config/hypr/UserConfigs/01-UserDefaults.conf --- config/hypr/scripts/WaybarScripts.sh | 41 ++++++++++++++++++++++++++++++++++++ config/waybar/Modules | 6 +++--- config/waybar/ModulesCustom | 2 +- config/waybar/ModulesVertical | 4 ++-- 4 files changed, 47 insertions(+), 6 deletions(-) create mode 100755 config/hypr/scripts/WaybarScripts.sh (limited to 'config/waybar') diff --git a/config/hypr/scripts/WaybarScripts.sh b/config/hypr/scripts/WaybarScripts.sh new file mode 100755 index 00000000..32b43f02 --- /dev/null +++ b/config/hypr/scripts/WaybarScripts.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# This file used on waybar modules sourcing defaults set in $HOME/.config/hypr/UserConfigs/01-UserDefaults.conf + +# Define the path to the config file +config_file=$HOME/.config/hypr/UserConfigs/01-UserDefaults.conf + +# Check if the config file exists +if [[ ! -f "$config_file" ]]; then + echo "Error: Configuration file not found!" + exit 1 +fi + +# Process the config file in memory, removing the $ and fixing spaces +config_content=$(sed 's/\$//g' "$config_file" | sed 's/ = /=/') + +# Source the modified content directly from the variable +eval "$config_content" + +# Check if $term is set correctly +if [[ -z "$term" ]]; then + echo "Error: \$term is not set in the configuration file!" + exit 1 +fi + +# Execute accordingly based on the passed argument +if [[ "$1" == "--btop" ]]; then + $term --title btop sh -c 'btop' +elif [[ "$1" == "--nvtop" ]]; then + $term --title nvtop sh -c 'nvtop' +elif [[ "$1" == "--nmtui" ]]; then + $term nmtui +elif [[ "$1" == "--term" ]]; then + $term & +else + echo "Usage: $0 [--btop | --nvtop | --nmtui | --term]" + echo "--btop : Open btop in a new term" + echo "--nvtop : Open nvtop in a new term" + echo "--nmtui : Open nmtui in a new term" + echo "--term : Launch a term window" +fi diff --git a/config/waybar/Modules b/config/waybar/Modules index 4fec766e..32664326 100644 --- a/config/waybar/Modules +++ b/config/waybar/Modules @@ -19,7 +19,7 @@ "format-icons": [ "󰈸" ], - "on-click-right": "kitty --title nvtop sh -c 'nvtop'" + "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --nvtop" }, "backlight": { @@ -232,7 +232,7 @@ "format-alt-click": "click", "tooltip": true, "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", - "on-click-right": "kitty --title btop sh -c 'btop'" + "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --btop" }, "mpris": { @@ -281,7 +281,7 @@ "format-icons": [ "󰤯", "󰤟", "󰤢", "󰤥", "󰤨" ], - "on-click-right": "kitty nmtui" + "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --nmtui" }, "network#speed": { diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index 96a718a6..bde9bbc2 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -26,7 +26,7 @@ "custom/tty": { "format": " ", - "on-click": "kitty &", + "on-click": "$HOME/.config/hypr/scripts/WaybarScripts.sh --term", "tooltip": true, "tooltip-format": "Launch Terminal", }, diff --git a/config/waybar/ModulesVertical b/config/waybar/ModulesVertical index 5dea07ef..7128471b 100644 --- a/config/waybar/ModulesVertical +++ b/config/waybar/ModulesVertical @@ -19,7 +19,7 @@ "format-icons": [ "󰈸" ], - "on-click-right": "kitty --title nvtop sh -c 'nvtop'" + "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --nvtop" }, "backlight#vertical": { @@ -68,7 +68,7 @@ "format-alt-click": "click", "tooltip": true, "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", - "on-click-right": "kitty --title btop sh -c 'btop'", + "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --btop", }, "pulseaudio#vertical": { -- cgit v1.2.3 From f19961eac63f7382c7bb22ce75c6451401dbc611 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 19 Mar 2025 14:57:11 +0900 Subject: updated waybar workspaces rw --- config/waybar/ModulesWorkspaces | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/waybar') diff --git a/config/waybar/ModulesWorkspaces b/config/waybar/ModulesWorkspaces index d1862f58..283d6449 100644 --- a/config/waybar/ModulesWorkspaces +++ b/config/waybar/ModulesWorkspaces @@ -252,16 +252,16 @@ "class": "󰒃 ", "class": " ", - + "class<[Pp]avucontrol|org.pulseaudio.pavucontrol>": "󱡫 ", "class": " ", "class": "󰝰 ", "class":"", "class": " ", "class": "📱 ", "class": " ", - "class": "󰓃", + "class": "󰓃", "class":"", "class": "󰹛", } }, -} +} \ No newline at end of file -- cgit v1.2.3