From 4baf5cdfd43049aedbf792ac879f400be522d825 Mon Sep 17 00:00:00 2001 From: surdeus Date: Wed, 24 Jul 2024 00:28:00 +0500 Subject: [PATCH] ... --- river/init | 29 ++++++++++++++++++----------- wayst/config | 13 +++++++------ 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/river/init b/river/init index 3d8e2fd..5286464 100755 --- a/river/init +++ b/river/init @@ -170,11 +170,19 @@ riverctl map normal Super A spawn "riverctl keyboard-layout 'us'" riverctl map normal Super Return spawn "riverctl keyboard-layout 'us(dvp)'" riverctl map normal Super Backspace spawn "riverctl keyboard-layout 'ru'" -riverctl map normal Super+Alt R spawn "RIVER_RELOAD=1 $XDG_CONFIG_HOME/river/init" +riverctl map normal Super+Alt R spawn "RIVER_RELOAD=1 $XDG_CONFIG_HOME/river/init && $XNOTIFY 'Reloaded the River configuration'" # Run appications. riverctl map normal Super+Shift R spawn "$XRUNNER" +# $XNOTIFY "`riverctl rule-add -title 'Choose an image' fullscreen csd 2>&1`" +# $XNOTIFY "`riverctl rule-add -title 'Save Image' fullscreen csd 2>&1`" + +riverctl rule-add -title 'Choose an image' float +riverctl rule-add -title 'Save Image' float +#riverctl rule-add -title 'Choose an image' +#riverctl rule-add -title 'Save Image' + # Make all views with an app-id that starts with "float" and title "foo" start floating. riverctl rule-add -app-id 'float*' -title 'foo' float @@ -195,6 +203,9 @@ riverctl map normal Super+Shift S spawn "eval $XDISPLAY_REGION_SCREENSHOT" # Only first time, no reloading. if test -z "$RIVER_RELOAD" ; then + export QT_QPA_PLATFORM=wayland + #export QT_QPA_PLATFORM=xcb + export XDG_CURRENT_DESKTOP=sway eval wl-paste -t text --watch $XCLIPBOARD_MANAGER & eval rivertile -view-padding 0 -outer-padding 0 & eval $XPUSH_NOTIFICATION_DAEMON & @@ -206,18 +217,14 @@ if test -z "$RIVER_RELOAD" ; then eval $XTERMINAL & eval $XTERMINAL & eval $XTERMINAL & + dbus-update-activation-environment --systemd \ + WAYLAND_DISPLAY \ + XDG_CURRENT_DESKTOP=river + XWIRE_DAEMON=wireplumber + systemctl --user stop pipewire "$XWIRE_DAEMON" xdg-desktop-portal xdg-desktop-portal-wlr + systemctl --user start "$XWIRE_DAEMON" fi -export QT_QPA_PLATFORM=wayland -#export QT_QPA_PLATFORM=xcb -export XDG_CURRENT_DESKTOP=sway -dbus-update-activation-environment --systemd \ - WAYLAND_DISPLAY \ - XDG_CURRENT_DESKTOP=river - -XWIRE_DAEMON=wireplumber -systemctl --user stop pipewire "$XWIRE_DAEMON" xdg-desktop-portal xdg-desktop-portal-wlr -systemctl --user start "$XWIRE_DAEMON" diff --git a/wayst/config b/wayst/config index 4929007..b8e6bef 100644 --- a/wayst/config +++ b/wayst/config @@ -26,21 +26,22 @@ ## # Mixing ttf/otf with bitmap fonts is ok. ## # You can set an offset to keep fonts smaller/larger than the global size. ## "Terminus:-3" +## ## ] ## ## default: # -#font = Monospace +font = Monospace ## A list of fonts used for non-color symbols (only the Regular style is loaded) # -#font-symbol = [ -# "FontAwesome", -# "PowerlineSymbols" -#] +font-symbol = [ + "FontAwesome", + "PowerlineSymbols" +] ## A list of fonts used for color symbols (only the Regular style is loaded) -#font-color = "Noto Color Emoji" +font-color = "Noto Color Emoji" ## Point size font-size = 11