update:rofi launchers acc DMS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 //
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user