From 0328d5f44ec011d72ed483390817c2b6fa45b8ca Mon Sep 17 00:00:00 2001 From: kokopi-dev Date: Thu, 28 May 2026 03:07:59 +0900 Subject: [PATCH] update:rofi launchers acc DMS --- mango/rofi/config-manager/config-manager.rasi | 2 +- .../config-manager/rofi-config-manager.sh | 6 +-- mango/rofi/help-manager/help-manager.rasi | 2 +- mango/rofi/help-manager/system-keybinds.txt | 9 ++-- .../settings-manager/rofi-settings-manager.sh | 48 +++++++++++++++---- .../settings-manager/settings-manager.rasi | 2 +- 6 files changed, 50 insertions(+), 19 deletions(-) diff --git a/mango/rofi/config-manager/config-manager.rasi b/mango/rofi/config-manager/config-manager.rasi index 2f22161..e8aeba5 100644 --- a/mango/rofi/config-manager/config-manager.rasi +++ b/mango/rofi/config-manager/config-manager.rasi @@ -59,7 +59,7 @@ imageBoxOverlay { } imageBox { enabled: true; - background-image: url("~/.config/rofi/images/sg/5.jpg", width); + background-image: url("~/.config/rofi/images/sg/7.jpg", width); border-radius: 1em; } diff --git a/mango/rofi/config-manager/rofi-config-manager.sh b/mango/rofi/config-manager/rofi-config-manager.sh index e176e4e..88ee53d 100755 --- a/mango/rofi/config-manager/rofi-config-manager.sh +++ b/mango/rofi/config-manager/rofi-config-manager.sh @@ -31,7 +31,8 @@ MANGO_RULES="󰇙 Rules" MANGO_ENV=" Env" MANGO_EXEC=" Exec" NVIM=" Neovim" -WAYBAR=" Waybar" +# WAYBAR=" Waybar" +WAYBAR=" DMS" GHOSTTY=" Ghostty" ROFI=" Rofi" ROFI_APP=" App" @@ -82,8 +83,7 @@ case $chosen in open_in_ghostty_nvim ~/.config/nvim/init.lua ;; "$WAYBAR") - open_in_ghostty_nvim ~/.config/waybar/config.jsonc - open_in_ghostty_nvim ~/.config/waybar/style.css + open_in_ghostty_nvim ~/.config/DankMaterialShell/settings.json ;; "$GHOSTTY") open_in_ghostty_nvim ~/.config/ghostty/config diff --git a/mango/rofi/help-manager/help-manager.rasi b/mango/rofi/help-manager/help-manager.rasi index ad7f025..fffbe35 100644 --- a/mango/rofi/help-manager/help-manager.rasi +++ b/mango/rofi/help-manager/help-manager.rasi @@ -48,7 +48,7 @@ imageBoxOverlay { } imageBox { enabled: true; - background-image: url("~/.config/rofi/images/neco/14.jpg", width); + background-image: url("~/.config/rofi/images/neco/29.jpg", width); border-radius: 1em; } // Lists // diff --git a/mango/rofi/help-manager/system-keybinds.txt b/mango/rofi/help-manager/system-keybinds.txt index 3fbd0d0..7ea6598 100644 --- a/mango/rofi/help-manager/system-keybinds.txt +++ b/mango/rofi/help-manager/system-keybinds.txt @@ -1,5 +1,7 @@ -Super + ALT + p → Copy/Save Screenshot +Super + ALT + p → Copy/Save Region Screenshot +Super + ALT + Ctrl + p → Copy/Save Screen Screenshot Super + ALT + v → Screen Region Video Capture +Super + ALT + Ctrl + v → Screen Region Screen Capture Super + Return → Terminal Super + e → File Manager Super + Shft + q → Quit Window @@ -13,9 +15,10 @@ Super + Shft + Arrows → Move Windows Super + LMB (Drag) → Move Window Super + RMB (Drag) → Resize Window Super + , (comma) → Toggle Tile Mode -Super + . (period) → Toggle Scroller Mode +Super + . (period) → Toggle Tgmix Mode +Super + / (slash) → Toggle Scroller Mode Ctrl + (0-9) → Navigate To Workspace# -Ctrl + Super + L/R Arr → Move L/R With Focused Window +Ctrl + Super + L/R Arr → Move L/R Wrkspc w/ Focused Window Alt + (0-9) → Move Window To Workspace# Alt + a → Toggle Maximize Window Alt + f → Toggle Fullscreen Window diff --git a/mango/rofi/settings-manager/rofi-settings-manager.sh b/mango/rofi/settings-manager/rofi-settings-manager.sh index a532159..100ca00 100755 --- a/mango/rofi/settings-manager/rofi-settings-manager.sh +++ b/mango/rofi/settings-manager/rofi-settings-manager.sh @@ -2,34 +2,62 @@ # run init setup.sh to symlink scripts THEME_FILE=~/.config/rofi/settings-manager/settings-manager.rasi -MONITOR="󰍹 Monitor" +post_rofi() { + local image_dir="$HOME/.config/rofi/images/sg" + local current_image=$(grep "background-image: url" "$THEME_FILE" | cut -d'"' -f2) + local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|") + while true; do + if [[ "$new_image" != "$current_image" ]]; then + sed -i 's|url("[^"]*"|url("'"$new_image"'"|' "$THEME_FILE" + break + fi + new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|") + done +} + +SETTINGS=" Settings" +MONITOR="󰍹 Displays" WALLPAPER=" Wallpaper" SOUND=" Sound" BLUETOOTH="󰂯 Bluetooth" NETWORK="󰲝 Network" -NIGHTLIGHT=" Night Light" +STORAGE=" Disk Usage" +# NIGHTLIGHT=" Night Light" -chosen=$(echo -e "$MONITOR\n$WALLPAPER\n$SOUND\n$BLUETOOTH\n$NETWORK\n$NIGHTLIGHT" | rofi -mesg " Settings" -dmenu -p "Action:" -config ~/.config/rofi/settings-manager/settings-manager.rasi -monitor "$ROFI_MONITOR") +chosen=$(echo -e "$SETTINGS\n$MONITOR\n$NETWORK\n$SOUND\n$BLUETOOTH\n$WALLPAPER\n$STORAGE" | rofi -mesg " Settings" -dmenu -p "Action:" -config ~/.config/rofi/settings-manager/settings-manager.rasi -monitor "$ROFI_MONITOR") +# `dms ipc call settings tabs` to get the list of tabs case $chosen in + "$SETTINGS") + dms ipc call settings open + ;; "$MONITOR") - wdisplays + # has nightlight options on the side + dms ipc call settings openWith displays + # wdisplays + ;; + "$NETWORK") + dms ipc call settings openWith network + # ghostty -e nmtui ;; "$WALLPAPER") - waypaper + dms ipc call settings openWith wallpaper + # waypaper ;; "$SOUND") + # dms ipc call settings openWith audio pavucontrol ;; "$BLUETOOTH") + # dms ipc call control-center openWith bluetooth blueman-manager ;; - "$NETWORK") - ghostty -e nmtui - ;; - "$NIGHTLIGHT") - ghostty -e ~/.local/bin/run-wlsunset.sh + "$STORAGE") + ghostty -e gdu ;; + # "$NIGHTLIGHT") + # ghostty -e ~/.local/bin/run-wlsunset.sh + # ;; esac if [[ "$HOSTNAME" == "astra" ]]; then diff --git a/mango/rofi/settings-manager/settings-manager.rasi b/mango/rofi/settings-manager/settings-manager.rasi index 8994d22..ee9b40c 100644 --- a/mango/rofi/settings-manager/settings-manager.rasi +++ b/mango/rofi/settings-manager/settings-manager.rasi @@ -59,7 +59,7 @@ imageBoxOverlay { } imageBox { enabled: true; - background-image: url("~/.config/rofi/images/oc/oc-1.png", width); + background-image: url("~/.config/rofi/images/sg/1.jpg", width); border-radius: 1em; }