diff options
| -rw-r--r-- | .config/bash/bashrc | 1 | ||||
| -rw-r--r-- | .config/shell/aliasrc | 4 | ||||
| -rw-r--r-- | .config/x11/xprofile | 7 | ||||
| -rwxr-xr-x | .local/bin/setbg | 6 | ||||
| -rwxr-xr-x | .local/bin/workfs | 6 |
5 files changed, 14 insertions, 10 deletions
diff --git a/.config/bash/bashrc b/.config/bash/bashrc index 9af3e77..102044f 100644 --- a/.config/bash/bashrc +++ b/.config/bash/bashrc @@ -7,3 +7,4 @@ export PS1='\[\e]0;\w $(test "$IN_KAKOUNE_CONNECT" && printf '%s' "- $KAKOUNE_CLIENT@[$KAKOUNE_SESSION]")$(test "$TERM" && printf '%s' "- $TERM")\a\]\n\[\e[32m\]\u@\h \e[34m$(test "$IN_KAKOUNE_CONNECT" && printf '%s' "¶$KAKOUNE_SESSION") \[\e[33m\]\w\[\e[0m\]\n\[\e[1;36;1m\]λ\[\e[0m\] ' export PROMPT_DIRTRIM=3 export PROMPT_COMMAND='history -a' +export HISTSIZE=100000 diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 65382e4..1d63966 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -20,8 +20,8 @@ alias \ # Colorize commands when possible. alias \ - ls="ls -hN --color=auto --group-directories-first" \ - ll="ls -hNl --color=auto --group-directories-first" \ + ls="ls -h --color=auto --group-directories-first" \ + ll="ls -hl --color=auto --group-directories-first" \ grep="grep --color=auto" \ diff="diff --color=auto" \ ccat="highlight --out-format=ansi" \ diff --git a/.config/x11/xprofile b/.config/x11/xprofile index ad83ede..b32d1cb 100644 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -4,16 +4,17 @@ # If you use startx/xinit like a Chad, this file will also be sourced. xrandr --dpi 96 # Set DPI. User may want to use a larger number for larger screens. -# setbg & # set the background with the `setbg` script +setbg -r & # set the background with the `setbg` script #xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup autostart="mpd xcompmgr dunst pipewire remaps" # remapd, doesn't work that well with usb hubs. for program in $autostart; do - pidof -sx "$program" || "$program" & + pidof -sx "$program" || "$program" & done >/dev/null 2>&1 -pidof -sx "redshift" || redshift -l 52.30487057853634:4.764923605516801 -b 1.0:0.8 & +# pidof -sx "redshift" || redshift -l 52.30487057853634:4.764923605516801 -b 1.0:0.8 & +pidof -sx "redshift" || redshift -l -8.703101934543335:115.17989920854698 -b 1.0:0.8 & pidof -sx "unclutter" || unclutter -noevents & # Starts a gpg-agents and configures it as ssh-agent. diff --git a/.local/bin/setbg b/.local/bin/setbg index 7f5977d..29b71fc 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -11,9 +11,9 @@ if [ $reload -eq 1 ]; then wal -R else if [ -z "$1" ]; then - sxiv -tob ~/Wallpapers | xargs wal -i + sxiv -tob ~/Wallpapers | xargs wal -s -t -i else - wal -i "$1" + wal -s -t -i "$1" fi - kill -HUP "$(pidof dwm)" fi +kill -HUP "$(pidof dwm)" diff --git a/.local/bin/workfs b/.local/bin/workfs index e9089ab..91c3a0a 100755 --- a/.local/bin/workfs +++ b/.local/bin/workfs @@ -1,8 +1,10 @@ #!/bin/sh dir="$HOME/workfs" -if [ -d "dir" ] +if [ -d "$dir" ] then fusermount -u "$dir" + rmdir "$dir" else - sshfs "$WORKSSH" "$dir" + mkdir -p "$dir" + echo sshfs "$WORKSSH:/Users/$USER" "$dir" fi |
