diff --git a/config/x11/xinitrc b/config/x11/xinitrc new file mode 100644 index 0000000..5be41e5 --- /dev/null +++ b/config/x11/xinitrc @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +. "${XDG_CONFIG_HOME}/x11/xprofile" + +ssh-agent i3 diff --git a/config/x11/xprofile b/config/x11/xprofile new file mode 100644 index 0000000..df6725d --- /dev/null +++ b/config/x11/xprofile @@ -0,0 +1,17 @@ +#!/bin/sh + + +xrandr --dpi 80 # set dpi +xrdb ${XDG_CONFIG_HOME/.config}/x11/Xresources & xrdbpid=$! + +autostart="mpd dunst nm-applet redshift-gtk picom" + +for program in $autostart; do + pidof -s "$program" || "$program" & +done >/dev/null 2>&1 + +snixembed --fork +setxkbmap pl & + +# Ensure that xrdb has finished running before moving on to start the WM/DE. +[ -n "$xrdbpid" ] && wait "$xrdbpid" diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 3289ea7..8985573 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -23,5 +23,11 @@ bindkey '^[[B' history-substring-search-down # or '\eOB' HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1 -alias lf='lfrun' -alias ls='ls --color' + +alias l='ls -lah' +alias la='ls -lAh' +alias ll='ls -lh' +alias ls='ls --color=tty' +alias lsa='ls -lah' + +alias gst='git status' diff --git a/install.sh b/install.sh index 45a6b92..f203d73 100755 --- a/install.sh +++ b/install.sh @@ -9,4 +9,5 @@ ln --force --symbolic $BASEDIR/.zshenv $HOME/.zshenv mkdir -p "${XDG_CONFIG_HOME}" mkdir -p "${XDG_DATA_HOME}" +ln --force --symbolic --no-dereference $BASEDIR/config/x11/ "${XDG_CONFIG_HOME}/x11" ln --force --symbolic --no-dereference $BASEDIR/config/zsh/ "${XDG_CONFIG_HOME}/zsh"