From dc460aaf4f04d25c8b662b5163438234642e3713 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Thu, 25 Jul 2024 11:17:15 +0200 Subject: [PATCH] General fixes --- tree/.config/eww/eww.yuck.tpl | 2 +- .../gtk-3.0/{settings.ini.tpl => settings.ini} | 2 -- tree/.config/gtk-4.0/settings.ini | 2 ++ tree/.config/hypr/hyprland.conf.tpl | 14 ++++++++------ tree/.local/bin/volshow | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) rename tree/.config/gtk-3.0/{settings.ini.tpl => settings.ini} (57%) create mode 100644 tree/.config/gtk-4.0/settings.ini diff --git a/tree/.config/eww/eww.yuck.tpl b/tree/.config/eww/eww.yuck.tpl index bea34ee..29ec6a7 100644 --- a/tree/.config/eww/eww.yuck.tpl +++ b/tree/.config/eww/eww.yuck.tpl @@ -140,7 +140,7 @@ (box :orientation "v" :valign "end" :class "thingy" - :visible {EWW_BATTERY.BAT0.capacity != ""} + :visible {EWW_BATTERY != "" && EWW_BATTERY.BAT0.capacity != ""} (label :text "BAT") (circular-progress :thickness 4.0 diff --git a/tree/.config/gtk-3.0/settings.ini.tpl b/tree/.config/gtk-3.0/settings.ini similarity index 57% rename from tree/.config/gtk-3.0/settings.ini.tpl rename to tree/.config/gtk-3.0/settings.ini index b3ac087..2189857 100644 --- a/tree/.config/gtk-3.0/settings.ini.tpl +++ b/tree/.config/gtk-3.0/settings.ini @@ -1,4 +1,2 @@ -{% if hostname == "buran" %} [Settings] gtk-application-prefer-dark-theme = true -{% end %} diff --git a/tree/.config/gtk-4.0/settings.ini b/tree/.config/gtk-4.0/settings.ini new file mode 100644 index 0000000..2189857 --- /dev/null +++ b/tree/.config/gtk-4.0/settings.ini @@ -0,0 +1,2 @@ +[Settings] +gtk-application-prefer-dark-theme = true diff --git a/tree/.config/hypr/hyprland.conf.tpl b/tree/.config/hypr/hyprland.conf.tpl index a5d017d..44051ac 100644 --- a/tree/.config/hypr/hyprland.conf.tpl +++ b/tree/.config/hypr/hyprland.conf.tpl @@ -17,7 +17,7 @@ env = XCURSOR_SIZE,24 env = PATH,$HOME/.local/bin:$HOME/.cargo/bin:$PATH env = QT_QPA_PLATFORM,wayland;xcb env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 -env = QT_QPA_PLATFORMTHEME,qt5ct +env = QT_QPA_PLATFORMTHEME,qt5ct:qt6ct env = GTK_USE_PORTAL,1 env = BROWSER,firefox env = MOZ_ENABLE_WAYLAND,1 @@ -111,11 +111,12 @@ gestures { } # See https://wiki.hyprland.org/Configuring/Window-Rules/ -windowrule=float,title:Volume -windowrule=size 300 100,title:Volume -windowrule=move 100%-375 75,title:Volume -windowrule=rounding 35,title:Volume -windowrule=nofocus,title:Volume +windowrule=float,title:Volume Indicator +windowrule=size 300 100,title:Volume Indicator +windowrule=move 100%-375 75,title:Volume Indicator +windowrule=rounding 35,title:Volume Indicator +windowrule=nofocus,title:Volume Indicator + windowrule=float,title:Jitsi Meet windowrule=move 100%-375 75,title:Jitsi Meet @@ -209,6 +210,7 @@ monitor=DP-2,3840x1600@59.99400,0x0,1.25 {% end %} exec-once=hyprpaper +exec-once=swayidle exec-once=dunst exec-once=eww daemon diff --git a/tree/.local/bin/volshow b/tree/.local/bin/volshow index 56d16f9..2baa480 100755 --- a/tree/.local/bin/volshow +++ b/tree/.local/bin/volshow @@ -6,7 +6,7 @@ SOCKET="/tmp/volume_indicator" # If theres an existing volume_indicator running, prod the socket # Otherwise, start a new volume_indicator instance. nc -U "$SOCKET" 2>/dev/null || \ -ba alacritty -T "Volume" \ +ba alacritty -T "Volume Indicator" \ --class "volume_indicator" \ --config-file "$HOME/.config/alacritty/silent.toml" \ --command volume_indicator \