diff --git a/env/.config/hypr/keybinds.conf b/env/.config/hypr/keybinds.conf index b466e7e..b168028 100644 --- a/env/.config/hypr/keybinds.conf +++ b/env/.config/hypr/keybinds.conf @@ -56,11 +56,11 @@ bindd = $mainMod, K, Focus window - up, movefo bindd = $mainMod, L, Focus window - right, movefocus, r # move window focus using vim keys bindd = $mainMod SHIFT, L, Workspace - forward, workspace, +1 bindd = $mainMod, M, [M]usic - apple, exec, $pwa --special music "https://music.apple.com" -bindd = $mainMod SHIFT, M, [M]enu bar - toggle visible, exec, $scripts/toggle-waybar +bindd = $mainMod SHIFT, M, [M]enu bar - toggle visible, exec, $scripts/waybarctl --toggle bindd = $mainMod, O, Purchase [o]rders, exec, $pwa --special dispatch "https://po.housh.dev" bindd = $mainMod, P, [P]assword manager, exec, $pwa --special pass "https://pass.proton.me" bindd = $mainMod SHIFT, P, Toggle [p]seudo window mode, pseudo, # dwindle -bindd = $mainMod SHIFT, R, [R]estart menu bar, exec, $scripts/waybar-restart +bindd = $mainMod SHIFT, R, [R]estart menu bar, exec, $scripts/waybarctl --restart bindd = $mainMod, S, Toggle [s]pecial workspace, togglespecialworkspace, magic # use $windowMod S to send window to the special workspace bindd = $mainMod, Y, [Y]ouTube, exec, $pwa --or-focus "https://youtube.com" bindd = $mainMod, U, [U]nifi, exec, $pwa "https://unifi.ui.com" diff --git a/env/.config/utils-launcher/config.json b/env/.config/utils-launcher/config.json index 757143f..aa3601b 100644 --- a/env/.config/utils-launcher/config.json +++ b/env/.config/utils-launcher/config.json @@ -1,34 +1,34 @@ [ { - "name": "Install Web App", + "name": "App - install web app", "exec": "$SCRIPTS/hypr/install-webapp" }, { - "name": "Uninstall Desktop App", + "name": "App - uninstall desktop app", "exec": "$SCRIPTS/hypr/uninstall-desktop-app" }, { - "name": "Active Window Table / Picker", - "exec": "$SCRIPTS/hypr/window-table" - }, - { - "name": "Clear Clipboard History", + "name": "Clipboard - clear history", "exec": "$SCRIPTS/hypr/clear-clipboard-history && echo Done" }, { - "name": "Restart waybar", - "exec": "$SCRIPTS/hypr/waybar-restart" + "name": "Waybar - restart", + "exec": "$SCRIPTS/hypr/waybarctl --restart" }, { - "name": "Toggle waybar", - "exec": "$SCRIPTS/hypr/toggle-waybar" + "name": "Waybar -- toggle", + "exec": "$SCRIPTS/hypr/waybarctl --toggle" }, { - "name": "Close Windows - Active Workspace", + "name": "Windows - active window table / picker", + "exec": "$SCRIPTS/hypr/window-table" + }, + { + "name": "Windows - close ALL in active workspace", "exec": "$SCRIPTS/hypr/close-windows --active-workspace" }, { - "name": "Close Windows - ALL", + "name": "Windows - close ALL in all workspaces", "exec": "$SCRIPTS/hypr/close-windows --all" } ] diff --git a/env/.local/scripts/hypr/toggle-waybar b/env/.local/scripts/hypr/toggle-waybar deleted file mode 100755 index c53580d..0000000 --- a/env/.local/scripts/hypr/toggle-waybar +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -WAYBAR_PID=$(pgrep -x waybar) - -if [ -n "$WAYBAR_PID" ]; then - # kill waybar process if it's running. - kill "$WAYBAR_PID" -else - # start waybar in the background. - setsid uwsm app -- waybar >/dev/null 2>&1 & -fi diff --git a/env/.local/scripts/hypr/waybar-restart b/env/.local/scripts/hypr/waybar-restart deleted file mode 100755 index a93feb1..0000000 --- a/env/.local/scripts/hypr/waybar-restart +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/zsh - -pkill -x waybar -setsid uwsm app -- waybar >/dev/null 2>&1 & diff --git a/env/.local/scripts/hypr/waybarctl b/env/.local/scripts/hypr/waybarctl new file mode 100755 index 0000000..fad2a42 --- /dev/null +++ b/env/.local/scripts/hypr/waybarctl @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +THIS=$(basename ${BASH_SOURCE[0]}) + +usage() { + cat </dev/null 2>&1 & + sleep 1 # Sleep to allow it to start if running in a pop up terminal. +fi