diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..b17deee --- /dev/null +++ b/.bash_profile @@ -0,0 +1,16 @@ +# .bash_profile + +# Get the aliases and functions +[ -f $HOME/.bashrc ] && . $HOME/.bashrc + +export _JAVA_AWT_WM_NOREPARENTING=1 + +# SSHAGENT +export SSH_AUTH_SOCK=${HOME}/.ssh/agent +if ! pgrep -u ${USER} ssh-agent > /dev/null; then + rm -f ${SSH_AUTH_SOCK} +fi +if [ ! -S ${SSH_AUTH_SOCK} ]; then + eval $(ssh-agent -a ${SSH_AUTH_SOCK} 2> /dev/null) +fi + diff --git a/.bashrc b/.bashrc index 2ad137d..3d0f913 100644 --- a/.bashrc +++ b/.bashrc @@ -14,6 +14,9 @@ source /etc/profile # PS1 shell color +## simple white ps1 without git +#PS1='\[\e[0m\][\[\e[0m\]\u\[\e[0m\]@\[\e[0m\]\H \[\e[0m\]\W\[\e[0m\]]\[\e[0m\]\$ \[\e[0m\]' + ## based on: https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/ ## get current branch in git repo function parse_git_branch() { @@ -139,6 +142,7 @@ alias la="ls -alh" alias l="ls -CF" alias ld="ls -d -F */" alias lda="ls -l -d -p */" +export HISTCONTROL=ignoredups # fuckin history identical vole ## network @@ -158,7 +162,6 @@ alias speedtest="speedtest-cli" alias "cd.."="cd .." alias df='df -h' # human-readable sizes alias free='free -m' # show sizes in MB -alias ls='exa' ## gpg encryption # verify signature for isos @@ -194,8 +197,9 @@ alias fuck='doas $(history -p \!\!)' alias sudo="doas" ## void xbps aliases -alias xi="doas xbps-install" -alias xq="doas xbps-query -Rs" +#alias xi="doas xbps-install" +alias xi="doas xi" +alias xq="xbps-query -Rs" alias xr="doas xbps-remove" alias xrd="doas xbps-remove -R" # remove all dependencies alias xu="doas xbps-install -Suv" # update @@ -218,9 +222,9 @@ export PATH="$PATH:/var/lib/flatpak/exports/bin" export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin" # autologin on tty1 - if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then - exec startx - fi +# if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then +# exec startx +# fi export $(dbus-launch) diff --git a/.xinitrc b/.xinitrc index 1a8a342..e7d96a6 100644 --- a/.xinitrc +++ b/.xinitrc @@ -7,15 +7,15 @@ feh --bg-center "$HOME/Pictures/bg.png" & -#xautolock -locker slock -detectsleep -secure -time 10 & +xautolock -locker slock -detectsleep -secure -time 10 & -#pipewire & -#pipewire-pulse & +pipewire & +pipewire-pulse & dwmblocks & while true; do - exec dbus-launch --sh-syntax --exit-with-session dwm + dbus-launch --sh-syntax --exit-with-session dwm #exec dwm done diff --git a/.xprofile b/.xprofile index 51d6a72..3ff4d78 100644 --- a/.xprofile +++ b/.xprofile @@ -1,2 +1,5 @@ -gentoo-pipewire-launcher & - +#gentoo-pipewire-launcher & +ssh-agent & +TPADID=$(xinput | grep "Synaptics" | awk '{print $5}' | awk -F "=" '{print $2}') +xinput disable $TPADID +xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" 0.9