From b201011fa9af5d42e456f37840cfa4ee104c6f4e Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 2 Aug 2025 13:51:59 +0200 Subject: [PATCH] fix: theming issues and add missing packages --- .config/hypr/hyprland.conf | 2 +- .config/uwsm/env | 3 +-- install.py => setup.py | 27 ++++++++++++++++++++++++++- 3 files changed, 28 insertions(+), 4 deletions(-) rename install.py => setup.py (93%) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index bb5b3e0..5241016 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -208,7 +208,7 @@ $mod = SUPER # General bind = $mod, Return, exec, uwsm app -- Alacritty.desktop -bind = $mod, E, exec, uwsm app -- org.kde.dolphin.desktop +bind = $mod, E, exec, uwsm app -- org.gnome.Nautilus.desktop bind = $mod, D, exec, rofi -show drun bind = $mod, F2, exec, rofi -show run bind = $mod, W, togglegroup, # dwindle diff --git a/.config/uwsm/env b/.config/uwsm/env index e70bfc1..c4d7437 100644 --- a/.config/uwsm/env +++ b/.config/uwsm/env @@ -1,5 +1,4 @@ export XCURSOR_SIZE=24 export XCURSOR_THEME=breeze_cursors -export GTK_THEME=Adwaita:dark +export QT_STYLE_OVERRIDE=Breeze export QT_QPA_PLATFORM=wayland -export QT_QPA_PLATFORMTHEME=kde diff --git a/install.py b/setup.py similarity index 93% rename from install.py rename to setup.py index 0d33710..195724b 100755 --- a/install.py +++ b/setup.py @@ -33,6 +33,12 @@ class Installer: "alacritty", "tmux", "zsh", + "libnewt", + "vim", + "unzip", + "npm", + "nvim", + "firefox", "hyprland", "uwsm", "fnott", @@ -49,7 +55,7 @@ class Installer: "waybar", "rofi", "wl-clipboard", - "dolphin", + "nautilus", "pasystray", "playerctl", "brightnessctl", @@ -106,6 +112,10 @@ class Installer: self.symlink_map = {"zsh/rc": ".zshrc"} + self.gsettings = [ + ["org.gnome.desktop.interface", "color-scheme", "prefer-dark"] + ] + @staticmethod def _pkg_query_arch(package: str) -> bool: """ @@ -303,6 +313,20 @@ class Installer: except FileNotFoundError: self.error("infocmp command not found") + def set_gsettings(self): + for setting in self.gsettings: + result = subprocess.run( + ["gsettings", "set", *setting], + capture_output=True, + text=True, + check=False, + ) + if result.returncode != 0: + self.error( + f"Failed to set gsettings: {setting}" + ) + + def run( self, force: bool = False, @@ -318,6 +342,7 @@ class Installer: self.check_terminfo() self.create_all_symlinks(force, ignore) self.copy_all_items(force, ignore) + self.set_gsettings() def main() -> None: