This commit is contained in:
Andrey Parhomenko 2024-07-24 00:28:00 +05:00
parent 97e24e19fa
commit 4baf5cdfd4
2 changed files with 25 additions and 17 deletions

View file

@ -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 Return spawn "riverctl keyboard-layout 'us(dvp)'"
riverctl map normal Super Backspace spawn "riverctl keyboard-layout 'ru'" 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. # Run appications.
riverctl map normal Super+Shift R spawn "$XRUNNER" 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. # 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 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. # Only first time, no reloading.
if test -z "$RIVER_RELOAD" ; then 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 wl-paste -t text --watch $XCLIPBOARD_MANAGER &
eval rivertile -view-padding 0 -outer-padding 0 & eval rivertile -view-padding 0 -outer-padding 0 &
eval $XPUSH_NOTIFICATION_DAEMON & eval $XPUSH_NOTIFICATION_DAEMON &
@ -206,18 +217,14 @@ if test -z "$RIVER_RELOAD" ; then
eval $XTERMINAL & eval $XTERMINAL &
eval $XTERMINAL & eval $XTERMINAL &
eval $XTERMINAL & eval $XTERMINAL &
dbus-update-activation-environment --systemd \
fi
export QT_QPA_PLATFORM=wayland
#export QT_QPA_PLATFORM=xcb
export XDG_CURRENT_DESKTOP=sway
dbus-update-activation-environment --systemd \
WAYLAND_DISPLAY \ WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP=river XDG_CURRENT_DESKTOP=river
XWIRE_DAEMON=wireplumber XWIRE_DAEMON=wireplumber
systemctl --user stop pipewire "$XWIRE_DAEMON" xdg-desktop-portal xdg-desktop-portal-wlr systemctl --user stop pipewire "$XWIRE_DAEMON" xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start "$XWIRE_DAEMON" systemctl --user start "$XWIRE_DAEMON"
fi

View file

@ -26,21 +26,22 @@
## # Mixing ttf/otf with bitmap fonts is ok. ## # Mixing ttf/otf with bitmap fonts is ok.
## # You can set an offset to keep fonts smaller/larger than the global size. ## # You can set an offset to keep fonts smaller/larger than the global size.
## "Terminus:-3" ## "Terminus:-3"
##
## ] ## ]
## ##
## default: ## default:
# #
#font = Monospace font = Monospace
## A list of fonts used for non-color symbols (only the Regular style is loaded) ## A list of fonts used for non-color symbols (only the Regular style is loaded)
# #
#font-symbol = [ font-symbol = [
# "FontAwesome", "FontAwesome",
# "PowerlineSymbols" "PowerlineSymbols"
#] ]
## A list of fonts used for color symbols (only the Regular style is loaded) ## 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 ## Point size
font-size = 11 font-size = 11