Merge pull request #5 from killajoe/main

as reported on Forum
This commit is contained in:
morten-b
2021-01-19 21:51:41 +01:00
committed by GitHub
3 changed files with 23 additions and 5 deletions

View File

@@ -10,6 +10,9 @@ input * xkb_layout "gb"
#input * xkb_layout "de" #input * xkb_layout "de"
#input * xkb_layout "nl" #input * xkb_layout "nl"
# apply gtk theming
exec_always ~/.config/sway/scripts/import-gsettings
#Default Terminal Emulator #Default Terminal Emulator
set $term alacritty set $term alacritty

View File

@@ -0,0 +1,15 @@
#!/bin/sh
# usage: import-gsettings
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" | cut -d'=' -f2)"
icon_theme="$(grep 'gtk-icon-theme-name' "$config" | cut -d'=' -f2)"
cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | cut -d'=' -f2)"
font_name="$(grep 'gtk-font-name' "$config" | cut -d'=' -f2)"
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"

View File

@@ -145,7 +145,7 @@
"disable-scroll": true, "disable-scroll": true,
"format": "{icon} {name}", "format": "{icon} {name}",
"format-icons": { "format-icons": {
"1:www": "", // Icon: firefox-browser "1:www": "", // Icon: firefox-browser
"2:mail": "", // Icon: mail "2:mail": "", // Icon: mail
"3:editor": "", // Icon: code "3:editor": "", // Icon: code
"4:terminals": "", // Icon: terminal "4:terminals": "", // Icon: terminal
@@ -203,22 +203,22 @@
"tooltip": false "tooltip": false
}, },
"custom/firefox": { "custom/firefox": {
"format": "browser ", "format": " Firefox",
"on-click": "exec firefox", "on-click": "exec firefox",
"tooltip": false "tooltip": false
}, },
"custom/terminal": { "custom/terminal": {
"format": "terminal", "format": " Terminal",
"on-click": "exec alacritty", "on-click": "exec alacritty",
"tooltip": false "tooltip": false
}, },
"custom/files": { "custom/files": {
"format": "files", "format": " Files",
"on-click": "thunar", "on-click": "thunar",
"tooltip": false "tooltip": false
}, },
"custom/seperator": { "custom/seperator": {
"format": "|", "format": " ",
}, },
"custom/launcher": { "custom/launcher": {