From 79e172c935987a9d6b816a2cfd9a9db54cfba80c Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Thu, 23 Nov 2023 14:00:14 +0100 Subject: [PATCH] Add settings button to waybar and window rule --- hypr/conf/windowrules.conf | 2 ++ waybar/modules.json | 7 +++++++ waybar/themes/ml4w-blur-bottom/config | 1 + waybar/themes/ml4w-blur/config | 1 + waybar/themes/ml4w-blur/style.css | 5 +++-- waybar/themes/ml4w-bottom/config | 1 + waybar/themes/ml4w/config | 1 + waybar/themes/ml4w/style.css | 3 ++- 8 files changed, 18 insertions(+), 3 deletions(-) diff --git a/hypr/conf/windowrules.conf b/hypr/conf/windowrules.conf index 1f30c87..b8a418f 100644 --- a/hypr/conf/windowrules.conf +++ b/hypr/conf/windowrules.conf @@ -7,3 +7,5 @@ windowrule = tile,^(Brave-browser)$ windowrule = tile,^(Chromium)$ windowrule = float,^(pavucontrol)$ windowrule = float,^(blueman-manager)$ + +windowrulev2 = float,class:(dotfiles-floating) \ No newline at end of file diff --git a/waybar/modules.json b/waybar/modules.json index 85beaee..234c131 100644 --- a/waybar/modules.json +++ b/waybar/modules.json @@ -100,6 +100,13 @@ "on-click": "~/dotfiles/waybar/themeswitcher.sh", "tooltip": false }, + + // Settings + "custom/settings": { + "format": "", + "on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/hypr/settings/settings.sh", + "tooltip": false + }, // Keybindings "custom/keybindings": { diff --git a/waybar/themes/ml4w-blur-bottom/config b/waybar/themes/ml4w-blur-bottom/config index 6641ca1..2cfa846 100644 --- a/waybar/themes/ml4w-blur-bottom/config +++ b/waybar/themes/ml4w-blur-bottom/config @@ -35,6 +35,7 @@ "custom/appmenu", "custom/wallpaper", "custom/waybarthemes", + "custom/settings", "wlr/taskbar", "group/quicklinks", "hyprland/window" diff --git a/waybar/themes/ml4w-blur/config b/waybar/themes/ml4w-blur/config index f49457e..3997db3 100644 --- a/waybar/themes/ml4w-blur/config +++ b/waybar/themes/ml4w-blur/config @@ -35,6 +35,7 @@ "custom/appmenu", "custom/wallpaper", "custom/waybarthemes", + "custom/settings", "wlr/taskbar", "group/quicklinks", "hyprland/window" diff --git a/waybar/themes/ml4w-blur/style.css b/waybar/themes/ml4w-blur/style.css index 4f6a533..4480f01 100644 --- a/waybar/themes/ml4w-blur/style.css +++ b/waybar/themes/ml4w-blur/style.css @@ -159,10 +159,11 @@ window#waybar.empty #window { #custom-calculator, #custom-windowsvm, #custom-cliphist, -#custom-wallpaper, +#custom-wallpaper, +#custom-settings, #custom-wallpaperwlr, #custom-waybarthemes { - margin-right: 20px; + margin-right: 15px; font-size: 20px; font-weight: bold; opacity: 0.8; diff --git a/waybar/themes/ml4w-bottom/config b/waybar/themes/ml4w-bottom/config index c5dc70d..fac8a8b 100644 --- a/waybar/themes/ml4w-bottom/config +++ b/waybar/themes/ml4w-bottom/config @@ -35,6 +35,7 @@ "custom/appmenu", "custom/wallpaper", "custom/waybarthemes", + "custom/settings", "wlr/taskbar", "group/quicklinks", "hyprland/window" diff --git a/waybar/themes/ml4w/config b/waybar/themes/ml4w/config index 637b337..831486f 100644 --- a/waybar/themes/ml4w/config +++ b/waybar/themes/ml4w/config @@ -35,6 +35,7 @@ "custom/appmenu", "custom/wallpaper", "custom/waybarthemes", + "custom/settings", "wlr/taskbar", "group/quicklinks", "hyprland/window" diff --git a/waybar/themes/ml4w/style.css b/waybar/themes/ml4w/style.css index 70a3326..c0992de 100644 --- a/waybar/themes/ml4w/style.css +++ b/waybar/themes/ml4w/style.css @@ -161,9 +161,10 @@ window#waybar.empty #window { #custom-windowsvm, #custom-cliphist, #custom-wallpaper, +#custom-settings, #custom-wallpaperwlr, #custom-waybarthemes { - margin-right: 20px; + margin-right: 15px; font-size: 20px; font-weight: bold; opacity: 0.8;