Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mylinuxforwork committed Nov 18, 2024
1 parent 3c6cf40 commit aba4b89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions share/dotfiles/.config/ags/widget/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,32 @@ function MicrophoneSlider() {

function openwelcomeapp() {
execAsync("com.ml4w.welcome")
App.get_window("sidebar")!.hide()
}

function opensettingsapp() {
execAsync("com.ml4w.dotfilessettings")
App.get_window("sidebar")!.hide()
}

function openhyprlandapp() {
execAsync("com.ml4w.hyprland.settings")
App.get_window("sidebar")!.hide()
}

function openwaypaper() {
execAsync("waypaper")
App.get_window("sidebar")!.hide()
}

function openwallpapereffects() {
execAsync("./scripts/run_wallpapereffects.sh")
App.get_window("sidebar")!.hide()
}

function openwaybarthemes() {
execAsync("./scripts/run_themeswitcher.sh")
App.get_window("sidebar")!.hide()
}

export default function Sidebar() {
Expand All @@ -62,10 +68,6 @@ export default function Sidebar() {
application={App}
visible={false}
className="Sidebar"
onKeyPressEvent={function (self, event: Gdk.Event) {
if (event.get_keyval()[1] === Gdk.KEY_Escape)
self.hide()
}}
anchor={anchor}
>
<box className="sidebar" vertical>
Expand Down

0 comments on commit aba4b89

Please sign in to comment.