From 26c21e0eb51dfbd2995f16be137da399346bb55f Mon Sep 17 00:00:00 2001 From: desolate <...> Date: Fri, 29 May 2026 10:38:40 +0300 Subject: [PATCH] remove river and sandbar --- dotfiles/install-river.sh | 3 - dotfiles/install.sh | 1 - dotfiles/river/.config/river/bar | 17 ----- dotfiles/river/.config/river/init | 24 ------- dotfiles/river/.config/river/init-input | 13 ---- dotfiles/river/.config/river/init-keymaps | 64 ----------------- dotfiles/river/.config/river/status | 88 ----------------------- packages/install-river.sh | 8 --- packages/install-sandbar.sh | 3 - packages/install.sh | 2 - services/install-river.sh | 3 - 11 files changed, 226 deletions(-) delete mode 100755 dotfiles/install-river.sh delete mode 100755 dotfiles/river/.config/river/bar delete mode 100755 dotfiles/river/.config/river/init delete mode 100755 dotfiles/river/.config/river/init-input delete mode 100755 dotfiles/river/.config/river/init-keymaps delete mode 100755 dotfiles/river/.config/river/status delete mode 100755 packages/install-river.sh delete mode 100755 packages/install-sandbar.sh delete mode 100755 services/install-river.sh diff --git a/dotfiles/install-river.sh b/dotfiles/install-river.sh deleted file mode 100755 index 4288c78..0000000 --- a/dotfiles/install-river.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -install_dotfiles "$HOME" "$DOTFILES_DIR" "river" diff --git a/dotfiles/install.sh b/dotfiles/install.sh index e644bdb..c3db9fa 100755 --- a/dotfiles/install.sh +++ b/dotfiles/install.sh @@ -10,7 +10,6 @@ INSTALLING DOTFILES: . "$DOTFILES_DIR/install-helix.sh" . "$DOTFILES_DIR/install-mako.sh" . "$DOTFILES_DIR/install-mango.sh" -. "$DOTFILES_DIR/install-river.sh" . "$DOTFILES_DIR/install-scooter.sh" . "$DOTFILES_DIR/install-tmux.sh" . "$DOTFILES_DIR/install-yazi.sh" diff --git a/dotfiles/river/.config/river/bar b/dotfiles/river/.config/river/bar deleted file mode 100755 index f4908ff..0000000 --- a/dotfiles/river/.config/river/bar +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -FIFO="$XDG_RUNTIME_DIR/sandbar" -[ -e "$FIFO" ] && rm -f "$FIFO" -mkfifo "$FIFO" - -while cat "$FIFO"; do :; done | sandbar \ - -font "Hack Nerd Font:size=15" \ - -active-fg-color "#000000ff" \ - -active-bg-color "#ccccccff" \ - -inactive-fg-color "#888888ff" \ - -inactive-bg-color "#000000ff" \ - -urgent-fg-color "#000000" \ - -urgent-bg-color "#cc241d" \ - -title-fg-color "#aaaaaa" \ - -title-bg-color "#000000ff" \ - -vertical-padding 4 diff --git a/dotfiles/river/.config/river/init b/dotfiles/river/.config/river/init deleted file mode 100755 index 608e048..0000000 --- a/dotfiles/river/.config/river/init +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# Tiled Layout - -rivertile -view-padding 4 -outer-padding 0 -main-ratio 0.5 & -riverctl default-layout rivertile -riverctl default-attach-mode above - -# Move cursor to the center of focused window -riverctl set-cursor-warp on-focus-change - -. "$HOME/.config/river/init-keymaps" -. "$HOME/.config/river/init-input" - -# Background Color -riverctl background-color 0x000000 - -pkill -9 pipewire -riverctl spawn 'pipewire' - -riverctl spawn 'mako' - -riverctl spawn "$HOME/.config/river/bar" -riverctl spawn "$HOME/.config/river/status" diff --git a/dotfiles/river/.config/river/init-input b/dotfiles/river/.config/river/init-input deleted file mode 100755 index 5e762b5..0000000 --- a/dotfiles/river/.config/river/init-input +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -riverctl set-repeat 50 180 -riverctl keyboard-layout -options ctrl:nocaps us - -for device in $(riverctl list-inputs | grep -i touchpad); do - riverctl input "$device" tap-button-map left-right-middle - riverctl input "$device" tap enabled - riverctl input "$device" scroll-method two-finger - riverctl input "$device" natural-scroll enabled - riverctl input "$device" drag enabled - riverctl input "$device" disable-while-typing disabled -done diff --git a/dotfiles/river/.config/river/init-keymaps b/dotfiles/river/.config/river/init-keymaps deleted file mode 100755 index bf319d6..0000000 --- a/dotfiles/river/.config/river/init-keymaps +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - - -# --------------------- -# MOUSE -# --------------------- - -riverctl map-pointer normal Super BTN_LEFT move-view -riverctl map-pointer normal Super BTN_RIGHT resize-view -riverctl map-pointer normal Super BTN_MIDDLE toggle-float - -# --------------------- -# KEYBOARD -# --------------------- - -mod=Mod1 - -riverctl map normal $mod Return spawn 'sh -c "ghostty & sleep 0.2 && riverctl focus-view next"' -riverctl map normal $mod Space spawn 'fuzzel' -riverctl map normal $mod q close -riverctl map normal $mod m spawn 'riverctl exit' -riverctl map normal $mod+Shift l spawn 'waylock -init-color 0x000000 -input-color 0x111111 -fail-color 0x220000' -riverctl map normal $mod f toggle-float - -# Screenshots -riverctl map normal None Print spawn ' -FILE_NAME=$(date +"%Y-%m-%d-%H-%M-%S") && -FILE="$HOME/$FILE_NAME.png" && -grim - | wl-copy --type image/png && -wl-paste --type image/png > "$FILE" && -notify-send --icon="$FILE" "$FILE_NAME" "Full screen shot saved and copied" -' -riverctl map normal None XF86SelectiveScreenshot spawn ' -FILE_NAME=$(date +"%Y-%m-%d-%H-%M-%S") && -FILE="$HOME/$FILE_NAME.png" && -grim -g "$(slurp)" - | wl-copy --type image/png && -wl-paste --type image/png > "$FILE" && -notify-send --icon="$FILE" "$FILE_NAME" "Screen region shot saved and copied" -' - -# Volume -riverctl map normal None XF86AudioRaiseVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+' -riverctl map normal None XF86AudioLowerVolume spawn 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-' -riverctl map normal None XF86AudioMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle' - -# Brightness -riverctl map normal None XF86MonBrightnessUp spawn 'light -A 5' -riverctl map normal None XF86MonBrightnessDown spawn 'light -U 5' - -# Navigation -riverctl map normal $mod h focus-view left -riverctl map normal $mod j focus-view down -riverctl map normal $mod k focus-view up -riverctl map normal $mod l focus-view right - -riverctl map normal $mod Tab focus-view previous -riverctl map normal $mod+Shift Tab focus-view next - -# Tags Navigation -for i in $(seq 1 9); do - tag=$((1 << ($i - 1))) - riverctl map normal $mod $i set-focused-tags $tag - riverctl map normal $mod+Shift $i spawn "riverctl set-view-tags $tag && riverctl set-focused-tags $tag" -done diff --git a/dotfiles/river/.config/river/status b/dotfiles/river/.config/river/status deleted file mode 100755 index c2938c2..0000000 --- a/dotfiles/river/.config/river/status +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/env sh - -MEM_FG_C="#CD95D7" -CPU_FG_C="#9EA7D9" -BAT_FG_C="#AED481" -VOL_FG_C="#EEEEEE" -BRG_FG_C="#FFCA28" -DAT_FG_C="#FE8964" -TIM_FG_C="#FE8964" - -#  - -cpu() -{ - cpu=$(top -bn1 | awk '/Cpu\(s\):/ {print $2 + $4 "%"}') -} - -memory() -{ - memory=$(free -m | awk '/^Mem:/ {printf "%.1f", $3/2024}') -} - -disk() { - disk="$(df -h | awk 'NR==2{print $4}')" -} - -cdate() -{ - cdate="$(date "+%a %d %b")" -} - -ctime() -{ - ctime="$(date "+%I:%M:%S %p")" -} - -battery() -{ - # read -r bat_status "$FIFO" -} - -printf "%s" "$$" > "$XDG_RUNTIME_DIR/status_pid" -FIFO="$XDG_RUNTIME_DIR/sandbar" -[ -e "$FIFO" ] || mkfifo "$FIFO" -sec=0 - -while true; do - sleep 1 & - wait && { - [ $((sec % 1)) -eq 0 ] && memory - [ $((sec % 1)) -eq 0 ] && cpu - # [ $((sec % 1)) -eq 0 ] && disk - [ $((sec % 60)) -eq 0 ] && battery - [ $((sec % 1)) -eq 0 ] && vol - [ $((sec % 1)) -eq 0 ] && brightness - [ $((sec % 1)) -eq 0 ] && cdate - [ $((sec % 1)) -eq 0 ] && ctime - - [ $((sec % 1)) -eq 0 ] && display - - sec=$((sec + 1)) - } -done diff --git a/packages/install-river.sh b/packages/install-river.sh deleted file mode 100755 index 6b19e9d..0000000 --- a/packages/install-river.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -if install_package "river"; then - if [ ! -d "/run/user/$(id -u)" ]; then - sudo mkdir "/run/user/$(id -u)" - fi - sudo chmod 700 "/run/user/$(id -u)" -fi diff --git a/packages/install-sandbar.sh b/packages/install-sandbar.sh deleted file mode 100755 index 818f0b2..0000000 --- a/packages/install-sandbar.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -install_package "sandbar" diff --git a/packages/install.sh b/packages/install.sh index e8b6cf0..de59d89 100755 --- a/packages/install.sh +++ b/packages/install.sh @@ -28,8 +28,6 @@ INSTALLING PACKAGES: . "$PACKAGES_DIR/install-noto-fonts.sh" . "$PACKAGES_DIR/install-pipewire.sh" . "$PACKAGES_DIR/install-ripgrep.sh" -. "$PACKAGES_DIR/install-river.sh" -. "$PACKAGES_DIR/install-sandbar.sh" . "$PACKAGES_DIR/install-satty.sh" . "$PACKAGES_DIR/install-seatd.sh" . "$PACKAGES_DIR/install-slurp.sh" diff --git a/services/install-river.sh b/services/install-river.sh deleted file mode 100755 index 2d1b5e9..0000000 --- a/services/install-river.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -install_service "river"