diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-06-04 14:21:22 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-06-04 14:21:22 +0200 |
| commit | 5d6e657ee76885438acd774e5ad100781ae5e3c0 (patch) | |
| tree | ddd834e19af082776e6389edc5f488079f7bc925 /.config/shell | |
| parent | 6b22d12938d736d4ee0316d4a2d230551661411f (diff) | |
moved funcs to scripts; added an alert alias; fixed audio in mpd
Diffstat (limited to '.config/shell')
| -rw-r--r-- | .config/shell/aliasrc | 20 | ||||
| -rw-r--r-- | .config/shell/profile | 1 |
2 files changed, 3 insertions, 18 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index d03d55c..346a148 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -22,6 +22,8 @@ alias zzz='sudo zzz' alias sc='echo -ne "\e[1 q"' alias ska="ps -u $USER | awk 'NR > 1 { print $1 }' | xargs -t kill" +alias alert='pw-play /usr/share/sounds/freedesktop/stereo/complete.oga >/dev/null' + # compiler alias clang='clang -march=native -O3 -flto=thin' @@ -60,24 +62,6 @@ alias speakers='wpctl set-default "$(wpctl status | grep Speakers | cut -b11-12) alias getvol='wpctl get-volume @DEFAULT_SINK@' alias setvol='wpctl set-volume @DEFAULT_SINK@' -## FUNCTIONS FOR CONVERTING DATES - -# convert date from YYYYMMDD to YYYY-MM-DD -date-convert() { - for i in *; do - /bin/mv "${i}" "$(echo "${i}" | - sed 's/\([0-9][0-9][0-9][0-9]\)\([0-9][0-9]\)\([0-9][0-9]\)/\1-\2-\3/')" - done; -} - -# reverse date from DD-MM-YYYY to YYYY-MM-DD -date-reverse() { - for i in *; do - /bin/mv "${i}" "$(echo "${i}" | - sed 's/\([0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9][0-9][0-9]\)/\3-\1-\2/')" - done; -} - # shortcut for dotfiles repo alias dfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias dcomm='dfiles commit -m' diff --git a/.config/shell/profile b/.config/shell/profile index 701d778..0094621 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -3,6 +3,7 @@ export EDITOR="vim" export SUDO_EDITOR="nano" export TERMINAL="urxvt" export BROWSER="firefox" +export LESS="-F -X $LESS" export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" |
