From fdfd25491cf71350c822532989cff70452af93ff Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Tue, 23 Jan 2024 17:11:47 +0100 Subject: [PATCH] Updates --- .version/version | 2 +- CHANGELOG | 9 +++++++++ README.md | 6 +++--- gtk/gtk.sh | 17 ++++++++++++++++- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.version/version b/.version/version index 8006072..c2567dc 100644 --- a/.version/version +++ b/.version/version @@ -1 +1 @@ -272 \ No newline at end of file +280 \ No newline at end of file diff --git a/CHANGELOG b/CHANGELOG index 1bdbc94..77e5656 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,12 @@ +Version 2.8 +https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8 +-------------------------------------------------------- +Hyprland: +- New Welcome app based on GTK4. Can be launched with the icon on waybar +- nwg-look to define a custom GTK Theme +- Updated waybar starter theme +- New waybar idle-inhibator icon + Version 2.7.2 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.7.2 -------------------------------------------------------- diff --git a/README.md b/README.md index b529385..9dad501 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ML4W dotfiles 2.7.2 +# ML4W dotfiles 2.8RC1 This is my configuration of Hyprland (Wayland) and Qtile (X11) for Arch Linux based distributions. This package includes an installation script to install and setup the required components. @@ -70,7 +70,7 @@ cd dotfiles cd ~/Downloads # 2.) Unzip -git clone --branch 2.7.1 https://gitlab.com/stephan-raabe/dotfiles.git +git clone --branch 2.7.2 https://gitlab.com/stephan-raabe/dotfiles.git # 3.) Change into the new dotfiles folder cd dotfiles @@ -90,7 +90,7 @@ cd ~/Downloads/dotfiles # git checkout origin/main # Switch to other version -# git checkout 2.7.1 +# git checkout 2.7.2 # 2.) Pull the latest version and update the repository git stash; git pull diff --git a/gtk/gtk.sh b/gtk/gtk.sh index 62c7d61..84105f4 100755 --- a/gtk/gtk.sh +++ b/gtk/gtk.sh @@ -1,2 +1,17 @@ #!/bin/bash -gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' +# Source: https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland + +config="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0/settings.ini" +if [ ! -f "$config" ]; then exit 1; fi + +gnome_schema="org.gnome.desktop.interface" +gtk_theme="$(grep 'gtk-theme-name' "$config" | sed 's/.*\s*=\s*//')" +icon_theme="$(grep 'gtk-icon-theme-name' "$config" | sed 's/.*\s*=\s*//')" +cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | sed 's/.*\s*=\s*//')" +font_name="$(grep 'gtk-font-name' "$config" | sed 's/.*\s*=\s*//')" + +gsettings set "$gnome_schema" gtk-theme "$gtk_theme" +gsettings set "$gnome_schema" icon-theme "$icon_theme" +gsettings set "$gnome_schema" cursor-theme "$cursor_theme" +gsettings set "$gnome_schema" font-name "$font_name" +gsettings set "$gnome_schema" color-scheme "prefer-dark"