if status is-interactive
# Commands to run in interactive sessions can go here
#
- #cat ~/.config/banner.asc
+ #cat ~/dotfiles/banner.asc
+ source ~/.config/fish/functions/eza-aliases.fish
fastfetch
set -g fish_greeting
end
SETUVAR --export VDPAU_DRIVER:radeonsi
SETUVAR --export VISUAL:kks\x20edit
SETUVAR __fish_initialized:3400
+SETUVAR _fish_abbr_cheatsheet:cat\x20/home/andy/\x2econfig/banner\x2easc
+SETUVAR _fish_abbr_df:/usr/bin/df\x20\x2dh\x20\x2d\x2doutput\x3dtarget\x2cfstype\x2cused\x2cavail\x2cpcent\x2csource\x20\x7c\x20sort\x20\x2dn
+SETUVAR _fish_abbr_free:free\x20\x2d\x2dgiga\x20\x2dh\x20\x2dw
+SETUVAR _fish_abbr_gco:git\x20checkout
+SETUVAR _fish_abbr_gcp:git\x20cherry\x2dpick
+SETUVAR _fish_abbr_glo:git\x20log\x20\x2d\x2doneline
+SETUVAR _fish_abbr_grep:grep\x20\x2di\x20\x2d\x2dcolor\x3dauto
+SETUVAR _fish_abbr_gst:git\x20status
+SETUVAR _fish_abbr_hc:hyperctl
+SETUVAR _fish_abbr_hcc:hyperctl\x20clients
+SETUVAR _fish_abbr_lf:lfrun
+SETUVAR _fish_abbr_lsblk:lsblk\x20\x2do\x20name\x2csize\x2cpartuuid\x2cfstype\x2cmountpoints\x2clabel
+SETUVAR _fish_abbr_zdiff:zdiff\x20\x2d\x2dcolor\x3dauto
SETUVAR fish_color_autosuggestion:777777
SETUVAR fish_color_cancel:\x2d\x2dreverse
SETUVAR fish_color_command:ffffff
+++ /dev/null
-function df --wraps='/bin/df -h | tail -n +2 | sort -n' --wraps='/bin/df -ah | tail -n +2 | sort -n' --wraps='/bin/df -ahk | tail -n +2 | sort -n' --description 'alias df /bin/df -h | tail -n +2 | sort -n'
- /bin/df -h | tail -n +2 | sort -n $argv;
-end
--- /dev/null
+#!/bin/fish
+function l1 --wraps='eza' --description='alias eza'
+ switch $(tty)
+ case /dev/tty**
+ EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first -1 $argv
+ case /dev/pts/**
+ EZA_GRID_ROWS=13 eza -w 0 --group --group-directories-first -1 $argv
+ end
+end
+
+function la --wraps='eza' --description='alias eza'
+ switch $(tty)
+ case /dev/tty**
+ EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first -l -a $argv
+ case /dev/pts/**
+ EZA_GRID_ROWS=13 eza -w 0 --group --long --grid --group-directories-first -l -a $argv
+ end
+end
+
+function lg --wraps='eza' --description='alias eza'
+ switch $(tty)
+ case /dev/tty**
+ EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first $argv
+ case /dev/pts/**
+ EZA_GRID_ROWS=13 eza -w 0 --group --long --grid --group-directories-first $argv
+ end
+end
+
+function ll --wraps='eza' --description='alias eza'
+ switch $(tty)
+ case /dev/tty**
+ EZA_GRID_ROWS=26 eza -w 220 --group --long --grid --group-directories-first $argv
+ case /dev/pts/**
+ EZA_GRID_ROWS=26 eza -w 0 --group --long --grid --group-directories-first $argv
+ end
+end
+
+function ls --wraps='eza' --description='alias eza'
+ switch $(tty)
+ case /dev/tty**
+ EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first --icons $argv
+ case /dev/pts/**
+ EZA_GRID_ROWS=13 eza -w 0 --group --group-directories-first --icons $argv
+ end
+end
+
+function lt --wraps='eza' --description='alias eza'
+ switch $(tty)
+ case /dev/tty**
+ EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv
+ case /dev/pts/**
+ EZA_GRID_ROWS=13 eza -w 0 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso $argv
+ end
+end
+++ /dev/null
-function free --wraps='/usr/bin/free --giga -h -w' --wraps='/usr/bin/free -h' --description 'alias free=free -wth --si'
- command free -wth --si $argv;
-end
+++ /dev/null
-function gco --wraps='git checkout' --description 'alias gco=git checkout'
- git checkout $argv;
-end
+++ /dev/null
-function gcp --wraps='git cherry-pick' --description 'alias gcp=git cherry-pick'
- git cherry-pick $argv;
-end
+++ /dev/null
-function gg --wraps='cd /home/andy/dotfiles' --description 'alias gg=cd /home/andy/dotfiles'
- cd /home/andy/dotfiles $argv;
-end
+++ /dev/null
-function glo --wraps='git log --oneline' --description 'alias gcp=git log --oneline'
- git log --oneline $argv;
-end
+++ /dev/null
-function grep --description 'alias grep=grep -i --color=auto'
- command grep -i --color=auto $argv;
-end
+++ /dev/null
-function gst --wraps='git status' --description 'alias gst=git status'
- git status $argv;
-end
+++ /dev/null
-function hc --wraps='hyprctl clients' --description 'alias hc=hyprctl clients'
- hyprctl clients $argv;
-end
+++ /dev/null
-function l1 --description 'list files bare'
- exa -1 --icons --group --time-style=iso --group-directories-first $argv;
-end
+++ /dev/null
-function la --description 'list standard incl. hidden'
- ls -a $argv;
-end
+++ /dev/null
-function lf --wraps=lfrun --description 'alias lf=lfrun'
- lfrun $argv;
-end
+++ /dev/null
-function lg --description 'list files sorted by size'
- exa --icons --group --long --sort=size -t=mod --time-style=iso --group-directories-first $argv;
-end
+++ /dev/null
-function lgo --wraps='git log --oneline' --description 'alias lgo=git log --oneline'
- git log --oneline $argv;
-end
+++ /dev/null
-function ll --description 'list files long'
- exa --icons --group --time-style=iso --group-directories-first -l $argv;
-end
+++ /dev/null
-function ls --description 'list files standard'
- exa --icons --time-style=iso --group-directories-first $argv;
-end
+++ /dev/null
-function lsblk --description 'alias lsblk=lsblk -o +MODEL,LABEL'
- command lsblk -o +MODEL,LABEL $argv;
-end
+++ /dev/null
-function lt --description 'list files sorted by mtime'
- exa --icons --group --long --sort=mod -t=mod --time-style=iso --group-directories-first $argv;
-end
+++ /dev/null
-function lw --description 'list files wide'
- exa --icons --group --long --grid --time-style=iso --group-directories-first $argv;
-end
+++ /dev/null
-function zdiff --description 'alias zdiff=zdiff --color=auto'
- command zdiff --color=auto $argv;
-end
logger 'mpd already running'
fi
+if [[ ! $(pidof mpd-mpris) ]]; then
+ mpd-mpris &
+ logger 'mpd-mpris started'
+else
+ logger 'mpd-mpris already running'
+fi
+
if [[ ! $(pidof swww-daemon) ]]; then
swww init > /dev/null 2>&1 &
logger 'swww-daemon started'
export VDPAU_DRIVER='radeonsi'
export XZ_OPT='--threads=16'
+alias df='/usr/bin/df -h --output=target,fstype,used,avail,pcent,source | sort -n'
alias grep='grep -i'
alias gg='cd "$(git rev-parse --show-toplevel)"'
alias gco='git checkout'
alias gst='git status'
alias nano='nano -_qpT4 '
alias free='free -h --si'
+alias lsblk='lsblk -o name,size,partuuid,fstype,mountpoints,label'
-alias lf='lfrun'
-alias ls='exa --icons --time-style=iso --group-directories-first'
-alias ll='exa --icons --group --time-style=iso --group-directories-first -l'
-alias l1='exa --icons --group -1 --grid --time-style=iso --group-directories-first'
-alias la='ll -d && ll'
-alias lw='exa --icons --group --long --grid --time-style=iso --group-directories-first'
-alias lt='exa --icons --group --long --sort=mod -t=mod --time-style=iso --group-directories-first'
+alias lf='lfrun'
+case $(tty) in
+ /dev/tty[0-9]*)
+ alias l1='EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first -1'
+ alias la='EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first -l -a'
+ alias lg='EZA_GRID_ROWS=13 eza -w 220 --group --icons --long --sort=size -t=mod --time-style=iso --group-directories-first'
+ alias ll='EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first'
+ alias ls='EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first --icons'
+ alias lt='EZA_GRID_ROWS=13 eza -w 220 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso'
+ echo tty ;;
+ /dev/pts/[0-9]*)
+ alias l1='EZA_GRID_ROWS=26 eza -w 0 --group --group-directories-first -1'
+ alias la='EZA_GRID_ROWS=26 eza -w 0 --group --long --grid --group-directories-first -l -a'
+ alias lg='EZA_GRID_ROWS=26 eza -w 0 --group --icons --long --sort=size -t=mod --time-style=iso --group-directories-first'
+ alias ll='EZA_GRID_ROWS=26 eza -w 0 --group --long --grid --group-directories-first'
+ alias ls='EZA_GRID_ROWS=26 eza -w 0 --group --group-directories-first --icons'
+ alias lt='EZA_GRID_ROWS=26 eza -w 0 --group --long --grid --group-directories-first --sort=mod -t=mod --time-style=long-iso'
+ echo pts ;;
+esac
+
alias emergelog='sudo cat /var/log/emerge.log | grep "started\|completed\|exiting"'
alias k='kks edit'