]> Freerunner's - dotfiles.git/commitdiff
bash/fish: update config
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 26 Feb 2024 10:27:21 +0000 (11:27 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
config/fish/functions/wtemp.fish [new file with mode: 0644]
home/.bash_profile
home/.bashrc

diff --git a/config/fish/functions/wtemp.fish b/config/fish/functions/wtemp.fish
new file mode 100644 (file)
index 0000000..f8c08e4
--- /dev/null
@@ -0,0 +1,4 @@
+function wtemp --wraps=sensors\ \|\ grep\ WaterPostRad\ \|\ cut\ -f2\ -d\'\ \' --wraps=sensors\ \|\ grep\ WaterPostRad\ \|\ cut\ -f2\ -d\'+\' --description alias\ wtemp=sensors\ \|\ grep\ WaterPostRad\ \|\ cut\ -f2\ -d\'+\'
+  sensors | grep WaterPostRad | cut -f2 -d'+' $argv
+        
+end
index 2f14ea3241f2d66f8b309f24f489560b91828956..9f3d41960f81dc67d3ff31ca3718c31d28205c41 100644 (file)
@@ -3,6 +3,7 @@
 export VDPAU_DRIVER=radeonsi
 export EDITOR="kcr edit"
 export FZF_DEFAULT_OPTS='--multi --layout=reverse --preview-window=down:60%'
+export ZSTD_NBTHREADS="0"
 
 # This file is sourced by bash for login shells.  The following line
 # runs your .bashrc and is recommended by the bash info pages.
@@ -10,8 +11,8 @@ if [[ -f ~/.bashrc ]] ; then
        . ~/.bashrc
 fi
 
-# autorun X11
-if test "$DISPLAY" = "" -a "$WAYLAND_DISPLAY" = "" -a "$XDG_VTNR" = 1; then
+# autorun display-manager
+if { [ -z "$DISPLAY" ] || [ -z "$WAYLAND_DISPLAY" ]; } && [ "$XDG_VTNR" -eq "1" ]; then
   #startx
   #dbus-launch --exit-with-session /usr/bin/startplasma-wayland
   #dbus-launch --exit-with-session Hyprland
index 4b98757f5b88fc8dcd00e31deeeee7b34896bb79..bd82eb013a5684efa281da5a6a48388c1867e7ce 100644 (file)
@@ -27,6 +27,7 @@ alias gst='git status'
 alias nano='nano -_qpT4 '
 alias free='free -h --si'
 alias lsblk='lsblk -o name,size,partuuid,fstype,mountpoints,label'
+alias wtemp='sensors | grep WaterPostRad | cut -f2 -d'+''
 
 alias  lf='lfrun'
 
@@ -132,7 +133,8 @@ function parse_git_dirty {
     fi
 }
 
-export PS1="┬─[\[\e[33m\]\u\[\e[m\]@\[\e[34m\]\h\[\e[m\]:\w]─[\[\e[37m\]\t\[\e[m\]]\`parse_git_branch\`\n╰─\[\e[31m\]\\$\[\e[m\] "
+# export PS1="┬─[\[\e[33m\]\u\[\e[m\]@\[\e[34m\]\h\[\e[m\]:\w]─[\[\e[37m\]\t\[\e[m\]]\`parse_git_branch\`\n╰─\[\e[31m\]\\$\[\e[m\] "
+export PS1="\[\033[m\]|\[\033[1;35m\]\t\[\033[m\]|\[\e[1m\]\u\[\e[1;36m\]\[\033[m\]@\[\e[1;36m\]\h\[\033[m\]:\[\e[0m\]\[\e[1;32m\][\W]`parse_git_branch`> \[\e[0m\]"
 
 # enable moving between directories without cd
 shopt -s autocd