This commit is contained in:
2025-10-13 19:06:08 -07:00
parent 9b374a1f35
commit 9bd37f26ac
6 changed files with 22 additions and 17 deletions

4
widget/colors.tsx Normal file
View File

@@ -0,0 +1,4 @@
let white = "#DCD2E2"
let primary = "#837197"
export {white, primary}

View File

@@ -119,7 +119,7 @@ function PlayerWindow() {
className="popupWindow"
anchor = {TOP | RIGHT}
namespace="lazerpopup"
marginRight={160}>
marginRight={100}>
<box
vertical={true}
spacing={12}

View File

@@ -14,8 +14,8 @@ function PowerWindow() {
["Lock", "bash -c 'pgrep -x hyprlock || hyprlock &'" ],
["Suspend", "/home/spingus/.config/scripts/lock.sh" ],
["Logout", "hyprctl dispatch exit" ],
["Shutdown", "systemctl poweroff" ],
["Reboot", "systemctl reboot" ],
// ["Shutdown", "systemctl poweroff" ],
// ["Reboot", "systemctl reboot" ],
].map(action => <button onClicked={() => {
execAsync(action[1])
.then(out => print(out))

View File

@@ -1,6 +1,7 @@
import { bind } from "astal"
import { Gdk, Gtk, Widget } from "astal/gtk3"
import Hyprland from "gi://AstalHyprland"
import {white, primary} from "./colors"
const hyprland = Hyprland.get_default()
@@ -27,8 +28,8 @@ function newWorkspace(ws: number, monitor: number) {
}),
css: bind(hyprland, "focusedWorkspace").as(fws => {
return (fws.id === ws)
? "border-color: #00ffaa"
: "border-color: #ffffff"
? `border-color: ${primary}`
: `border-color: ${white}`
})
}))),
]}>