65 lines
1.6 KiB
Bash
65 lines
1.6 KiB
Bash
#!/bin/sh
|
|
|
|
# Interactive mode only
|
|
case $- in
|
|
*i*) ;;
|
|
*) return;;
|
|
esac
|
|
|
|
# Export all vars
|
|
set -o allexport
|
|
|
|
# Sway
|
|
XDG_SESSION_TYPE=wayland
|
|
XDG_SESSION_DESKTOP=sway
|
|
XDG_CURRENT_DESKTOP=sway
|
|
DESKTOP_SESSION=sway
|
|
XKB_DEFAULT_LAYOUT=es
|
|
LIBSEAT_BACKEND=seatd
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
QT_QPA_PLATFORM=wayland
|
|
MOZ_ENABLE_WAYLAND=1
|
|
CLUTTER_BACKEND=wayland
|
|
SDL_VIDEODRIVER=wayland
|
|
SDL_AUDIODRIVER=alsa
|
|
WLR_DRM_DEVICES=/dev/dri/card0
|
|
OZONE_PLATFORM=wayland
|
|
WLR_NO_HARDWARE_CURSORS=1
|
|
|
|
# Defaults
|
|
GTK_THEME=Adwaita:dark
|
|
PATH="$HOME/.local/bin:/sbin:/usr/sbin:$PATH"
|
|
LANG="es_ES.UTF-8"
|
|
PAGER="less"
|
|
EDITOR="vim"
|
|
TERM="foot"
|
|
VISUAL="$EDITOR"
|
|
BROWSER="firefox"
|
|
READER="zathura"
|
|
IMAGEVIEWER="nsxiv"
|
|
FILE="nnn"
|
|
#XZ_DEFAULTS="-T0"
|
|
#APULSE_CAPTURE_DEVICE="plughw:0,0"
|
|
#APULSE_PLAYBACK_DEVICE="plughw:0,0"
|
|
#ENV="$HOME/.kshrc"
|
|
|
|
|
|
# NNN env vars
|
|
NNN_OPENER="xdg-open"
|
|
NNN_FALLBACK_OPENER="xdg-open" # File opener
|
|
NNN_OPTS="deU" # NNN options
|
|
NNN_BMS="v:~/Venom" # Bookmarks
|
|
NNN_PLUG="n:nuke;p:preview-tabbed" # Plugins
|
|
NNN_USE_EDITOR=1 # Use $EDITOR on open text files
|
|
NNN_COLORS="7777" # Colors for tabs
|
|
NNN_TRASH=2 # Move files to trash
|
|
NNN_READER="zathura" # Documents reader
|
|
NNN_FIFO=/tmp/nnn.fifo # Preview pluggin
|
|
|
|
# XDG_RUNTIME_DIR
|
|
unset XDG_RUNTIME_DIR
|
|
XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
|
|
|
|
# Autologin en TTY1
|
|
[ "$(tty)" = "/dev/tty1" ] && exec sway
|