Add Hyprland, Walker & Waybar configurations
- Import Hyprland config directory (conf.d splits, themes, scripts, hypridle/lock/paper) - Add hyprfetch.sh startup script - Add Walker vikingowl theme and updated style.css - Add Waybar config.jsonc and style.css with “midnight-ocean” palette - Organize wallpaper and lockscreen images for multi-monitor setup
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
# Path to your Razer HID battery info
|
||||
#BASE="/sys/bus/hid/drivers/razermouse/0003:1532:00AB.000A"
|
||||
BASE="/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-8/1-8.1/1-8.1.2/1-8.1.2:1.0/0003:1532:00AB.0009"
|
||||
BASE_MOUSE="/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-8/1-8.1/1-8.1.2/1-8.1.2:1.0/0003:1532:00AB.0009"
|
||||
|
||||
# Read raw level and charging status
|
||||
raw=$(cat "$BASE/charge_level")
|
||||
status=$(cat "$BASE/charge_status") # 1=charging, 0=not charging
|
||||
type=$(cat "$BASE/device_type")
|
||||
raw=$(cat "$BASE_MOUSE/charge_level")
|
||||
status=$(cat "$BASE_MOUSE/charge_status") # 1=charging, 0=not charging
|
||||
type=$(cat "$BASE_MOUSE/device_type")
|
||||
|
||||
# Compute %
|
||||
percent=$(( raw * 100 / 255 ))
|
||||
@@ -18,10 +18,10 @@ tooltip="$type"
|
||||
if [[ $status -eq 1 ]]; then
|
||||
icon="⚡"
|
||||
cls="charging"
|
||||
text="$icon $percent%"
|
||||
text=" $icon $percent%"
|
||||
else
|
||||
cls="not_charging"
|
||||
text="$percent%"
|
||||
text=" $percent%"
|
||||
fi
|
||||
|
||||
# Output Waybar‐friendly JSON
|
||||
|
Reference in New Issue
Block a user