Add mouse battery widget, Bolt Launcher rule, cursor size; fix theme symlink
- waybar: add custom/mouse-battery module and mouse-battery.sh script - niri: add Bolt Launcher floating rule; switch RuneLite to floating - environment.d: set XCURSOR_SIZE=36 - install.sh: add symlinks for theme/colors.css and mouse-battery.sh (fixes @import path) - .gitignore: exclude nohup.out Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
nohup.out
|
||||
@@ -1,3 +1,4 @@
|
||||
ELECTRON_OZONE_PLATFORM_HINT=auto
|
||||
_JAVA_AWT_WM_NONREPARENTING=1
|
||||
DISPLAY=:0
|
||||
XCURSOR_SIZE=36
|
||||
|
||||
@@ -25,6 +25,9 @@ ln -sf "$(pwd)/networkmanager-dmenu/config.ini" ~/.config/networkmanager-dmenu/c
|
||||
ln -sf "$(pwd)/niri/config.kdl" ~/.config/niri/config.kdl
|
||||
ln -sf "$(pwd)/waybar/config.jsonc" ~/.config/waybar/config.jsonc
|
||||
ln -sf "$(pwd)/waybar/style.css" ~/.config/waybar/style.css
|
||||
ln -sf "$(pwd)/waybar/mouse-battery.sh" ~/.config/waybar/mouse-battery.sh
|
||||
mkdir -p ~/.config/theme
|
||||
ln -sf "$(pwd)/theme/colors.css" ~/.config/theme/colors.css
|
||||
ln -sf "$(pwd)/wofi/config" ~/.config/wofi/config
|
||||
ln -sf "$(pwd)/wofi/style.css" ~/.config/wofi/style.css
|
||||
ln -sf "$(pwd)/mako/config" ~/.config/mako/config
|
||||
|
||||
+8
-2
@@ -130,10 +130,16 @@ window-rule {
|
||||
default-floating-position x=-9999 y=-9999
|
||||
}
|
||||
|
||||
// RuneLite (Java app-id pattern - verify with: niri msg pick-window)
|
||||
// Bolt Launcher
|
||||
window-rule {
|
||||
match app-id="^bolt-launcher$"
|
||||
open-floating true
|
||||
}
|
||||
|
||||
// RuneLite
|
||||
window-rule {
|
||||
match app-id="^(net-runelite-client-RuneLite|runelite|RuneLite)$"
|
||||
open-maximized true
|
||||
open-floating true
|
||||
border {
|
||||
off
|
||||
}
|
||||
|
||||
+7
-1
@@ -5,7 +5,13 @@
|
||||
|
||||
"modules-left": ["niri/workspaces"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["cpu", "temperature", "custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "tray"],
|
||||
"modules-right": ["cpu", "temperature", "custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "custom/mouse-battery", "tray"],
|
||||
"custom/mouse-battery": {
|
||||
"exec": "~/.config/waybar/mouse-battery.sh",
|
||||
"interval": 60,
|
||||
"format": " {output}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Generic mouse battery script for Waybar
|
||||
|
||||
MOUSE_BATTERY=$(upower -e | grep -i mouse | head -n1)
|
||||
|
||||
if [ -n "$MOUSE_BATTERY" ]; then
|
||||
upower -i "$MOUSE_BATTERY" | awk '/percentage:/ { print $2 }'
|
||||
else
|
||||
echo "N/A"
|
||||
fi
|
||||
Reference in New Issue
Block a user