Compare commits

...

3 Commits

Author SHA1 Message Date
desolate 0cff64e473 keep title for ghostty 2026-05-19 19:03:39 +03:00
desolate fd9c096385 tweak tiling 2026-05-19 19:02:39 +03:00
desolate 25f90b7388 tweak status bar 2026-05-19 19:01:57 +03:00
4 changed files with 36 additions and 9 deletions
-1
View File
@@ -3,7 +3,6 @@ theme = "LiquidCarbonTransparent"
background-blur = 255
background-opacity = 0.98
title = " "
window-height = 40
window-width = 140
window-decoration = none
+1 -1
View File
@@ -2,7 +2,7 @@
# Tiled Layout
rivertile -view-padding 4 -outer-padding 0 &
rivertile -view-padding 4 -outer-padding 0 -main-ratio 0.5 &
riverctl default-layout rivertile
riverctl default-attach-mode above
@@ -20,6 +20,7 @@ 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 '
+34 -7
View File
@@ -1,5 +1,15 @@
#!/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 "%"}')
@@ -24,18 +34,34 @@ ctime()
ctime="$(date "+%I:%M:%S %p")"
}
bat() {
battery()
{
# read -r bat_status </sys/class/power_supply/BAT0/status
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
bat="$bat_capacity%"
battery="$bat_capacity"
}
vol() {
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f%%\n", $2*100}')
vol()
{
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f\n", $2*100}')
}
display() {
echo "all status  $memory  $cpu 󰁹$bat 󰋋 $vol 󰃭 $cdate 󰥔 $ctime" >"$FIFO"
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"
@@ -49,8 +75,9 @@ while true; do
[ $((sec % 1)) -eq 0 ] && memory
[ $((sec % 1)) -eq 0 ] && cpu
# [ $((sec % 1)) -eq 0 ] && disk
[ $((sec % 60)) -eq 0 ] && bat
[ $((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