Created
May 14, 2024 22:42
-
-
Save EduardoRFS/26b22f64f824f3f8ba7974bc97793823 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup dbus | |
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then | |
eval $(dbus-launch --exit-with-session --sh-syntax) | |
fi | |
systemctl --user import-environment DISPLAY XAUTHORITY | |
if command -v dbus-update-activation-environment >/dev/null 2>&1; then | |
dbus-update-activation-environment DISPLAY XAUTHORITY | |
fi | |
# chrome and keyring | |
export DESKTOP_SESSION=xfce | |
# setup keyring | |
eval $(gnome-keyring-daemon --start) | |
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh | |
xrandr --output DisplayPort-0 --mode 5120x1440 -r 240 | |
xrandr --setmonitor DP1L 1280/677x1440/381+0+0 DisplayPort-0 | |
xrandr --setmonitor DP1M 2560/677x1440/381+1280+0 none | |
xrandr --setmonitor DP1R 1280/677x1440/381+3840+0 none | |
pactl load-module module-null-sink sink_name=recsink & | |
pactl load-module module-remap-source master="alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y7W3HY60647F0B-00.Direct__hw_USB__source" source_name="Left Channel" channels=1 channel_map=left master_channel_map=left remix=true & | |
pactl load-module module-loopback source=recsink.monitor sink="alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y7W3HY60647F0B-00.Direct__hw_USB__sink" sink_dont_move=1 source_dont_move=1 & | |
sudo modprobe v4l2loopback card_label="Double Webcam" exclusive_caps=1 | |
# export GTK_IM_MODULE=fcitx | |
# export QT_IM_MODULE=fcitx | |
# export XMODIFIERS=@im=fcitx | |
# fcitx5 -d | |
exec i3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment