diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/bar.tsx | 6 | ||||
| -rw-r--r-- | modules/launcher.tsx | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/modules/bar.tsx b/modules/bar.tsx index ed888db..dd576c3 100644 --- a/modules/bar.tsx +++ b/modules/bar.tsx @@ -1,4 +1,4 @@ -import { GLib, register, Variable } from "astal"; +import { execAsync, GLib, register, Variable } from "astal"; import { bind, kebabify } from "astal/binding"; import { App, Astal, astalify, Gdk, Gtk, type ConstructProps } from "astal/gtk3"; import AstalHyprland from "gi://AstalHyprland"; @@ -251,9 +251,7 @@ const Power = () => ( className="module power" label="power_settings_new" cursor="pointer" - onClicked={() => { - // TODO: Power menu - }} + onClicked={() => execAsync("fish -c 'pkill wlogout || wlogout -p layer-shell'").catch(console.error)} /> ); diff --git a/modules/launcher.tsx b/modules/launcher.tsx index 20b7c0d..0768539 100644 --- a/modules/launcher.tsx +++ b/modules/launcher.tsx @@ -363,7 +363,6 @@ export default class Launcher extends PopupWindow { super({ name: "launcher", keymode: Astal.Keymode.EXCLUSIVE, - exclusivity: Astal.Exclusivity.IGNORE, onKeyPressEvent(_, event) { const keyval = event.get_keyval()[1]; // Focus entry on typing |