river: put XKB env var in the config

This commit is contained in:
FollieHiyuki 2021-07-25 02:15:15 +03:00
parent e7f660d8db
commit d74ad42b84
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
2 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
export XKB_DEFAULT_LAYOUT="us,jp"
export XKB_DEFAULT_OPTIONS="grp:rshift_toggle"
# Output configuration ───────────────────────────────────────────────────────── # Output configuration ─────────────────────────────────────────────────────────
riverctl spawn 'wlr-randr --output DP-2 --mode 1920x1080@60.000000Hz --pos -1920,0 --transform normal --scale 1.000000 --output eDP-1 --mode 1920x1080@60.000000Hz --pos 0,0 --transform normal --scale 1.000000 --output HDMI-A-1 --mode 1920x1080@60.000000Hz --pos 1920,0 --transform normal --scale 1.000000' riverctl spawn 'wlr-randr --output DP-2 --mode 1920x1080@60.000000Hz --pos -1920,0 --transform normal --scale 1.000000 --output eDP-1 --mode 1920x1080@60.000000Hz --pos 0,0 --transform normal --scale 1.000000 --output HDMI-A-1 --mode 1920x1080@60.000000Hz --pos 1920,0 --transform normal --scale 1.000000'

View File

@ -29,13 +29,6 @@ export MOZ_ENABLE_WAYLAND=1
export PATH=$HOME/.local/bin/Wayland:$PATH export PATH=$HOME/.local/bin/Wayland:$PATH
# river configures xkb through env vars
if [ "$1" = "river" ]
then
export XKB_DEFAULT_LAYOUT="us,jp"
export XKB_DEFAULT_OPTIONS="grp:rshift_toggle"
fi
export XDG_CURRENT_DESKTOP="$1" export XDG_CURRENT_DESKTOP="$1"
# $HOME/.config/emacs-config/doom/bin/doom env # $HOME/.config/emacs-config/doom/bin/doom env
exec dbus-run-session "$@" > "${XDG_RUNTIME_DIR}/$1-$(date "+%Y-%m-%d").log" 2>&1 exec dbus-run-session "$@" > "${XDG_RUNTIME_DIR}/$1-$(date "+%Y-%m-%d").log" 2>&1