diff options
| author | Mehdi Sadeghi <mehdi@mehdix.org> | 2023-03-31 19:18:14 +0200 |
|---|---|---|
| committer | Mehdi Sadeghi <mehdi@mehdix.org> | 2023-04-09 15:52:46 +0200 |
| commit | 45a6e760ebc4438ff05f1a689518e50b4567fe93 (patch) | |
| tree | 68cbff3009c29265fe10bba6fbf34ef496fde6a0 | |
| parent | d47e3f8702458bb73d1f656333eb49ba317cdf2f (diff) | |
Export GOPATH and some cleanup
Moreover, make sure KDE is not running in xinitrc before exec
| -rw-r--r-- | .bashrc | 5 | ||||
| -rw-r--r-- | .config/alacritty/alacritty.yml | 28 | ||||
| -rw-r--r-- | .config/blue032.profile | 0 | ||||
| -rw-r--r-- | .config/electron-flags.conf | 2 | ||||
| -rw-r--r-- | .env | 1 | ||||
| -rw-r--r-- | .gnupg/gpg-agent.conf | 2 | ||||
| -rw-r--r-- | .profile | 3 | ||||
| -rwxr-xr-x | .xinitrc | 2 |
8 files changed, 10 insertions, 33 deletions
@@ -1,6 +1,11 @@ # .bashrc echo .bashrc begin +# Make a history backup since history is lost sometimes +BACKUPS=~/Backups/$(date +%Y)/bash_hist/ +[[ ! -d $BACKUPS ]] && mkdir -p $BACKUPS +cp ~/.bash_history $BACKUPS/$(date +%s) + # Load ENV file (shared with POSIX shell) [ $0 != sh ] && [ -n "${ENV:=$HOME/.env}" ] && . "$ENV" diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml deleted file mode 100644 index c7a6f88..0000000 --- a/.config/alacritty/alacritty.yml +++ /dev/null @@ -1,28 +0,0 @@ -# Colors (iTerm 2 default theme) -colors: - # Default colors - primary: - background: '#101421' - foreground: '#fffbf6' - - # Normal colors - normal: - black: '#2e2e2e' - red: '#eb4129' - green: '#abe047' - yellow: '#f6c744' - blue: '#47a0f3' - magenta: '#7b5cb0' - cyan: '#64dbed' - white: '#e5e9f0' - - # Bright colors - bright: - black: '#565656' - red: '#ec5357' - green: '#c0e17d' - yellow: '#f9da6a' - blue: '#49a4f8' - magenta: '#a47de9' - cyan: '#99faf2' - white: '#ffffff' diff --git a/.config/blue032.profile b/.config/blue032.profile deleted file mode 100644 index e69de29..0000000 --- a/.config/blue032.profile +++ /dev/null diff --git a/.config/electron-flags.conf b/.config/electron-flags.conf deleted file mode 100644 index 51bdd86..0000000 --- a/.config/electron-flags.conf +++ /dev/null @@ -1,2 +0,0 @@ ---enable-features=UseOzonePlatform ---ozone-platform=wayland @@ -52,6 +52,7 @@ PATH=$HOME/.cargo/bin:$PATH GOPATH="$HOME/.local/share/go" PATH=$GOPATH/bin:$PATH export PATH +export GOPATH export LANGUAGE=en export BROWSER=w3m diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf index 23b4c0d..9df3011 100644 --- a/.gnupg/gpg-agent.conf +++ b/.gnupg/gpg-agent.conf @@ -1 +1 @@ -pinentry-program /usr/bin/pinentry-dmenu +#pinentry-program /usr/bin/pinentry-dmenu @@ -7,7 +7,8 @@ export LANGUAGE=en export LC_ALL=en_US.UTF-8 export EDITOR=vim -export GDK_BACKEND=wayland +# Try wayland for GTK apps first, allow x11 fallback +export GDK_BACKEND=wayland,x11 export MAKEFLAGS=-j`lscpu | grep '^CPU(s):' | awk -F' ' '{ print $2 }'` export CFLAGS="-O2 -pipe -march=native" @@ -3,6 +3,6 @@ case $(tty | cut -b9-) in (2) exec xfce4-session;; (4) exec i3;; (5) exec openbox-session;; - (6) export DESKTOP_SESSION=plasma; exec startplasma-x11;; + (6) [ "$DESKTOP_SESSION" = plasma ] && (export DESKTOP_SESSION=plasma; exec startplasma-x11);; (7) exec openbox-session;; esac |
