Skip to content

Commit

Permalink
Merge pull request #16 from openSUSE/gtk_qt_theme
Browse files Browse the repository at this point in the history
adding GTK and QT themes
  • Loading branch information
denisok authored Jul 20, 2020
2 parents f7e6986 + 9004066 commit 70b35df
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .config/sway/config.d/50-openSUSE.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ client.focused #6da741 #173f4f #73ba25
client.unfocused #00a489 #173f4f #35b9ab
client.focused_inactive #6da741 #00a489 #173f4f

exec "systemctl --user import-environment; systemctl --user start sway-session.target"
exec_always {
systemctl --user import-environment
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface icon-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita-dark'
}
9 changes: 9 additions & 0 deletions .config/sway/env
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# recomended enviroment variables for sway based desktop
# openSUSEway installs/imports this to/from:
# /usr/lib/environment.d/50-openSUSE.conf
# /etc/profile.d/openSUSEway.sh
MOZ_ENABLE_WAYLAND=1
QT_QPA_PLATFORM=wayland-egl
CLUTTER_BACKEND=wayland
Expand All @@ -6,3 +10,8 @@ ELM_ENGINE=wayland_egl
SDL_VIDEODRIVER=wayland
_JAVA_AWT_WM_NONREPARENTING=1
NO_AT_BRIDGE=1

# these vars enforce qt theme for openSUSEway
# needs qt5ct and adwaita-qt5 packages
QT_STYLE_OVERRIDE=adwaita-dark
QT_QPA_PLATFORMTHEME=qt5ct
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ Please check [Manage-dotfiles-with-Git](https://news.opensuse.org/2020/03/27/Man

For this config please install these packages:
```
sudo zypper in patterns-sway-sway fontawesome-fonts fontawesome-fonts-web pavucontrol brightnessctl pulseaudio pulseaudio-utils jq
sudo zypper in openSUSEway
```

`wofi` is an other application launcher option, if that isn't in Factory or repos, it is in the development project [X11:Wayland wofi](https://build.opensuse.org/package/show/X11:Wayland/wofi):
```
sudo zypper in wofi
```
openSUSEway imports some recomended (optional) variables from `/etc/sway/env`, that is done by `/etc/profile.d/openSUSEway.sh` for text mode and by `/usr/lib/environment.d/50-openSUSE.conf` for systemd graphic environments.

[Sway openSUSE wiki page](https://en.opensuse.org/Sway) for more details.


Another dotfiles examples:
* https://github.com/jjquin/swayarch
* https://github.com/jjquin/dotfiles
5 changes: 5 additions & 0 deletions openSUSEway.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# this file imports openSUSEway desktop enviroments
# should end up im /etc/profile.d/
set -a
. /etc/sway/env
set +a

0 comments on commit 70b35df

Please sign in to comment.