diff options
author | Freya Murphy <freya@freyacat.org> | 2024-07-29 14:04:55 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-07-29 14:04:55 -0400 |
commit | d3d096293641bf11d9593070b21274f50fbad2ac (patch) | |
tree | 077f89c4e00e1831bcba53a07dcf955eef394634 /.zprofile | |
parent | minor changes (diff) | |
download | dotfiles-arch-d3d096293641bf11d9593070b21274f50fbad2ac.tar.gz dotfiles-arch-d3d096293641bf11d9593070b21274f50fbad2ac.tar.bz2 dotfiles-arch-d3d096293641bf11d9593070b21274f50fbad2ac.zip |
changes
Diffstat (limited to '.zprofile')
-rw-r--r-- | .zprofile | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -12,7 +12,7 @@ export SDL_VIDEODRIVER=wayland export CLUTTER_BACKEND=wayland export ELM_DISPLAY=wl export QT_AUTO_SCREEN_SCALE_FACTOR=1 -export QT_QPA_PLATFORM=wayland;xcb +export QT_QPA_PLATFORM="wayland;xcb" export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 # xdg @@ -33,10 +33,15 @@ export LD=$(which gcc) # theming export QT_QPA_PLATFORMTHEME=gtk2 -export GTK_THEME=Mint-Y-Dark-Pink +export GTK_THEME=Mint-Y-Dark-Teal export XCURSOR_THEME=Adwaita export XCURSOR_SIZE=24 +# nvidia +export LIBVA_DRIVER_NAME=nvidia +export GBM_BACKEND=nvidia-drm +export __GLX_VENDOR_LIBRARY_NAME=nvidia + if [ -n "$TMUX" ]; then return fi @@ -51,16 +56,18 @@ while true; do stty raw -echo choice=$(dd bs=1 count=1 2> /dev/null) stty -raw echo + launch() { + mkdir -p "$HOME/.log" + echo "Launching $1..." + export XDG_CURRENT_DESKTOP="$1" + exec dbus-run-session "$1" &> "$HOME/.log/$1" + } case "$choice" in "s") - echo "Launching sway..." - export XDG_CURRENT_DESKTOP=sway - exec dbus-run-session sway &> $HOME/.log/sway + launch sway ;; "h") - echo "Launching Hyprland..." - export XDG_CURRENT_DESKTOP=Hyprland - exec dbus-run-session Hyprland &> $HOME/.log/Hyprland + launch Hyprland ;; "t") exec cage -s kitty -- -o font_size=14 &> $HOME/.log/kitty |