diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d4bfcf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nohup.out diff --git a/environment.d/wayland.conf b/environment.d/wayland.conf index 75ad8e9..98009e5 100644 --- a/environment.d/wayland.conf +++ b/environment.d/wayland.conf @@ -1,3 +1,4 @@ ELECTRON_OZONE_PLATFORM_HINT=auto _JAVA_AWT_WM_NONREPARENTING=1 DISPLAY=:0 +XCURSOR_SIZE=36 diff --git a/install.sh b/install.sh index 0c89223..348eec4 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/niri/config.kdl b/niri/config.kdl index 45dd4d5..9d940f1 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -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 } diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 2e84be6..5553056 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -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}%", diff --git a/waybar/mouse-battery.sh b/waybar/mouse-battery.sh new file mode 100755 index 0000000..44dc86e --- /dev/null +++ b/waybar/mouse-battery.sh @@ -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