37 lines
1.6 KiB
Text
37 lines
1.6 KiB
Text
alias la='ls -lahF'
|
|
alias ll='ls -lhF'
|
|
alias ls='ls -F --color=tty'
|
|
alias lsa='ls -aF'
|
|
|
|
alias layout='xkblayout-state print "%s(%v)" && echo -n "\n"'
|
|
|
|
alias picom-default='picom -bGC --backend glx --unredir-if-possible-delay 1000 --vsync'
|
|
|
|
function screenkey-obs-func() {
|
|
width=$(xrandr | awk '$0 ~ "*" {split($1,res,"x"); print res[1];}')
|
|
height=$(xrandr | awk '$0 ~ "*" {split($1,res,"x"); print res[2];}')
|
|
screenkey --no-systray -t 2 -p fixed -s small -g $(awk -v height=$height -v width=$width 'BEGIN {printf "%.0fx%.0f+%.0f+%.0f", (width * 0.5), (height * 0.06), (width * 0.25), (height * 0.02)}') --key-mode composed --bak-mode full --mods-mode normal -f Hack --font-color "#f8f8f2" --bg-color "#44475a" --opacity "1.0"
|
|
}
|
|
alias screenkey-obs='screenkey-obs-func'
|
|
|
|
function get-font-func() {
|
|
fallback_font="Hack:size=10:antialias=true:autohint=true"
|
|
font=""
|
|
if [ -x $(command -v xgetres) ]; then
|
|
font=$(xgetres font || echo $fallback_font);
|
|
else
|
|
font=$fallback_font;
|
|
fi
|
|
echo "$font"
|
|
}
|
|
alias get-font='get-font-func'
|
|
|
|
alias tmate-obs='tmate -k tmk-ET35fx5m9cA7cxOt4jjWkSmaOy -r DustVoice'
|
|
|
|
alias xfce-polkit='/usr/lib/xfce-polkit/xfce-polkit'
|
|
|
|
alias davinci-resolve='/opt/resolve/bin/resolve'
|
|
|
|
alias rofi-scripts='alias | sed -e "s/=.*//"'
|
|
|
|
alias lock-screen='xset 600 60 && env XSECURELOCK_AUTH_BACKGROUND_COLOR=rgb:28/2a/36 XSECURELOCK_AUTH_FOREGROUND_COLOR=rgb:f8/f8/f2 XSECURELOCK_AUTH_TIMEOUT=10 XSECURELOCK_BLANK_TIMEOUT=-1 XSECURELOCK_BLANK_DPMS_STATE=on XSECURELOCK_DISCARD_FIRST_KEYPRESS=1 XSECURELOCK_PASSWORD_PROMPT=cursor XSECURELOCK_SHOW_DATETIME=1 XSECURELOCK_SHOW_HOSTNAME=1 XSECURELOCK_SHOW_USERNAME=1 xsecurelock &'
|