Compare commits
3 Commits
20e246c64b
...
0cff64e473
| Author | SHA1 | Date | |
|---|---|---|---|
| 0cff64e473 | |||
| fd9c096385 | |||
| 25f90b7388 |
@@ -3,7 +3,6 @@ theme = "LiquidCarbonTransparent"
|
|||||||
background-blur = 255
|
background-blur = 255
|
||||||
background-opacity = 0.98
|
background-opacity = 0.98
|
||||||
|
|
||||||
title = " "
|
|
||||||
window-height = 40
|
window-height = 40
|
||||||
window-width = 140
|
window-width = 140
|
||||||
window-decoration = none
|
window-decoration = none
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Tiled Layout
|
# 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-layout rivertile
|
||||||
riverctl default-attach-mode above
|
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 q close
|
||||||
riverctl map normal $mod m spawn 'riverctl exit'
|
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+Shift l spawn 'waylock -init-color 0x000000 -input-color 0x111111 -fail-color 0x220000'
|
||||||
|
riverctl map normal $mod f toggle-float
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
riverctl map normal None Print spawn '
|
riverctl map normal None Print spawn '
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
#!/bin/env sh
|
#!/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()
|
||||||
{
|
{
|
||||||
cpu=$(top -bn1 | awk '/Cpu\(s\):/ {print $2 + $4 "%"}')
|
cpu=$(top -bn1 | awk '/Cpu\(s\):/ {print $2 + $4 "%"}')
|
||||||
@@ -24,18 +34,34 @@ ctime()
|
|||||||
ctime="$(date "+%I:%M:%S %p")"
|
ctime="$(date "+%I:%M:%S %p")"
|
||||||
}
|
}
|
||||||
|
|
||||||
bat() {
|
battery()
|
||||||
|
{
|
||||||
# read -r bat_status </sys/class/power_supply/BAT0/status
|
# read -r bat_status </sys/class/power_supply/BAT0/status
|
||||||
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
|
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
|
||||||
bat="$bat_capacity%"
|
battery="$bat_capacity"
|
||||||
}
|
}
|
||||||
|
|
||||||
vol() {
|
vol()
|
||||||
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f%%\n", $2*100}')
|
{
|
||||||
|
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%.0f\n", $2*100}')
|
||||||
}
|
}
|
||||||
|
|
||||||
display() {
|
brightness()
|
||||||
echo "all status $memory $cpu $bat $vol $cdate $ctime" >"$FIFO"
|
{
|
||||||
|
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"
|
printf "%s" "$$" > "$XDG_RUNTIME_DIR/status_pid"
|
||||||
@@ -49,8 +75,9 @@ while true; do
|
|||||||
[ $((sec % 1)) -eq 0 ] && memory
|
[ $((sec % 1)) -eq 0 ] && memory
|
||||||
[ $((sec % 1)) -eq 0 ] && cpu
|
[ $((sec % 1)) -eq 0 ] && cpu
|
||||||
# [ $((sec % 1)) -eq 0 ] && disk
|
# [ $((sec % 1)) -eq 0 ] && disk
|
||||||
[ $((sec % 60)) -eq 0 ] && bat
|
[ $((sec % 60)) -eq 0 ] && battery
|
||||||
[ $((sec % 1)) -eq 0 ] && vol
|
[ $((sec % 1)) -eq 0 ] && vol
|
||||||
|
[ $((sec % 1)) -eq 0 ] && brightness
|
||||||
[ $((sec % 1)) -eq 0 ] && cdate
|
[ $((sec % 1)) -eq 0 ] && cdate
|
||||||
[ $((sec % 1)) -eq 0 ] && ctime
|
[ $((sec % 1)) -eq 0 ] && ctime
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user