commit 0dda6cf7c381c2d3938788d161962026b8df4453 parent 4783332ae22b6ae0f138e4778c84ccea4a53cced Author: Szymon Mikulicz <szymon.mikulicz@posteo.net> Date: Fri, 15 May 2026 16:24:04 +0200 Randpaper after all Diffstat:
22 files changed, 11 insertions(+), 542 deletions(-)
diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish @@ -1,43 +0,0 @@ -#!/bin/env fish - -set fish_greeting "" - -alias fcd 'cd (fd -I -L -d 8 -t d . ~ | fzf)' -alias psgr 'ps aux | grep' - -if test -n "$NVIM" - alias nvim 'nvr -s' -end - -if test -f "$HOME/.cargo/env.fish" - source "$HOME/.cargo/env.fish" -end - -alias cmus='tmux attach-session -t cmus || tmux new-session -A -D -s cmus ~/.local/bin/cmus' - -alias :q exit -alias :e 'nvr -s' - -alias :split 'swaymsg split v\; exec alacritty' -alias :vsplit 'swaymsg split h\; exec alacritty' - -set ET_NO_TELEMETRY 1 - -if test -f "$XDG_RUNTIME_DIR/arista-ssh/agent.sock" - set -x SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/arista-ssh/agent.sock" -end - -set PYTHONDIR (python3 --version | sed 's/Python \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/python\1.\2/') -set -x PERL5LIB "$HOME/.usr/local/lib/perl5/" -set -x XDG_DATA_DIRS $XDG_DATA_DIRS "$HOME/.usr/local/share" -set -x PYTHONPATH "$HOME/.usr/local/lib/$PYTHONDIR/dist-packages" -set -x EDITOR (which nvim) -set -x VISUAL $EDITOR -set -x SUDOEDIT $EDITOR - -# pnpm -set -gx PNPM_HOME "/home/shyman/.local/share/pnpm" -if not string match -q -- $PNPM_HOME $PATH - set -gx PATH "$PNPM_HOME" $PATH -end -# pnpm end diff --git a/fish/.config/fish/functions/7z.fish b/fish/.config/fish/functions/7z.fish @@ -1,8 +0,0 @@ -function 7z - if test "$argv[1]" = "xn" - /usr/bin/7z x "$argv[2]" -o(basename $argv[2] | sed 's/\.[^.]*$//') - else - /usr/bin/7z $argv - end -end - diff --git a/fish/.config/fish/functions/aur-async.fish b/fish/.config/fish/functions/aur-async.fish @@ -1,5 +0,0 @@ -function aur-async - aur sync -f --no-ver $argv - and sudo pacman -S $argv -end - diff --git a/fish/.config/fish/functions/aur-cleanup.fish b/fish/.config/fish/functions/aur-cleanup.fish @@ -1,40 +0,0 @@ -function aur-cleanup - source ~/.config/fish/utils/pacmsg.fish - msg1 "Cleaning pacman cache..." - sudo pacman -Sc --noconfirm - msg1 "Rebuilding custom repositories..." - set repos (awk '{ - if ($1 ~ /\[.*\]/) { - name = gensub(/\[(.*)\]/, "\\\\1", 1, $1) - } else if ($1 ~ /Server/) { - sub(/.*Server.*=.*file:\/\//, ""); - print name ":" $0 - } - }' /etc/pacman.conf) - - for i in (seq (count $repos)) - set reponames[$i] (echo $repos[$i] | cut -d':' -f1) - set repodirs[$i] (echo $repos[$i] | cut -d':' -f2) - set pkgs $repodirs[$i]/*.pkg.tar.xz - rm $repodirs[$i]/$reponames[$i].db.tar - repo-add -n $repodirs[$i]/$reponames[$i].db.tar $pkgs - end - sudo pacman -Sy - msg1 "Cleaning aur sync cache..." - for dir in ~/.cache/aurutils/sync/* - set pkgname (bash -c "source $dir/PKGBUILD;"'echo $pkgname') - if not pacman -Qi $pkgname >/dev/null 2>/dev/null - echo Removing $dir... - rm -rf -- $dir - else - set reponame (pacman -Ss '^'(string escape --style=regex $pkgname)'$' | head -1 | sed 's@/.*$@@g') - if contains $reponame $reponames - git -C $dir clean -xdf - else - echo Removing $dir... - rm -rf -- $dir - end - end - end -end - diff --git a/fish/.config/fish/functions/aur-resync-devel.fish b/fish/.config/fish/functions/aur-resync-devel.fish @@ -1,5 +0,0 @@ -function aur-resync-devel - set packages (aur repo --list | cut -f1 | grep -E "$AURVCS") - aur sync $packages --no-ver --print -end - diff --git a/fish/.config/fish/functions/aur-update-devel.fish b/fish/.config/fish/functions/aur-update-devel.fish @@ -1,6 +0,0 @@ -function aur-update-devel - set packages (aur vercmp-devel | cut -d' ' -f1) - if not test -z "$packages" - aur sync $packages --no-ver-argv - end -end diff --git a/fish/.config/fish/functions/aur-vcsync.fish b/fish/.config/fish/functions/aur-vcsync.fish @@ -1,15 +0,0 @@ -function aur-vcsync - source ~/.config/fish/utils/pacmsg.fish - set vcs_list git hg cvs svn bzr - msg1 "Checking newest commit of repositories..." - aur srcver ~/.cache/aurutils/sync/*-$vcs_list > /tmp/vcs.tmp - msg1 "Comparing to locally installed versions..." - set updates (aur vercmp -p /tmp/vcs.tmp -d custom-aur | awk '{print $1}' | sed 's/:$//') - if test -z "$updates" - msg3 "There is nothing to do" - exit - end - msg1 "Updating $updates" - aur sync --no-ver --repo custom-aur $updates -end - diff --git a/fish/.config/fish/functions/aur-vercmp-devel.sh b/fish/.config/fish/functions/aur-vercmp-devel.sh @@ -1,31 +0,0 @@ -#!/bin/bash -set -e -argv0=vercmp-devel -XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache} -AURVCS=".*-(cvs|svn|git|hg|bzr|darcs)$" - -# Pattern the defines VCS packages. The AUR has no formal definition of a VCS -# package - here we include the most common version control systems. -filter_vcs() { - awk -v "mask=$AURVCS" '$1 ~ mask {print $1}' "$@" -} - -# For the purposes of this example, we assume AURDEST contains both -# AUR and non-AUR git repositories (e.g. from github or archweb), with -# corresponding packages in the local repository. -AURDEST=${AURDEST:-$XDG_CACHE_HOME/aurutils/sync} -cd "$AURDEST" - -# Scratch space for intermediary results. -mkdir -pm 0700 "${TMPDIR:-/tmp}/aurutils-$UID" -tmp=$(mktemp -d --tmpdir "aurutils-$UID/$argv0.XXXXXXXX") -trap 'rm -rf "$tmp"' EXIT - -# Retrieve a list of the local repository contents. The repository -# can be specified with the usual aur-repo arguments. -aur repo --list "$@" | tee "$tmp"/db | filter_vcs - >"$tmp"/vcs - -# Update `epoch:pkgver-pkgrel` for each target with `aur-srcver`. -# This runs `makepkg`, cloning upstream to the latest revision. The -# output is then compared with the contents of the local repository. -aur vercmp -p <(xargs -ra "$tmp"/vcs aur srcver) <"$tmp"/db diff --git a/fish/.config/fish/functions/aur.fish b/fish/.config/fish/functions/aur.fish @@ -1,11 +0,0 @@ -#!/usr/bin/env fish -function aur - if test -f "$HOME/.config/fish/functions/aur-$argv[1].fish" - eval "aur-$argv[1]" $argv[2..-1] - else if test -f "/usr/share/doc/aurutils/examples/$argv[1]" - bash "/usr/share/doc/aurutils/examples/$argv[1]" - else - /usr/bin/aur $argv - end -end - diff --git a/fish/.config/fish/functions/extract_recursive.fish b/fish/.config/fish/functions/extract_recursive.fish @@ -1,9 +0,0 @@ -function extract_recursive - set folname (echo $argv[1] | sed 's/\.[^.]*$//') - 7z x $argv[1] -o$folname - echo "0" > /tmp/extrout - while read < /tmp/extrout - find $folname \( -name '*.zip' -o -name '*.xz' -o -name '*.tar' -o -name '*.gz' -o -name "*.tgz" -o -name "*.txz" \) -type f -exec bash -c '7z x "{}" -o$(echo "{}" | sed \'s/\\.[^.]*$//\') && rm "{}"' \; | tee /tmp/extrout - end -end - diff --git a/fish/.config/fish/functions/fish_user_key_bindings.fish b/fish/.config/fish/functions/fish_user_key_bindings.fish @@ -1,3 +0,0 @@ -function fish_user_key_bindings - bind \cr reverse_search -end diff --git a/fish/.config/fish/functions/g.fish b/fish/.config/fish/functions/g.fish @@ -1,31 +0,0 @@ -#!/usr/bin/env fish -function g - set len (count $argv) - if test $len -gt 0 - if test $len -gt 1 - set rest $argv[2..$len] - else - set rest - end - switch $argv[1] - case "s" - git status - case "a" - git add $rest - case "c" - git commit $rest - case "p" - git push $rest - case "pl" - git pull $rest - case "ch" - git checkout $rest - case "d" - git diff $rest - case "m" - git merge $rest - case '*' - git $argv - end - end -end diff --git a/fish/.config/fish/functions/git-subpush.fish b/fish/.config/fish/functions/git-subpush.fish @@ -1,9 +0,0 @@ -function git-subpush - set sub (basename (pwd)) - git push - pushd .. - git add $sub - git commit -m "Update $sub" - git push - popd -end diff --git a/fish/.config/fish/functions/neovide.fish b/fish/.config/fish/functions/neovide.fish @@ -1,11 +0,0 @@ -function neovide - set DISADR (echo $DISPLAY | cut -d':' -f1) - if test -n "$DISADR" - set LOCADR (ip -f inet addr show enp60s0u1u3u3 | sed -En -e 's/.*inet ([0-9.]+).*/\1/p') - nohup nvim --listen $LOCADR:8118 --headless $argv >/dev/null 2>&1 & - disown - ssh -T shyman@$DISADR "env DISPLAY=:0 neovide --remote-tcp $LOCADR:8118" - else - env neovide -- $argv - end -end diff --git a/fish/.config/fish/functions/qsql.fish b/fish/.config/fish/functions/qsql.fish @@ -1,4 +0,0 @@ -function qsql - set PASS ($HOME/Documents/Workspace/Dotfiles/astroid/.config/astroid/get_pass.py "https://$argv[1].db.qual.control-tec.com") - mysql -h $argv[1].db.qual.control-tec.com -u smikulicz -p$PASS $argv[2..] -end diff --git a/fish/.config/fish/functions/reademl.fish b/fish/.config/fish/functions/reademl.fish @@ -1,3 +0,0 @@ -function reademl - awk 'BEGIN {var=9999;} {if ($2=="base64") {var=NR+1} else if (NR!=var && $0=="") {var=9999}; if (NR>var) print $0;}' $argv[1] | base64 -d -end diff --git a/fish/.config/fish/functions/reverse_search.fish b/fish/.config/fish/functions/reverse_search.fish @@ -1,5 +0,0 @@ -function reverse_search - set command (tac ~/.local/share/fish/fish_history | grep '^- cmd: ' | cut -c 8- | fzf) - commandline -r "$command" -end - diff --git a/fish/.config/fish/functions/rollback.fish b/fish/.config/fish/functions/rollback.fish @@ -1,14 +0,0 @@ -function rollback - set Y (date --date "$argv" +%Y) - set m (date --date "$argv" +%m) - set d (date --date "$argv" +%d) - sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bkp - echo "Server=https://archive.archlinux.org/repos/$Y/$m/$d/"'$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist - sudo timedatectl set-ntp false - sudo timedatectl set-time "$Y-$m-$d" - sudo pacman -Syyuu - sudo timedatectl set-ntp true - sudo hwclock --systohc - sudo mv /etc/pacman.d/mirrorlist.bkp /etc/pacman.d/mirrorlist -end - diff --git a/fish/.config/fish/utils/pacmsg.fish b/fish/.config/fish/utils/pacmsg.fish @@ -1,26 +0,0 @@ -function msg1 - set_color -o blue - echo -n ":: " - set_color normal - set_color -o - echo $argv - set_color normal -end - -function msg2 - set_color -o green - echo -n "==> " - set_color normal - set_color -o - echo $argv - set_color normal -end - -function msg3 - set_color -o brblue - echo -n " -> " - set_color normal - set_color -o - echo $argv - set_color normal -end diff --git a/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini @@ -1,261 +0,0 @@ -# -*- conf -*- - -# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) -# term=foot (or xterm-256color if built with -Dterminfo=disabled) -# login-shell=no - -# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode -# title=foot -# locked-title=no - -font=Maple Mono NF:size=8 -# font-bold=<bold variant of regular font> -# font-italic=<italic variant of regular font> -# font-bold-italic=<bold+italic variant of regular font> -# font-size-adjustment=0.5 -# line-height=<font metrics> -# letter-spacing=0 -# horizontal-letter-offset=0 -# vertical-letter-offset=0 -# underline-offset=<font metrics> -# underline-thickness=<font underline thickness> -# strikeout-thickness=<font strikeout thickness> -# box-drawings-uses-font-glyphs=no -dpi-aware=yes - -# initial-window-size-pixels=700x500 # Or, -# initial-window-size-chars=<COLSxROWS> -# initial-window-mode=windowed -# pad=0x0 # optionally append 'center' -# resize-by-cells=yes -# resize-keep-grid=yes -# resize-delay-ms=100 - -# bold-text-in-bright=no -# word-delimiters=,│`|:"'()[]{}<> -# selection-target=primary -# workers=<number of logical CPUs> -# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux) -# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD) - -[environment] -# name=value - -# [security] -# osc52=enabled # disabled|copy-enabled|paste-enabled|enabled - -[bell] -# urgent=no -# notify=no -# visual=no -# command= -# command-focused=no - -# [desktop-notifications] -# command=notify-send --wait --app-name ${app-id} --icon ${app-id} --category ${category} --urgency ${urgency} --expire-time ${expire-time} --hint STRING:image-path:${icon} --hint BOOLEAN:suppress-sound:${muted} --hint STRING:sound-name:${sound-name} --replace-id ${replace-id} ${action-argument} --print-id -- ${title} ${body} -# command-action-argument=--action ${action-name}=${action-label} -# close="" -# inhibit-when-focused=yes - - -[scrollback] -# lines=1000 -# multiplier=3.0 -# indicator-position=relative -# indicator-format="" - -[url] -# launch=xdg-open ${url} -# label-letters=sadfjklewcmpgh -# osc8-underline=url-mode -# protocols=http, https, ftp, ftps, file, gemini, gopher -# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[] - -[cursor] -# style=block -# color=<inverse foreground/background> -# blink=no -# blink-rate=500 -# beam-thickness=1.5 -# underline-thickness=<font underline thickness> - -[mouse] -# hide-when-typing=no -# alternate-scroll-mode=yes - -[touch] -# long-press-delay=400 - -[colors-dark] -alpha=0.8 -background=191724 -foreground=e0def4 -# flash=7f7f00 -# flash-alpha=0.5 - -## Normal/regular colors (color palette 0-7) -regular0=26233a -regular1=eb6f92 -regular2=31748f -regular3=f6c177 -regular4=9ccfd8 -regular5=c4a7e7 -regular6=ebbcba -regular7=e0def4 - -## Bright colors (color palette 8-15) -bright0=6e6a86 -bright1=eb6f92 -bright2=31748f -bright3=9ccfd8 -bright4=f6c177 -bright5=c4a7e7 -bright6=ebbcba -bright7=e0def4 - -## dimmed colors (see foot.ini(5) man page) -# dim0=<not set> -# ... -# dim7=<not-set> - -## The remaining 256-color palette -# 16 = <256-color palette #16> -# ... -# 255 = <256-color palette #255> - -## Sixel colors -# sixel0 = 000000 -# sixel1 = 3333cc -# sixel2 = cc2121 -# sixel3 = 33cc33 -# sixel4 = cc33cc -# sixel5 = 33cccc -# sixel6 = cccc33 -# sixel7 = 878787 -# sixel8 = 424242 -# sixel9 = 545499 -# sixel10 = 994242 -# sixel11 = 549954 -# sixel12 = 995499 -# sixel13 = 549999 -# sixel14 = 999954 -# sixel15 = cccccc - -## Misc colors -# selection-foreground=<inverse foreground/background> -# selection-background=<inverse foreground/background> -# jump-labels=<regular0> <regular3> # black-on-yellow -# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue -# search-box-no-match=<regular0> <regular1> # black-on-red -# search-box-match=<regular0> <regular3> # black-on-yellow -# urls=<regular3> - -[csd] -# preferred=server -# size=26 -# font=<primary font> -# color=<foreground color> -# hide-when-maximized=no -# double-click-to-maximize=yes -# border-width=0 -# border-color=<csd.color> -# button-width=26 -# button-color=<background color> -# button-minimize-color=<regular4> -# button-maximize-color=<regular2> -# button-close-color=<regular1> - -[key-bindings] -# scrollback-up-page=Shift+Page_Up -# scrollback-up-half-page=none -# scrollback-up-line=none -# scrollback-down-page=Shift+Page_Down -# scrollback-down-half-page=none -# scrollback-down-line=none -# scrollback-home=none -# scrollback-end=none -# clipboard-copy=Control+Shift+c XF86Copy -# clipboard-paste=Control+Shift+v XF86Paste -# primary-paste=Shift+Insert -# search-start=Control+Shift+r -# font-increase=Control+plus Control+equal Control+KP_Add -# font-decrease=Control+minus Control+KP_Subtract -# font-reset=Control+0 Control+KP_0 -# spawn-terminal=Control+Shift+n -# minimize=none -# maximize=none -# fullscreen=none -# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none -# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none -# pipe-selected=[xargs -r firefox] none -# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard -# show-urls-launch=Control+Shift+o -# show-urls-copy=none -# show-urls-persistent=none -# prompt-prev=Control+Shift+z -# prompt-next=Control+Shift+x -# unicode-input=Control+Shift+u -# noop=none -# quit=none - -[search-bindings] -# cancel=Control+g Control+c Escape -# commit=Return -# find-prev=Control+r -# find-next=Control+s -# cursor-left=Left Control+b -# cursor-left-word=Control+Left Mod1+b -# cursor-right=Right Control+f -# cursor-right-word=Control+Right Mod1+f -# cursor-home=Home Control+a -# cursor-end=End Control+e -# delete-prev=BackSpace -# delete-prev-word=Mod1+BackSpace Control+BackSpace -# delete-next=Delete -# delete-next-word=Mod1+d Control+Delete -# extend-char=Shift+Right -# extend-to-word-boundary=Control+w Control+Shift+Right -# extend-to-next-whitespace=Control+Shift+w -# extend-line-down=Shift+Down -# extend-backward-char=Shift+Left -# extend-backward-to-word-boundary=Control+Shift+Left -# extend-backward-to-next-whitespace=none -# extend-line-up=Shift+Up -# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste -# primary-paste=Shift+Insert -# unicode-input=none -# scrollback-up-page=Shift+Page_Up -# scrollback-up-half-page=none -# scrollback-up-line=none -# scrollback-down-page=Shift+Page_Down -# scrollback-down-half-page=none -# scrollback-down-line=none -# scrollback-home=none -# scrollback-end=none - -[url-bindings] -# cancel=Control+g Control+c Control+d Escape -# toggle-url-visible=t - -[text-bindings] -# \x03=Mod4+c # Map Super+c -> Ctrl+c - -[mouse-bindings] -# scrollback-up-mouse=BTN_WHEEL_BACK -# scrollback-down-mouse=BTN_WHEEL_FORWARD -# font-increase=Control+BTN_WHEEL_BACK -# font-decrease=Control+BTN_WHEEL_FORWARD -# selection-override-modifiers=Shift -# primary-paste=BTN_MIDDLE -# select-begin=BTN_LEFT -# select-begin-block=Control+BTN_LEFT -# select-extend=BTN_RIGHT -# select-extend-character-wise=Control+BTN_RIGHT -# select-word=BTN_LEFT-2 -# select-word-whitespace=Control+BTN_LEFT-2 -# select-quote = BTN_LEFT-3 -# select-row=BTN_LEFT-4 - -# vim: ft=dosini -[tweak] -font-monospace-warn=false diff --git a/randpaper/.config/randpaper/config.toml b/randpaper/.config/randpaper/config.toml @@ -0,0 +1,8 @@ +wallpaper_dir = "/home/szymon/Pictures/Wallpapers" +backend = "sway" # "sway" | "hyprland" +renderer = "awww" # "swaybg" | "awww" +time = "30m" # used only in daemon mode + +transition_type = "fade" +transition_step = 90 +transition_fps = 60 diff --git a/sway/.config/sway/config b/sway/.config/sway/config @@ -151,7 +151,7 @@ input type:touchpad { output LVDS-1 resolution 1366x768 position 0,0 scale 1 # Change wallpaper -bindsym $mod+p exec $HOME/.usr/local/bin/hpaper next +bindsym $mod+p exec pkill -SIGUSR1 randpaper # Take screenshot bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy @@ -169,7 +169,8 @@ for_window [instance="^octave\-gui$"] floating enable for_window [instance="^matplotlib$"] floating enable for_window [app_id="com.sub.tui"] floating enable -exec $HOME/.usr/local/bin/hpaper start +exec $HOME/.usr/local/bin/awww-daemon +exec zsh -c "randpaper --daemon" exec mako exec wlsunset -l 50.049683 -L 19.944544