This commit is contained in:
Ludwig Lehnert 2024-03-02 10:22:23 +01:00
parent dd6c76f7a3
commit c6c401c1b4
2 changed files with 10 additions and 3 deletions

View File

@ -18,9 +18,7 @@ set $term alacritty
set $menu rofi -show drun -font "Ubuntu Mono 15" -show-icons
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg ~/.local/share/wallpapers/lambda-bg-dark.png fill
#
# Example configuration:
#

9
sway-status.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
bat_level=$(cat /sys/class/power_supply/BAT*/capacity)
bat_state=$(cat /sys/class/power_supply/BAT*/status)
date=$(date +'%d.%m.%Y %H:%M:%S')
echo "$bat_level%" $bat_state "|" $date ""