aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/share/dark-mode.d/gtk-theme.sh8
-rwxr-xr-x.local/share/dark-mode.d/qt-theme.sh3
-rwxr-xr-x.local/share/light-mode.d/gtk-theme.sh8
-rwxr-xr-x.local/share/light-mode.d/qt-theme.sh3
-rwxr-xr-xbin/autostart1
-rwxr-xr-xbin/startsway2
-rwxr-xr-xscripts/bootstrap.sh5
7 files changed, 28 insertions, 2 deletions
diff --git a/.local/share/dark-mode.d/gtk-theme.sh b/.local/share/dark-mode.d/gtk-theme.sh
new file mode 100755
index 0000000..8fd9485
--- /dev/null
+++ b/.local/share/dark-mode.d/gtk-theme.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+gnome_schema='org.gnome.desktop.interface'
+gtk_theme='Adwaita-dark'
+
+gsettings set $gnome_schema gtk-theme $gtk_theme
+gsettings set $gnome_schema icon-theme $gtk_theme
+gsettings set $gnome_schema cursor-theme $gtk_theme
diff --git a/.local/share/dark-mode.d/qt-theme.sh b/.local/share/dark-mode.d/qt-theme.sh
new file mode 100755
index 0000000..e87c685
--- /dev/null
+++ b/.local/share/dark-mode.d/qt-theme.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+sed -i 's/^style=Adwaita$/style=Adwaita-Dark/' $HOME/.config/qt5ct/qt5ct.conf
diff --git a/.local/share/light-mode.d/gtk-theme.sh b/.local/share/light-mode.d/gtk-theme.sh
new file mode 100755
index 0000000..8a34e2e
--- /dev/null
+++ b/.local/share/light-mode.d/gtk-theme.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+gnome_schema='org.gnome.desktop.interface'
+gtk_theme='Adwaita'
+
+gsettings set $gnome_schema gtk-theme $gtk_theme
+gsettings set $gnome_schema icon-theme $gtk_theme
+gsettings set $gnome_schema cursor-theme $gtk_theme
diff --git a/.local/share/light-mode.d/qt-theme.sh b/.local/share/light-mode.d/qt-theme.sh
new file mode 100755
index 0000000..a28f5cd
--- /dev/null
+++ b/.local/share/light-mode.d/qt-theme.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+sed -i 's/^style=Adwaita-Dark$/style=Adwaita/' $HOME/.config/qt5ct/qt5ct.conf
diff --git a/bin/autostart b/bin/autostart
index da20f01..fa6b069 100755
--- a/bin/autostart
+++ b/bin/autostart
@@ -14,6 +14,7 @@ run_if_exists clipmenud
run_if_exists lxqt-policykit-agent
run_if_exists /usr/lib/kdeconnectd
run_if_exists kdeconnect-indicator
+run_if_exists /usr/lib/geoclue-2.0/demos/agent
if [ "$XDG_SESSION_TYPE" = x11 ]; then
run_if_exists "$HOME/.fehbg"
diff --git a/bin/startsway b/bin/startsway
index b6c9e98..e695763 100755
--- a/bin/startsway
+++ b/bin/startsway
@@ -4,5 +4,7 @@ export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
export WLR_RENDER=vulkan
export MOZ_ENABLE_WAYLAND=1
+export QT_QPA_PLATFORM=wayland
+export QT_QPA_PLATFORMTHEME=qt5ct
exec sway > ~/.sway.log
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 162c854..89d267e 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -2,7 +2,7 @@
dotfiles_dir=$(cd -- "$(dirname ${BASH_SOURCE})/.." > /dev/null 2>&1; pwd -P)
-mkdir -p "$HOME/.config"
+mkdir -p "$HOME/.config" "$HOME/.local/share"
remove_and_link () {
for var in $@
@@ -23,7 +23,8 @@ link_all () {
.vimrc .vim .path .functions .emacs.d .gitconfig \
.config/i3 .config/polybar .xinitrc .pam_environment \
.zprofile .newsboat .ledgerrc .nnnrc .alacritty.yml .fzfrc .zplugrc \
- .env .zrc .config/kitty .wezterm.lua .config/mpv
+ .env .zrc .config/kitty .wezterm.lua .config/mpv \
+ .local/share/light-mode.d .local/share/dark-mode.d
}
main () {