From b88dc9011a08528f55d2574344bf7f04a1e05d17 Mon Sep 17 00:00:00 2001 From: amolinae06 Date: Sun, 25 May 2025 14:38:46 -0600 Subject: [PATCH] And I could never get enough --- .config/fuzzel/fuzzel.ini | 6 +- .config/gtk-3.0/settings.ini | 3 +- .config/hellwal/templates/colors-river | 22 +++++ .config/hellwal/templates/dam-colors.h | 5 ++ .config/hellwal/templates/fuzzel-colors.ini | 11 --- .config/river/init | 96 +++++++++++++++++++++ .config/zsh/.zshrc | 2 +- .local/bin/aws | 13 +++ .local/bin/dam | 2 + .local/bin/fsss | 4 - .local/bin/getvol | 19 ---- .local/bin/nvim | 19 ++-- .local/bin/rgnss | 2 - .local/bin/riverlaunch | 5 ++ README.md | 0 15 files changed, 159 insertions(+), 50 deletions(-) create mode 100644 .config/hellwal/templates/colors-river create mode 100644 .config/hellwal/templates/dam-colors.h delete mode 100644 .config/hellwal/templates/fuzzel-colors.ini create mode 100755 .config/river/init create mode 100755 .local/bin/aws create mode 100755 .local/bin/dam delete mode 100755 .local/bin/fsss delete mode 100755 .local/bin/getvol delete mode 100755 .local/bin/rgnss create mode 100755 .local/bin/riverlaunch delete mode 100644 README.md diff --git a/.config/fuzzel/fuzzel.ini b/.config/fuzzel/fuzzel.ini index 8619750..4a929a7 100644 --- a/.config/fuzzel/fuzzel.ini +++ b/.config/fuzzel/fuzzel.ini @@ -1,9 +1,11 @@ [main] dpi-aware=yes icon-theme=Papirus-Dark -width=25 +width=24 font=Inconsolata -line-height=18 +lines=14 +line-height=16 +horizontal-pad=32 fields=name,generic,comment,categories,filename,keywords terminal=footclient -e prompt="> " diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini index 2410f4e..95482b6 100644 --- a/.config/gtk-3.0/settings.ini +++ b/.config/gtk-3.0/settings.ini @@ -2,5 +2,6 @@ gtk-cursor-theme-name=macOS gtk-cursor-theme-size=28 gtk-icon-theme-name=Papirus-Dark -gtk-font-name=Inconsolata 11 +gtk-font-name=Inconsolata 12 gtk-application-prefer-dark-theme=true +gtk-dialogs-use-header=false diff --git a/.config/hellwal/templates/colors-river b/.config/hellwal/templates/colors-river new file mode 100644 index 0000000..74be423 --- /dev/null +++ b/.config/hellwal/templates/colors-river @@ -0,0 +1,22 @@ +wallpaper="%%wallpaper%%" +background="%%background.hex%%" +foreground="%%foreground.hex%%" +curstor="%%cursor.hex%%" +border="%%border.hex%%" + +color0="%%color0.hex%%" +color1="%%color1.hex%%" +color2="%%color2.hex%%" +color3="%%color3.hex%%" +color4="%%color4.hex%%" +color5="%%color5.hex%%" +color6="%%color6.hex%%" +color7="%%color7.hex%%" +color8="%%color8.hex%%" +color9="%%color9.hex%%" +color10="%%color10.hex%%" +color11="%%color11.hex%%" +color12="%%color12.hex%%" +color13="%%color13.hex%%" +color14="%%color14.hex%%" +color15="%%color15.hex%%" diff --git a/.config/hellwal/templates/dam-colors.h b/.config/hellwal/templates/dam-colors.h new file mode 100644 index 0000000..00b77ec --- /dev/null +++ b/.config/hellwal/templates/dam-colors.h @@ -0,0 +1,5 @@ +static uint32_t colors[][3] = { + /* fg bg */ + [SchemeNorm] = { 0x%%color15.hex%%ff, 0x%%color0.hex%%ff }, + [SchemeSel] = { 0x%%color15.hex%%ff, 0x%%color2.hex%%ff }, +}; diff --git a/.config/hellwal/templates/fuzzel-colors.ini b/.config/hellwal/templates/fuzzel-colors.ini deleted file mode 100644 index d4c20c7..0000000 --- a/.config/hellwal/templates/fuzzel-colors.ini +++ /dev/null @@ -1,11 +0,0 @@ -[colors] -background=%%background.hex%%ff -prompt=%%foreground.hex%%ff -text=%%foreground.hex%%ff -placeholder=%%foreground.hex%%ff -input=%%foreground.hex%%ff -match=%%foreground.hex%%ff -selection=%%color1.hex%%ff -selection-text=%%background.hex%%ff -selection-match=%%foreground.hex%%ff -border=%%color1.hex%%ff diff --git a/.config/river/init b/.config/river/init new file mode 100755 index 0000000..05b21aa --- /dev/null +++ b/.config/river/init @@ -0,0 +1,96 @@ +#!/bin/sh +source $HOME/.cache/hellwal/colors-river + +# Set background and border color +riverctl background-color "0x$background" +riverctl border-color-focused "0x$color1" +riverctl border-color-unfocused "0x$color2" + +riverctl spawn "slstatus | dam" +riverctl spawn "wbg "$wallpaper"" +riverctl spawn "foot --server" +riverctl spawn "swayidle" +riverctl spawn "mako" + +riverctl focus-follows-cursor always +riverctl xcursor-theme macOS 28 + +riverctl keyboard-layout latam +riverctl input pointer-1739-0-Synaptics_TM3276-022 events disabled + +# Define ModKey +mod="Super" + +riverctl map normal $mod+Shift Return spawn footclient +riverctl map normal $mod E spawn "footclient --title lf lf" +riverctl map normal $mod S spawn "footclient --title Spotify spotify_player" +riverctl map normal $mod R spawn fuzzel +riverctl map normal $mod+Shift spawn librewolf +riverctl map normal $mod V spawn "footclient --title ncpamixer ncpamixer" +riverctl map normal $mod+Shift C spawn camera +riverctl map normal $mod L spawn swaylock +riverctl map normal $mod+Shift S spawn "aws -r" +riverctl map normal None Print spawn "aws -f" +riverctl map normal None Print+Shift spawn "recordscreen" + +# Super+Q to close the focused view +riverctl map normal $mod Q close +riverctl map normal $mod+Shift Q spawn powermenu + +riverctl map normal Super Return zoom + +riverctl map-pointer normal $mod BTN_LEFT move-view +riverctl map-pointer normal $mod BTN_RIGHT resize-view +riverctl map-pointer normal $mod BTN_MIDDLE toggle-float + +# River +riverctl default-attach-mode top + +# Rivercarro +riverctl map normal $mod N send-layout-cmd rivercarro "main-location-cycle left,monocle" + +for i in $(seq 1 9) +do + tags=$((1 << ($i - 1))) + + riverctl map normal Super $i set-focused-tags $tags + + riverctl map normal Super+Shift $i set-view-tags $tags + + riverctl map normal Super+Control $i toggle-focused-tags $tags + + riverctl map normal Super+Shift+Control $i toggle-view-tags $tags +done + +all_tags=$(((1 << 32) - 1)) +riverctl map normal Super 0 set-focused-tags $all_tags +riverctl map normal Super+Shift 0 set-view-tags $all_tags + +# Super+Space to toggle float +riverctl map normal Super Space toggle-float + +# Super+F to toggle fullscreen +riverctl map normal Super F toggle-fullscreen + +for mode in normal locked +do + riverctl map normal None XF86AudioRaiseVolume spawn "wpctl set-volume -l 1.0 @DEFAULT_SINK@ 5%+ && pkill -RTMIN+2 slstatus" + riverctl map normal None XF86AudioLowerVolume spawn "wpctl set-volume -l 1.0 @DEFAULT_SINK@ 5%- && pkill -RTMIN+2 slstatus" + riverctl map normal None XF86AudioMute spawn "wpctl set-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+2 slstatus" + riverctl map normal None XF86MonBrightnessUp spawn "brillo -a -u 125000 -q -A 5" + riverctl map normal None XF86MonBrightnessDown spawn "brillo -a -u 125000 -q -U 5" +done + +# Set keyboard repeat rate +riverctl set-repeat 25 600 + +# Make all views with an app-id that starts with "float" and title "foo" start floating. +riverctl rule-add -app-id "mpv" -title "webcam" float + +# Make all views with app-id "bar" and any title use client-side decorations +riverctl rule-add -app-id "librewolf" ssd +riverctl rule-add -app-id "firefox" ssd + +# River will send the process group of the init executable SIGTERM on exit. +riverctl default-layout rivercarro +rivercarro -outer-gaps 4 -inner-gaps 4 -per-tag -no-smart-gaps & diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 0c46a4e..6eaa92a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -74,8 +74,8 @@ preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. alias sudo='doas' alias neofetch='fastfetch' alias ls='ls -lah' +alias vim='nvim' alias wal='hellwal -q' -alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' # Commands fastfetch diff --git a/.local/bin/aws b/.local/bin/aws new file mode 100755 index 0000000..7e3d451 --- /dev/null +++ b/.local/bin/aws @@ -0,0 +1,13 @@ +#!/bin/sh + +notify(){ + notify-send "aws" "screenshot copied to clipboard" +} + +img="$HOME/Pictures/$(date +"%d_%m_%y-%H_%M_%S").png" + +case "$1" in + -f) grim "$img" && wl-copy -t image/png < "$img" && notify ;; + -r) grim -g "$(slurp)" "$img" && wl-copy -t image/png < "$img" && notify ;; + -h|*) echo "usage: aws [-f] [-r]" >&2; exit 1; ;; +esac diff --git a/.local/bin/dam b/.local/bin/dam new file mode 100755 index 0000000..61c6e01 --- /dev/null +++ b/.local/bin/dam @@ -0,0 +1,2 @@ +#!/bin/sh +LD_LIBRARY_PATH="$HOME"/Documents/Miscellaneous/alpchroot/usr/lib "$HOME"/.local/src/dam/dam "$@" diff --git a/.local/bin/fsss b/.local/bin/fsss deleted file mode 100755 index 47d80ca..0000000 --- a/.local/bin/fsss +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# takes a fullscreen screenshot and sends notification afterwards -grim - | wl-copy && notify-send "grim" "screenshot copied to clipboard" diff --git a/.local/bin/getvol b/.local/bin/getvol deleted file mode 100755 index 7943255..0000000 --- a/.local/bin/getvol +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -dev=@DEFAULT_SINK@ -! [ "$1" = '-m' ] || { dev=@DEFAULT_SOURCE@; shift; } - -vol="$(wpctl get-volume "$dev")" - -[ "$vol" != "${vol%\[MUTED\]}" ] && echo "MUTED" && exit -vol="${vol#Volume: }" - -split() { - # For ommiting the . without calling and external program. - IFS=$2 - set -- $1 - printf '%s' "$@" -} - -vol="$(printf "%.0f" "$(split "$vol" ".")")" -echo "$vol" diff --git a/.local/bin/nvim b/.local/bin/nvim index 5dc4566..fb571eb 100755 --- a/.local/bin/nvim +++ b/.local/bin/nvim @@ -1,22 +1,21 @@ #!/bin/sh -ROOT=""$HOME"/Documents/Miscellaneous/archroot" +ROOT=""$HOME"/Documents/Miscellaneous/alpchroot/" bwrap \ + --bind "$ROOT" / \ --dev-bind /dev /dev \ - --tmpfs /tmp \ --proc /proc \ + --tmpfs /tmp \ + --bind "$ROOT"/usr /usr \ + --bind "$ROOT"/bin /bin \ + --bind "$ROOT"/sbin /sbin \ + --bind "$ROOT"/etc /etc \ --bind "$ROOT"/lib /lib \ --bind "$ROOT"/lib64 /lib64 \ - --bind "$ROOT"/usr/lib /usr/lib \ - --bind "$ROOT"/usr/lib64 /usr/lib64 \ - --bind "$ROOT"/usr/bin /usr/bin \ - --bind "$ROOT"/bin /bin \ - --bind "$ROOT"/usr/share /usr/share \ - --bind "$ROOT"/etc /etc \ - --ro-bind "$ROOT"/etc/resolv.conf /etc/resolv.conf \ + --setenv SHELL /bin/ash \ --bind "$HOME" "$HOME" \ --setenv "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \ --bind "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \ + --share-net \ /usr/bin/nvim "$@" - diff --git a/.local/bin/rgnss b/.local/bin/rgnss deleted file mode 100755 index 9fe9405..0000000 --- a/.local/bin/rgnss +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -x -grim -g "$(slurp /dev/null 2>&1 +dbus-run-session river +exec touch /tmp/swaylock-sleep && inotifyd swaylock /tmp/swaylock-sleep + diff --git a/README.md b/README.md deleted file mode 100644 index e69de29..0000000