diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf index 862e60b..25a5ce1 100644 --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -11,7 +11,7 @@ = :prompt 'Quit?' quit [messages] -q = :prompt 'Quit?' quit +q = quit j = :next = :next diff --git a/.config/hypr/apps.conf b/.config/hypr/apps.conf index d8e9b32..b8b24b1 100644 --- a/.config/hypr/apps.conf +++ b/.config/hypr/apps.conf @@ -24,10 +24,10 @@ $passuser = passuser $passpass = passpass $passotp = passotp -exec-once=swayidle -w \ - timeout 300 '$screensaver' \ +exec-once=swayidle -w \ + timeout 300 '$screensaver' \ timeout 315 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ + resume 'swaymsg "output * dpms on"' \ before-sleep '$lock' exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once=gammastep diff --git a/.config/newsraft/config b/.config/newsraft/config index 6328908..6db1250 100644 --- a/.config/newsraft/config +++ b/.config/newsraft/config @@ -2,3 +2,4 @@ set menu-feed-sorting unread-desc set menu-item-sorting unread-desc bind v exec mpv "%l" +bind V exec mpv --speed=1.5 "%l" diff --git a/.config/newsraft/feeds b/.config/newsraft/feeds index fa85eca..3486acd 100644 --- a/.config/newsraft/feeds +++ b/.config/newsraft/feeds @@ -1,4 +1,4 @@ -@ Global [1440] {100} +@ Global [60] {100} @ Entertainment https://www.youtube.com/feeds/videos.xml?channel_id=UCI4W-ck8ZLA_YljxMhlpg2g "ChessSimp" diff --git a/.config/nvim/pack/plugins/opt/plenary b/.config/nvim/pack/plugins/opt/plenary index 4f71c0c..f7adfc4 160000 --- a/.config/nvim/pack/plugins/opt/plenary +++ b/.config/nvim/pack/plugins/opt/plenary @@ -1 +1 @@ -Subproject commit 4f71c0c4a196ceb656c824a70792f3df3ce6bb6d +Subproject commit f7adfc4b3f4f91aab6caebf42b3682945fbc35be diff --git a/.config/nvim/pack/plugins/opt/telescope b/.config/nvim/pack/plugins/opt/telescope index dc1ea28..7472420 160000 --- a/.config/nvim/pack/plugins/opt/telescope +++ b/.config/nvim/pack/plugins/opt/telescope @@ -1 +1 @@ -Subproject commit dc1ea28cc2a02cd1cebb9d80e967807d668f78f8 +Subproject commit 7472420f8734c710bd7009081cef9b97f08a3821 diff --git a/.config/nvim/pack/plugins/opt/treesitter b/.config/nvim/pack/plugins/opt/treesitter index 212b7a5..7ff51f5 160000 --- a/.config/nvim/pack/plugins/opt/treesitter +++ b/.config/nvim/pack/plugins/opt/treesitter @@ -1 +1 @@ -Subproject commit 212b7a504cf56f85d1acc5be237261b42d7560c5 +Subproject commit 7ff51f53b0efb6228df2e8539b51bb2e737b77f3 diff --git a/.config/zsh/aliases/general.zsh b/.config/zsh/aliases/general.zsh index 13e86cb..78845e6 100644 --- a/.config/zsh/aliases/general.zsh +++ b/.config/zsh/aliases/general.zsh @@ -1,77 +1,60 @@ function update() { - $TERM --hold -e "$SHELL" -c "sudo pacman -Syu && echo -e '\e[32mDONE\e[0m'" & - $TERM --hold -e "$SHELL" -c "flatpak update && echo -e '\e[32mDONE\e[0m'" & + $TERM --hold -e "$SHELL" -c "sudo pacman -Syu && echo -e '\e[32mDONE\e[0m'" & + $TERM --hold -e "$SHELL" -c "flatpak update && echo -e '\e[32mDONE\e[0m'" & $TERM --hold -e "$SHELL" -c "git --git-dir='$HOME/.dotfiles/' --work-tree='$HOME' submodule update --remote --recursive --init && echo -e '\e[32mDONE\e[0m'" & } -alias pac='sudo pacman' \ - vi='$EDITOR' \ +alias pac='sudo pacman' \ + vi='$EDITOR' \ qcp='qcp -o tabsize=4' \ - qmv='qmv -o tabsize=4' \ - mutt='neomutt' + qmv='qmv -o tabsize=4' alias config='git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"' \ - viconf='(cd "$XDG_CONFIG_HOME/nvim" && $EDITOR .)' \ + viconf='(cd "$XDG_CONFIG_HOME/nvim" && $EDITOR .)' \ zconf='(cd "$ZDOTDIR/" && $EDITOR .) && . "$ZDOTDIR/.zshrc"' -alias valgrind='epitest valgrind' \ - ssh='TERM=linux ssh' +alias ssh='TERM=linux ssh' -function coloralias() { - $1 $(echo - "${@:2}" | sed 's/--color=\w\+/--color=always/') -} - -alias _='sudo ' \ - sudo='sudo ' \ - watch='coloralias watch -c -- ' \ +alias sudo='sudo ' \ + watch='watch -c -- ' \ xargs='xargs ' function j() { - local cmd=( - find . -mount -name "$1*" -type d \ - \! -path '*/.bzr/*' \ - \! -path '*/.cache/*' \ - \! -path '*/.git/*' \ - \! -path '*/.hg/*' \ - \! -path '*/.idea/*' \ - \! -path '*/.svn/*' \ - \! -path '*/.tox/*' \ - \! -path '*/.venv/*' \ - \! -path '*/.vscode/*' \ - \! -path '*/CVS/*' \ - \! -path '*/node_modules/*' - ) - local dests=("${(@f)$(${cmd[@]} 2> /dev/null)}") - local dest="${dests:-$1}" + dests=(**/"$1"*~cvs~node_modules/) - [ -n "${dests[2]}" ] && dest="$(printf '%s\n' "${dests[@]}" | fzf)" - cd "$dest" + [ -n "${dests[2]}" ] && dests=("$(printf '%s\n' "${dests[@]}" | fzf)") + cd "${dests[1]}" } function tmp() { cd "$(mktemp -d --tmpdir "$1"XXX)" } -alias -g ...='../..' \ - ....='../../..' \ +alias -g ...='../..' \ + ....='../../..' \ .....='../../../..' \ ......='../../../../..' -alias cp="cp -vi" \ - mv="mv -vi" \ - rm="rm -i" \ +alias cp="cp -vi" \ + mv="mv -vi" \ + rm="rm -i" \ mkdir="mkdir -v" \ rsync="rsync -P" -alias ls='ls --color=tty' \ - ll='ls -lh' \ - l='ll -a' \ +alias ls='ls --color' \ + ll='ls -lh' \ + l='ll -a' \ la='ll -A' alias diff='diff --color' -alias grep="grep --color=auto --exclude-dir={.bzr,.cache,.git,.hg,.idea,.svn,.tox,.venv,.vscode,CVS,node_modules}" \ - egrep="grep -E" \ +alias grep="grep --color --exclude-dir={.bzr,.cache,.git,.hg,.idea,.svn,.tox,.venv,.vscode,CVS,node_modules}" \ + egrep="grep -E" \ fgrep="grep -F" +alias monero='monero-wallet-cli \ + --daemon-address monero.maby.dev:18081 \ + --wallet-file /home/ange/.config/monero/ange --trusted-daemon \ + --log-file=/tmp/monero-wallet-cli.log' + # vim: ft=zsh diff --git a/.config/zsh/completions/_git b/.config/zsh/completions/_git index cecb80a..bc41cd3 100644 --- a/.config/zsh/completions/_git +++ b/.config/zsh/completions/_git @@ -2460,7 +2460,7 @@ _git-config () { '(3 -z --null --name-only --show-origin)--add[add new value without altering any existing ones]' \ '(2 --bool --int --bool-or-int --bool-or-str --path -z --null --name-only --show-origin)--unset[remove the first matching value of the key]' \ '(2 --bool --int --bool-or-int --bool-or-str --path -z --null --name-only --show-origin)--unset-all[remove all matching values of the key]' \ - '(3 --bool --int --bool-or-int --bool-or-str --path -z --null --name-only --show-origin)--rename-section[rename the given section]' \ + '(3 --bool --int --bool-or-int --bool-or-str --path -z --null --name-only --show-origin)--rename-section[rename the given section]' \ '(3 --bool --int --bool-or-int --bool-or-str --path -z --null --name-only --show-origin)--remove-section[remove the given section]' \ '(: --bool --int --bool-or-int --bool-or-str --path)'{-l,--list}'[list all variables set in config file]' \ '(-e --edit --bool --int --bool-or-int --bool-or-str --path -z --null --name-only --show-origin)'{-e,--edit}'[open config file for editing]' \ diff --git a/.config/zsh/completions/_j b/.config/zsh/completions/_j index 7db1c50..02fac1c 100644 --- a/.config/zsh/completions/_j +++ b/.config/zsh/completions/_j @@ -1,5 +1,5 @@ #compdef j _j() { - _arguments "1: :($(find . -mount -name "$1*" -type d -printf "'%P' " 2> /dev/null))" + _arguments "1: :(**/"$1"*~cvs~node_modules/)" } diff --git a/bin/am b/bin/am index 3cc6f76..8f45406 100755 --- a/bin/am +++ b/bin/am @@ -24,7 +24,7 @@ function clear_output() { function main() { while true; do - readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)" + mapfile -t LSBLK <<< "$(lsblk -n --paths --list | grep part)" COLUMNS=1 select dev in "${LSBLK[@]}"; do diff --git a/bin/arch b/bin/arch index bce7982..114e785 100755 --- a/bin/arch +++ b/bin/arch @@ -1,5 +1,5 @@ #!/bin/bash -e -CRI=(sudo docker) +CRI=(podman) "${CRI[@]}" run --rm -it -v "$PWD:/mnt/" -w /mnt/ docker.io/archlinux/archlinux:base diff --git a/bin/banana b/bin/banana deleted file mode 100755 index 3e7cd66..0000000 --- a/bin/banana +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -e - -CRI=(sudo docker) - -REPORTS="$(mktemp -d)" -LOGS="$REPORTS/coding-style-reports.log" - -"${CRI[@]}" run --rm \ - -v "$PWD:/mnt/delivery" \ - -v "$REPORTS:/mnt/reports" \ - ghcr.io/epitech/coding-style-checker:latest \ - /mnt/delivery /mnt/reports - -cat "$LOGS" -echo "$(grep -c ': MAJOR:' "$LOGS") major, $(grep -c ': MINOR:' "$LOGS") minor, $(grep -c ': INFO:' "$LOGS") info coding style error(s) reported in $LOGS" diff --git a/bin/debian b/bin/debian index 7b0c021..a1ab773 100755 --- a/bin/debian +++ b/bin/debian @@ -1,5 +1,5 @@ #!/bin/bash -e -CRI=(sudo docker) +CRI=(podman) "${CRI[@]}" run --rm -it -v "$PWD:/mnt/" -w /mnt/ docker.io/debian:12-slim diff --git a/bin/epitest b/bin/epitest index 4d6d34d..f63ba05 100755 --- a/bin/epitest +++ b/bin/epitest @@ -1,6 +1,6 @@ #!/bin/bash -e -CRI=(sudo docker) +CRI=(podman) CRI_OPT=() if [ -z "$WAYLAND_DISPLAY" ]; then @@ -11,20 +11,20 @@ if [ -z "$WAYLAND_DISPLAY" ]; then ) fi -"${CRI[@]}" run --rm -it --name epitest \ - "${CRI_OPT[@]}" \ - --ipc=host \ - --device /dev/dri/ \ - -e DISPLAY \ - -e XDG_RUNTIME_DIR \ - -e MAKEFLAGS \ - -e CFLAGS=-g3 \ - -e CXXFLAGS=-g3 \ - -v /tmp/.X11-unix/:/tmp/.X11-unix/ \ - -v "$XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR" \ - -v /usr/share/fonts/:/usr/share/fonts/:ro \ - -v "$PWD:$PWD" \ - -w "$PWD" \ - --ulimit nofile=8192:8192 \ +"${CRI[@]}" run --rm -it --name epitest \ + "${CRI_OPT[@]}" \ + --ipc=host \ + --device /dev/dri/ \ + -e DISPLAY \ + -e XDG_RUNTIME_DIR \ + -e MAKEFLAGS \ + -e CFLAGS=-g3 \ + -e CXXFLAGS=-g3 \ + -v /tmp/.X11-unix/:/tmp/.X11-unix/ \ + -v "$XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR" \ + -v /usr/share/fonts/:/usr/share/fonts/:ro \ + -v "$PWD:$PWD" \ + -w "$PWD" \ + --ulimit nofile=8192:8192 \ docker.io/epitechcontent/epitest-docker:latest \ "$@" diff --git a/bin/passopen b/bin/passopen index 64445bb..e59101e 100755 --- a/bin/passopen +++ b/bin/passopen @@ -1,3 +1,4 @@ #!/bin/bash -e -xdg-open "$(pass "$(cat /tmp/passselect)" | sed -n '/^URL:/{s/URL:\s*//p;q}')" +xdg-open \ + "$(pass show "$(cat /tmp/passselect)" | sed -n '/^URL:/{s/URL:\s*//p;q}')" diff --git a/bin/passotp b/bin/passotp index 5b39e33..2b064e4 100755 --- a/bin/passotp +++ b/bin/passotp @@ -1,8 +1,4 @@ #!/bin/bash -e -txt="$(pass otp "$(cat /tmp/passselect)")" -bak="$(xclip -o -sel c)" - -xclip -sel c <<< "$txt" -xdotool key --clearmodifiers 'ctrl+v' -xclip -sel c <<< "$txt" +xdotool type --clearmodifiers --delay 0 \ + "$(pass otp "$(cat /tmp/passselect)")" diff --git a/bin/passpass b/bin/passpass index 0d29810..f8151ab 100755 --- a/bin/passpass +++ b/bin/passpass @@ -1,8 +1,4 @@ #!/bin/bash -e -txt="$(pass "$(cat /tmp/passselect)" | head -n1 -)" -bak="$(xclip -o -sel c)" - -xclip -sel c <<< "$txt" -xdotool key --clearmodifiers 'ctrl+v' -xclip -sel c <<< "$txt" +xdotool type --clearmodifiers --delay 0 \ + "$(pass show "$(cat /tmp/passselect)" | head -n1 -)" diff --git a/bin/passuser b/bin/passuser index 0c5cb8a..4cfc53e 100755 --- a/bin/passuser +++ b/bin/passuser @@ -1,8 +1,4 @@ #!/bin/bash -e -txt="$(pass "$(cat /tmp/passselect)" | sed -n '/^Username:/{s/Username:\s*//p;q}')" -bak="$(xclip -o -sel c)" - -xclip -sel c <<< "$txt" -xdotool key --clearmodifiers 'ctrl+v' -xclip -sel c <<< "$txt" +xdotool type --clearmodifiers --delay 0 \ + "$(pass show "$(cat /tmp/passselect)" | sed -n '/^Username:/{s/Username:\s*//p;q}')" diff --git a/bin/steam b/bin/steam new file mode 100755 index 0000000..19cc3dd --- /dev/null +++ b/bin/steam @@ -0,0 +1 @@ +#!/usr/bin/env -Scom.valvesoftware.Steam -no-browser +open 'steam://open/minigameslist'