From 0df5fd86443549d0d1dcabb78b50b1397ac608a2 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Fri, 24 Oct 2025 00:47:46 +0200 Subject: [PATCH] nwg-look --- config/fish/apply-color-nwg-look | 15 +++++++++++++++ config/niri/config.kdl | 2 +- .../quickshell/Modules/Panel/BluetoothPanel.qml | 1 - config/quickshell/Modules/Panel/WiFiPanel.qml | 1 - scripts/change-colortheme | 1 + 5 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 config/fish/apply-color-nwg-look diff --git a/config/fish/apply-color-nwg-look b/config/fish/apply-color-nwg-look new file mode 100755 index 0000000..1768109 --- /dev/null +++ b/config/fish/apply-color-nwg-look @@ -0,0 +1,15 @@ +#!/bin/bash + +path=$(dirname "$(readlink -f "$0")") +. "$path"/../../utils/apply-color-helper + +file="$HOME/.local/share/nwg-look/gsettings" + +sed -i -E "s/^(gtk-theme=catppuccin-mocha-)[^-]+(-standard\+default)$/\1${colorName}\2/" "$file" || { + log_error "Failed to edit ${file}" + exit 1 +} + +nwg-look -a -x + +log_success "nwg-look" \ No newline at end of file diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 3d43d20..51bb333 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -291,7 +291,7 @@ screenshot-path "~/Pictures/Screenshots/.niri_screenshot.png" binds { // Apps Mod+C { spawn-sh "code --password-store=gnome-libsecret"; } - Mod+E { spawn "dolphin"; } + Mod+E { spawn-sh "nautilus --new-window"; } Mod+W { spawn "zen"; } Mod+X { spawn "gnome-text-editor" "--new-window"; } Mod+B { spawn-sh "pkill -x -n btop || ghostty -e btop"; } diff --git a/config/quickshell/Modules/Panel/BluetoothPanel.qml b/config/quickshell/Modules/Panel/BluetoothPanel.qml index 466cddc..39722b3 100644 --- a/config/quickshell/Modules/Panel/BluetoothPanel.qml +++ b/config/quickshell/Modules/Panel/BluetoothPanel.qml @@ -14,7 +14,6 @@ NPanel { preferredWidth: 380 preferredHeight: 500 - panelKeyboardFocus: true panelContent: Rectangle { color: Color.transparent diff --git a/config/quickshell/Modules/Panel/WiFiPanel.qml b/config/quickshell/Modules/Panel/WiFiPanel.qml index fa73fb2..ebf7a8e 100644 --- a/config/quickshell/Modules/Panel/WiFiPanel.qml +++ b/config/quickshell/Modules/Panel/WiFiPanel.qml @@ -17,7 +17,6 @@ NPanel { preferredWidth: 400 preferredHeight: 500 - panelKeyboardFocus: true onOpened: NetworkService.scan() panelContent: Rectangle { diff --git a/scripts/change-colortheme b/scripts/change-colortheme index e71578d..84604d6 100755 --- a/scripts/change-colortheme +++ b/scripts/change-colortheme @@ -34,6 +34,7 @@ SCRIPTS = { "fuzzel": [CONFIG_DIR / "fuzzel" / "apply-color"], "hypr": [CONFIG_DIR / "hypr" / "apply-color"], "kvantum": [CONFIG_DIR / "fish" / "apply-color-kvantum"], # borrowing fish's directory + "nwg-look": [CONFIG_DIR / "fish" / "apply-color-nwg-look"], # borrowing fish's directory "mako": [CONFIG_DIR / "mako" / "apply-color"], "niri": [CONFIG_DIR / "niri" / "apply-color"], "oh-my-posh": [CONFIG_DIR / "fish" / "apply-color-omp"], # borrowing fish's directory