From 4ff9189fefaac44f2e03feed22ae87d56b825837 Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Thu, 3 Apr 2025 22:28:06 +0200 Subject: [PATCH] Launcher + Widgets done --- modules/wm/hyprland/config/hypr/hyprland.conf | 1 + modules/wm/hyprland/config/hypr/keybinds.conf | 2 +- modules/wm/hyprland/config/hypr/open.sh | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 modules/wm/hyprland/config/hypr/open.sh diff --git a/modules/wm/hyprland/config/hypr/hyprland.conf b/modules/wm/hyprland/config/hypr/hyprland.conf index 7a6165f..4dfeb9b 100644 --- a/modules/wm/hyprland/config/hypr/hyprland.conf +++ b/modules/wm/hyprland/config/hypr/hyprland.conf @@ -12,6 +12,7 @@ $nix = /home/horseman/nix-config ################# exec-once = swaybg -i $nix/misc/wallpaper.png +exec-once = eww daemon # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: diff --git a/modules/wm/hyprland/config/hypr/keybinds.conf b/modules/wm/hyprland/config/hypr/keybinds.conf index efa68e1..dfe23f6 100644 --- a/modules/wm/hyprland/config/hypr/keybinds.conf +++ b/modules/wm/hyprland/config/hypr/keybinds.conf @@ -1,6 +1,6 @@ $mainMod = SUPER $terminal = kitty -$launcher = pkill wofi || wofi --show drun +$launcher = ~/.config/hypr/open.sh bindr = SUPER, SUPER_L, exec, $launcher diff --git a/modules/wm/hyprland/config/hypr/open.sh b/modules/wm/hyprland/config/hypr/open.sh new file mode 100755 index 0000000..31d66db --- /dev/null +++ b/modules/wm/hyprland/config/hypr/open.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +(pkill wofi && ~/.config/eww/scripts/open.sh) || + (wofi --show drun & + ~/.config/eww/scripts/open.sh)