From a8d9d84b5bc2337ffcbdb7982e9ce349519f008b Mon Sep 17 00:00:00 2001 From: adrien Date: Sat, 24 Apr 2021 21:54:25 +0200 Subject: [PATCH] Add fish functions and update .xinitrc file --- .config/fish/functions/clcache.fish | 6 ++++++ .config/fish/functions/{cl.fish => clhistory.fish} | 3 +-- .xinitrc | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .config/fish/functions/clcache.fish rename .config/fish/functions/{cl.fish => clhistory.fish} (83%) diff --git a/.config/fish/functions/clcache.fish b/.config/fish/functions/clcache.fish new file mode 100644 index 0000000..a2af7c1 --- /dev/null +++ b/.config/fish/functions/clcache.fish @@ -0,0 +1,6 @@ +function clcache + /usr/bin/yay -Scc --noconfirm + /usr/bin/yay -Sc --noconfirm + /usr/bin/gem cleanup --silent + /usr/bin/go clean -modcache -cache -testcache +end diff --git a/.config/fish/functions/cl.fish b/.config/fish/functions/clhistory.fish similarity index 83% rename from .config/fish/functions/cl.fish rename to .config/fish/functions/clhistory.fish index 5bcff23..ebc441f 100644 --- a/.config/fish/functions/cl.fish +++ b/.config/fish/functions/clhistory.fish @@ -1,7 +1,6 @@ -function cl +function clhistory /usr/bin/cat /dev/null > ~/.cache/rofi-2.sshcache /usr/bin/cat /dev/null > ~/.python_history /usr/bin/cat /dev/null > ~/.bash_history /usr/bin/cat /dev/null > ~/.ssh/known_hosts - echo "Garbage cleared!" end diff --git a/.xinitrc b/.xinitrc index abce223..e329712 100644 --- a/.xinitrc +++ b/.xinitrc @@ -15,13 +15,14 @@ fi /usr/bin/numlockx # fire up xautolock in case of inactivity under X -/usr/bin/xautolock -time 3 -locker slock & +# the `-corners 000-` flag allows you to disable autolock when cursor is located at bottom right (e.g. when looking video) +/usr/bin/xautolock -time 2 -locker slock -corners 000- # set the backgroup ~/.fehbg # launch dunst -/usr/bin/dunst & +#/usr/bin/dunst & # launch spectrwm exec spectrwm