@@ -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
|
||||||
|
|
||||||
|
|||||||
15
.config/sway/scripts/import-gsettings
Normal file
15
.config/sway/scripts/import-gsettings
Normal 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"
|
||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user