From a5d2250d927a001cd792ab9fded4ca2975814699 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 23 Oct 2022 23:06:30 -0500 Subject: [PATCH] fix(hyprland): properly launch some launchers --- dots/.config/hypr/hyprland.conf | 6 +++--- .../hypr/scripts/{ => launchers}/events-monitor.bash | 0 dots/.config/hypr/scripts/launchers/launch-kbct.bash | 10 ++++++++++ .../hypr/scripts/{ => launchers}/launch-waybar.bash | 0 dots/.config/kbct/config.yml | 1 + 5 files changed, 14 insertions(+), 3 deletions(-) rename dots/.config/hypr/scripts/{ => launchers}/events-monitor.bash (100%) create mode 100755 dots/.config/hypr/scripts/launchers/launch-kbct.bash rename dots/.config/hypr/scripts/{ => launchers}/launch-waybar.bash (100%) diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index 73b6c624..5281da53 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -2,8 +2,8 @@ source=~/.config/hypr/wm/general.conf source=~/.config/hypr/wm/bindings.conf source=~/.config/hypr/wm/appearance.conf source=~/.config/hypr/wm/monitors.conf -exec=~/.config/hypr/scripts/launch-waybar.bash -exec-once=sudo modprobe uinput && sudo kbct remap --config ~/.config/kbct/config.yml +exec=~/.config/hypr/scripts/launchers/launch-waybar.bash +exec=~/.config/hypr/scripts/launchers/launch-kbct.bash exec=mako -exec-once=~/.config/hypr/scripts/events-monitor.bash +exec-once=~/.config/hypr/scripts/launchers/events-monitor.bash exec-once=udiskie diff --git a/dots/.config/hypr/scripts/events-monitor.bash b/dots/.config/hypr/scripts/launchers/events-monitor.bash similarity index 100% rename from dots/.config/hypr/scripts/events-monitor.bash rename to dots/.config/hypr/scripts/launchers/events-monitor.bash diff --git a/dots/.config/hypr/scripts/launchers/launch-kbct.bash b/dots/.config/hypr/scripts/launchers/launch-kbct.bash new file mode 100755 index 00000000..d0def971 --- /dev/null +++ b/dots/.config/hypr/scripts/launchers/launch-kbct.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() { + kill -9 "$(pidof kbct)" >/dev/null + sudo modprobe uinput + local kbct_config="${HOME}/.config/kbct/config.yml" + sudo kbct remap --config "${kbct_config}" +} + +main diff --git a/dots/.config/hypr/scripts/launch-waybar.bash b/dots/.config/hypr/scripts/launchers/launch-waybar.bash similarity index 100% rename from dots/.config/hypr/scripts/launch-waybar.bash rename to dots/.config/hypr/scripts/launchers/launch-waybar.bash diff --git a/dots/.config/kbct/config.yml b/dots/.config/kbct/config.yml index 595bff92..8ce34bfc 100644 --- a/dots/.config/kbct/config.yml +++ b/dots/.config/kbct/config.yml @@ -1,6 +1,7 @@ - keyboards: - Asus Keyboard - Glorious GMMK Pro ANSI + - Glorious GMMK Pro ANSI Keyboard layers: - modifiers: - leftmeta