remove river and sandbar
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_dotfiles "$HOME" "$DOTFILES_DIR" "river"
|
|
||||||
@@ -10,7 +10,6 @@ INSTALLING DOTFILES:
|
|||||||
. "$DOTFILES_DIR/install-helix.sh"
|
. "$DOTFILES_DIR/install-helix.sh"
|
||||||
. "$DOTFILES_DIR/install-mako.sh"
|
. "$DOTFILES_DIR/install-mako.sh"
|
||||||
. "$DOTFILES_DIR/install-mango.sh"
|
. "$DOTFILES_DIR/install-mango.sh"
|
||||||
. "$DOTFILES_DIR/install-river.sh"
|
|
||||||
. "$DOTFILES_DIR/install-scooter.sh"
|
. "$DOTFILES_DIR/install-scooter.sh"
|
||||||
. "$DOTFILES_DIR/install-tmux.sh"
|
. "$DOTFILES_DIR/install-tmux.sh"
|
||||||
. "$DOTFILES_DIR/install-yazi.sh"
|
. "$DOTFILES_DIR/install-yazi.sh"
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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"
|
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -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 </sys/class/power_supply/BAT0/status
|
|
||||||
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
|
|
||||||
battery="$bat_capacity"
|
|
||||||
}
|
|
||||||
|
|
||||||
vol()
|
|
||||||
{
|
|
||||||
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f\n", $2*100}')
|
|
||||||
}
|
|
||||||
|
|
||||||
brightness()
|
|
||||||
{
|
|
||||||
brightness=$(light -G | awk '{print int($1)}')
|
|
||||||
}
|
|
||||||
|
|
||||||
display()
|
|
||||||
{
|
|
||||||
memory_str="^fg($MEM_FG_C) $memory^fg()"
|
|
||||||
cpu_str="^fg($CPU_FG_C) $cpu^fg()"
|
|
||||||
battery_str="^fg($BAT_FG_C)$battery^fg()"
|
|
||||||
volume_str="^fg($VOL_FG_C) $vol^fg()"
|
|
||||||
brightness_str="^fg($BRG_FG_C) $brightness^fg()"
|
|
||||||
date_str="^fg($DAT_FG_C) $cdate^fg()"
|
|
||||||
time_str="^fg($TIM_FG_C) $ctime^fg()"
|
|
||||||
|
|
||||||
echo "all status $memory_str $cpu_str $battery_str $volume_str $brightness_str $date_str $time_str" >"$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
|
|
||||||
@@ -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
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_package "sandbar"
|
|
||||||
@@ -28,8 +28,6 @@ INSTALLING PACKAGES:
|
|||||||
. "$PACKAGES_DIR/install-noto-fonts.sh"
|
. "$PACKAGES_DIR/install-noto-fonts.sh"
|
||||||
. "$PACKAGES_DIR/install-pipewire.sh"
|
. "$PACKAGES_DIR/install-pipewire.sh"
|
||||||
. "$PACKAGES_DIR/install-ripgrep.sh"
|
. "$PACKAGES_DIR/install-ripgrep.sh"
|
||||||
. "$PACKAGES_DIR/install-river.sh"
|
|
||||||
. "$PACKAGES_DIR/install-sandbar.sh"
|
|
||||||
. "$PACKAGES_DIR/install-satty.sh"
|
. "$PACKAGES_DIR/install-satty.sh"
|
||||||
. "$PACKAGES_DIR/install-seatd.sh"
|
. "$PACKAGES_DIR/install-seatd.sh"
|
||||||
. "$PACKAGES_DIR/install-slurp.sh"
|
. "$PACKAGES_DIR/install-slurp.sh"
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
install_service "river"
|
|
||||||
Reference in New Issue
Block a user