dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit 85e052d9f391274523d3e800b6c63c4975ab54ae
parent fac952fc69eb0232c0cb6ddcc371a4744e9f6288
Author: Ashymad <szymon.mikulicz@posteo.net>
Date:   Sun,  1 Jun 2025 20:47:09 +0200

Foot and sway

Diffstat:
Mfeh/.fehbg | 3++-
Mfish/.config/fish/config.fish | 10+---------
Mfish/.config/fish/functions/7z.fish | 6+++---
Afoot/.config/foot/foot.ini | 261+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mmpv/.config/mpv/mpv.conf | 2+-
Mnvim/.config/nvim/init.vim | 4----
Msway/.config/sway/config | 16++++++++--------
7 files changed, 276 insertions(+), 26 deletions(-)

diff --git a/feh/.fehbg b/feh/.fehbg @@ -1,6 +1,7 @@ #!/usr/bin/env bash if [[ $1 == "r" ]]; then - WP="$(find ~/Pictures/Wallpapers -type f | shuf -n 1)" + WP="$(find ~/Pictures/Wallpapers -type f -name '*.jpg' -o -name '*.png' | perl -MList::Util -e 'print List::Util::shuffle <>' | head -1)" + echo "$WP" ln -fs "$WP" ~/.config/sway/BG fi swaymsg "output * background ~/.config/sway/BG fill" diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish @@ -1,7 +1,5 @@ #!/bin/env fish -#fish_config theme choose "Rosé Pine" - set fish_greeting "" alias fcd 'cd (fd -I -L -d 8 -t d . ~ | fzf)' @@ -19,10 +17,4 @@ alias :e 'nvr -s' alias :split 'swaymsg split v\; exec alacritty' alias :vsplit 'swaymsg split h\; exec alacritty' -direnv hook fish | source - -fish_add_path -P /usr/local/libexec/ccache -set -g CCACHE_PATH /usr/bin:/usr/local/bin - -source "$HOME/.cargo/env.fish" -source /usr/local/share/autojump/autojump.fish +#direnv hook fish | source diff --git a/fish/.config/fish/functions/7z.fish b/fish/.config/fish/functions/7z.fish @@ -1,8 +1,8 @@ function 7z if test "$argv[1]" = "xn" - /usr/bin/7za x "$argv[2]" -o(basename $argv[2] | sed 's/\.[^.]*$//') - else - /usr/bin/7za $argv + /usr/bin/7z x "$argv[2]" -o(basename $argv[2] | sed 's/\.[^.]*$//') + else + /usr/bin/7z $argv end end diff --git a/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini @@ -0,0 +1,261 @@ +# -*- 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=CodeNewRoman Nerd Font: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=no + +# 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] +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/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf @@ -1,5 +1,5 @@ vo=gpu -ao=pulse +ao=pipewire gpu-context=wayland screenshot-directory=~/Pictures/screenshots/ diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim @@ -1,7 +1,3 @@ -if &shell =~# 'fish$' - set shell=bash -endif - if &compatible set nocompatible endif diff --git a/sway/.config/sway/config b/sway/.config/sway/config @@ -7,7 +7,7 @@ font pango:Tamsyn 7 floating_modifier $mod -bindsym $mod+Return exec alacritty +bindsym $mod+Return exec foot bindsym $mod+Shift+q kill @@ -95,9 +95,9 @@ set $power_control "[l]ock log[o]ut [s]uspend [r]eboot [p]oweroff" mode $power_control { bindsym l exec ~/.config/sway/lock.sh; mode "default" bindsym o exec swaymsg exit; mode "default" - bindsym s exec sudo /usr/sbin/acpiconf -s 3; exec ~/.config/sway/lock.sh; mode "default" - bindsym r exec sudo /sbin/reboot; mode "default" - bindsym p exec sudo /sbin/poweroff; mode "default" + bindsym s exec loginctl suspend; mode "default" + bindsym r exec loginctl reboot; mode "default" + bindsym p exec loginctl poweroff; mode "default" bindsym Return mode "default" bindsym Escape mode "default" @@ -107,11 +107,11 @@ bindsym $mod+n mode $power_control default_border pixel 2 titlebar_border_thickness 1 titlebar_padding 2 2 -gaps inner 10 +gaps inner 2 # Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.local/bin/pwctl 0.1 +bindsym XF86AudioLowerVolume exec --no-startup-id ~/.local/bin/pwctl -0.1 bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # C* Music Player controls @@ -171,4 +171,4 @@ exec swayidle \ lock '~/.config/sway/lock.sh' \ before-sleep '~/.config/sway/lock.sh' -exec_always "killall waybar; waybar" +exec_always "pkill waybar; waybar"