purple
This commit is contained in:
4
widget/colors.tsx
Normal file
4
widget/colors.tsx
Normal file
@@ -0,0 +1,4 @@
|
||||
let white = "#DCD2E2"
|
||||
let primary = "#837197"
|
||||
|
||||
export {white, primary}
|
||||
@@ -119,7 +119,7 @@ function PlayerWindow() {
|
||||
className="popupWindow"
|
||||
anchor = {TOP | RIGHT}
|
||||
namespace="lazerpopup"
|
||||
marginRight={160}>
|
||||
marginRight={100}>
|
||||
<box
|
||||
vertical={true}
|
||||
spacing={12}
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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}`
|
||||
})
|
||||
}))),
|
||||
]}>
|
||||
|
||||
Reference in New Issue
Block a user