diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2026-05-03 10:37:41 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2026-05-03 10:37:41 -0400 |
| commit | be002f4d0294f706a4a43925caea84379670f93b (patch) | |
| tree | ee1cf77bbf3046e19f3c9b1602c05a8513fdcb63 /scripts | |
| parent | c1a8b42fa8b439250b92efad483dc5a014dec164 (diff) | |
added sway. a whole bunch of changes.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/change_wallpaper | 6 | ||||
| -rwxr-xr-x | scripts/import-gsettings | 18 | ||||
| -rwxr-xr-x | scripts/passmenu-otp | 3 |
3 files changed, 25 insertions, 2 deletions
diff --git a/scripts/change_wallpaper b/scripts/change_wallpaper index 11bf82c..64aa9b5 100755 --- a/scripts/change_wallpaper +++ b/scripts/change_wallpaper @@ -8,5 +8,9 @@ wallpaper=$(ls "$wallpaper_dir" | dmenu -p "Wallpaper: " -i -l 16) cd ~/pictures rm -f wallpaper ln -s "wallpapers/$wallpaper" wallpaper -xwallpaper --zoom ~/pictures/wallpaper & +if [ -z "WAYLAND_DISPLAY" ]; then + xwallpaper --zoom ~/pictures/wallpaper & +else + swaymsg 'output * background ~/pictures/wallpaper fill' +fi cd - > /dev/null diff --git a/scripts/import-gsettings b/scripts/import-gsettings new file mode 100755 index 0000000..ab594ba --- /dev/null +++ b/scripts/import-gsettings @@ -0,0 +1,18 @@ +#!/bin/sh + +# for wayland gtk settings +# 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" diff --git a/scripts/passmenu-otp b/scripts/passmenu-otp index 379fd8f..fce09be 100755 --- a/scripts/passmenu-otp +++ b/scripts/passmenu-otp @@ -14,7 +14,8 @@ password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]%.gpg}" ) # dmenu_cmd="wofi_style --show dmenu $@" -dmenu_cmd="dmenu -l 12 -i $@" +# dmenu_cmd="dmenu -l 12 -i $@" +dmenu_cmd="fuzzel --dmenu -l 12 $@" password=$(printf '%s\n' "${password_files[@]}" | $dmenu_cmd) [[ -n $password ]] || exit |
