diff --git a/.config/X11/xsession.d/30x11-resources b/.config/X11/xsession.d/30x11-resources index 09ceaccb1..b19911c6b 100644 --- a/.config/X11/xsession.d/30x11-resources +++ b/.config/X11/xsession.d/30x11-resources @@ -1,5 +1,3 @@ # vim:set ft=sh -if has_option allow-user-resources && [ -f "$USRRESOURCES" ]; then - xrdb -merge $USRRESOURCES -fi +xrdb -merge $USRRESOURCES diff --git a/.config/X11/xsession.d/40display-setup b/.config/X11/xsession.d/40display-setup index e69de29bb..74306aebc 100644 --- a/.config/X11/xsession.d/40display-setup +++ b/.config/X11/xsession.d/40display-setup @@ -0,0 +1 @@ +# vim:set ft=sh diff --git a/.config/X11/xsession.d/90auto-start b/.config/X11/xsession.d/90auto-start index 84749f886..3a1d5da26 100644 --- a/.config/X11/xsession.d/90auto-start +++ b/.config/X11/xsession.d/90auto-start @@ -7,8 +7,8 @@ start() { remaps xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share/}/bg" start playerctld daemon -start picom --experimental-backends -start unclutter -noevents +start picom +start unclutter start dunst start pipewire start dwmblocks diff --git a/.config/X11/xsession.d/99extra-setup b/.config/X11/xsession.d/99extra-setup index e69de29bb..74306aebc 100644 --- a/.config/X11/xsession.d/99extra-setup +++ b/.config/X11/xsession.d/99extra-setup @@ -0,0 +1 @@ +# vim:set ft=sh diff --git a/.config/lf/preview b/.config/lf/preview index 89771e4ad..9a1fe8725 100755 --- a/.config/lf/preview +++ b/.config/lf/preview @@ -24,9 +24,9 @@ video() { batorcat() { f=$1 - w=$2 + w=$2 command -v bat > /dev/null 2>&1 && bat --color=always --style=plain --pager=never --terminal-width "$((w-2))" "$f" && exit 0 - command -v batcat > /dev/null 2>&1 && batcat --color=always --style=plain --pager=never --terminal-width "$((w-2))" "$f" && exit 0 + command -v batcat > /dev/null 2>&1 && batcat --color=always --style=plain --pager=never --terminal-width "$((w-2))" "$f" && exit 0 cat "$f" && exit 0 } diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 4d4553df9..00f3a5889 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -2,56 +2,56 @@ # sudo not required for some system commands for command in mount umount sv pacman apt updatedb su shutdown poweroff reboot ; do - alias $command="sudo $command" + alias $command="sudo $command" done; unset command # Verbosity and settings that you pretty much just always are going to want. alias \ - cp="cp -iv" \ - mv="mv -iv" \ - rm="rm -vI" \ - bc="bc -ql" \ - mkd="mkdir -pv" \ - ffmpeg="ffmpeg -hide_banner" \ - exa="exa -abghHliS" \ - duf="duf -all" \ - ls="ls -hN --color=auto --group-directories-first" \ - grep="grep --color=auto" \ - diff="diff --color=auto" \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + bc="bc -ql" \ + mkd="mkdir -pv" \ + ffmpeg="ffmpeg -hide_banner" \ + exa="exa -abghHliS" \ + duf="duf -all" \ + ls="ls -hN --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ # Colorize commands when possible. alias \ - ls="ls -hN --color=auto --group-directories-first" \ - grep="grep --color=auto" \ - diff="diff --color=auto" \ - ccat="highlight --out-format=ansi" \ - ip="ip -color=auto" + ls="ls -hN --color=auto --group-directories-first" \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + ccat="highlight --out-format=ansi" \ + ip="ip -color=auto" # These common commands are just too long! Abbreviate them. alias \ - ka="killall" \ - e="$EDITOR" \ - z="zathura" \ - p="pacman" \ - ar="apt remove" \ - are="apt reinstall" \ - ai="apt install" \ - aur="apt autoremove" \ - au="apt upgrade" \ - kssh="kitty +kitten ssh" + ka="killall" \ + e="$EDITOR" \ + z="zathura" \ + p="pacman" \ + ar="apt remove" \ + are="apt reinstall" \ + ai="apt install" \ + aur="apt autoremove" \ + au="apt upgrade" \ + kssh="kitty +kitten ssh" # Misc. alias \ - ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \ - weath="less -S ${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport" \ - remvirt="virt-manager -c 'qemu+ssh://luca@192.168.178.200/system'" \ - vim="nvim" \ - wikidown='rclone sync cloud:files/luca/Notes ~/Documents/vimwiki' \ - wikiup='rclone sync ~/Documents/vimwiki cloud:files/luca/Notes' \ - cam="mpv --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)" \ - ahv="export ANSIBLE_VAULT_PASSWORD_FILE=~/.ansible/secrets/ansible-homelab && ansible-vault" \ - xpick=" xprop | awk ' + ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \ + weath="less -S ${XDG_CACHE_HOME:-$HOME/.cache}/weatherreport" \ + remvirt="virt-manager -c 'qemu+ssh://luca@192.168.178.200/system'" \ + vim="nvim" \ + wikidown='rclone sync cloud:files/luca/Notes ~/Documents/vimwiki' \ + wikiup='rclone sync ~/Documents/vimwiki cloud:files/luca/Notes' \ + cam="mpv --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)" \ + ahv="export ANSIBLE_VAULT_PASSWORD_FILE=~/.ansible/secrets/ansible-homelab && ansible-vault" \ + xpick=" xprop | awk ' /^WM_CLASS/{sub(/.* =/, \"instance:\"); sub(/,/, \"\nclass:\"); print} /^WM_NAME/{sub(/.* =/, \"title:\"); print}'"