desktop-nixos/.xsession

91 lines
2.2 KiB
Bash
Executable File

#!/bin/sh
LC_ALL="en_US.utf8"
LC_COLLATE="C"
LC_ADDRESS="de_DE.UTF-8"
LC_CTYPE="en_US.utf8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_MESSAGES="en_US.utf8"
LC_MONETARY="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
PAPERSIZE="A4"
LANGUAGE="en_US"
LANG="en_US.utf8"
export LC_ALL="en_US.utf8"
export LC_COLLATE="C"
export LC_ADDRESS="de_DE.UTF-8"
export LC_CTYPE="en_US.utf8"
export LC_IDENTIFICATION="de_DE.UTF-8"
export LC_MEASUREMENT="de_DE.UTF-8"
export LC_MESSAGES="en_US.utf8"
export LC_MONETARY="de_DE.UTF-8"
export LC_NAME="de_DE.UTF-8"
export LC_NUMERIC="de_DE.UTF-8"
export LC_PAPER="de_DE.UTF-8"
export LC_TELEPHONE="de_DE.UTF-8"
export LC_TIME="de_DE.UTF-8"
export PAPERSIZE="A4"
export LANGUAGE="en_US"
export LANG="en_US.utf8"
# keyboard settings
setxkbmap -option caps:none
setxkbmap -option altwin:swap_alt_win
setxkbmap -option lv3:ralt_switch
setxkbmap us -variant mac
numlockx off
xset b off
xset -dpms
xmodmap "$HOME/Cfg/.Xmodmap"
# export SHELL=`which zsh`
# export HOME="$HOME"
export LANG='en_US.UTF-8'
export ARCHFLAGS='-arch x86_64'
export XDG_DESKTOP_DIR="/_"
export XDG_DOWNLOAD_DIR="/_"
export XDG_TEMPLATES_DIR="/_"
export XDG_PUBLICSHARE_DIR="/_"
export XDG_DOCUMENTS_DIR="/_"
export XDG_PICTURES_DIR="/_"
export XDG_MUSIC_DIR="/Music"
export XDG_VIDEOS_DIR="/Data/Video"
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export GTK2_RC_FILES="$HOME/.config/gtkrc-2.0"
export QT_QPA_PLATFORMTHEME="gtk2"
# export QT_SCREEN_SCALE_FACTORS=1.5
# export QT_SCALE_FACTOR=1.5
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export TERMINAL=`which alacritty`
export EDITOR=`which subl`
export PATH="/Apps:/usr/sbin:/usr/bin:$HOME/.local/bin:$HOME/.nix-profile/bin:/usr/bin:/usr/local/bin:$HOME/.deno/bin:$HOME/.bun/bin:$PATH"
export XDG_CONFIG_HOME="$HOME/.config"
export NIXPKGS_ALLOW_UNFREE=1
export NIXPKGS_ALLOW_INSECURE=1
. "$HOME/.cargo/env"
# start-apps
imwheel 2>&1 &
nfancurve 2>&1 &
copyq 2>&1 &
sshfs self-site:/ ~/Servers/self-site -C 2>&1 &
# xrandr --output DP-0 --scale 1x1 --fb 3840x2160 --mode 3840x2160 --pos 0x0
# xrandr --output HDMI-0 --scale 1x1 --mode 1920x1080 --pos 3840x0