Commit 488691a
Changed files (5)
.config
hypr
modules
.local
share
applications
.wraith
.config/hypr/modules/windows.conf
@@ -8,7 +8,7 @@ workspace = 5, defaultName:Forge,monitor:DP-1,persistent:true
# Floating windows
windowrule = float true,center true,size 875 600,match:tag floating-window
-windowrule = tag +floating-window, match:class (Thunar|thunar|org.gnome.Evince|org.wraith.*|org.pulseaudio.pavucontrol|com.mitchellh.ghostty|Termius|nwg-look|localsend|imv|mpv)
+windowrule = tag +floating-window, match:class (Thunar|thunar|org.gnome.Evince|org.wraith.*|org.pulseaudio.pavucontrol|com.mitchellh.ghostty|Termius|nwg-look|localsend|imv|mpv|zenity)
windowrule = tag +floating-window, match:class (xdg-desktop-portal-gtk|org.gnome.*|rustdesk)
windowrule = tag +floating-window, match:title ^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files|.*wants to [open|save].*|[C|c]hoose.*)
windowrule = tag +floating-window, match:title ^(Settings|Preferences|Options|About|Help|License|Shortcuts|Keybindings|Update|Updates|Checking for updates|Extensions|Add-ons|Choose a Font|About .*)$
.wraith/scripts/display.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env sh
+
+SOURCE=$(printf "DP-1\nHDMI-1\nHDMI-2" |rofi -dmenu -i -theme $HOME/.wraith/theme/scripts.rofi.rasi -theme-str 'listview {lines:4;}')
+[ -z "$SOURCE" ] && exit 0
+
+case "$SOURCE" in
+ DP-1) ddcutil setvcp 60 0x0f ;;
+ HDMI-1) ddcutil setvcp 60 0x11 ;;
+ HDMI-2) ddcutil setvcp 60 0x12 ;;
+esac
\ No newline at end of file
.wraith/scripts/internet-connectivity.sh
@@ -1,17 +1,14 @@
#!/usr/bin/zsh
-
STATE=$(nmcli -t -f STATE g)
CONNECTIVITY=$(nmcli -t -f CONNECTIVITY g)
-
if [[ "$STATE" != "connected" ]]; then
- echo " Disconnected"
+ echo "{\"text\": \"\"}"
exit 0
fi
-# If connected, check how
if [[ "$CONNECTIVITY" == "full" ]]; then
- ICON="" # full connectivity
+ ICON="" # full connectivity
elif [[ "$CONNECTIVITY" == "limited" ]]; then
ICON="" # limited connectivity
else
.wraith/scripts/packages.sh
@@ -15,6 +15,12 @@ packages_total() {
}
+show_pkg_info() {
+ local pkg="$1"
+ pacman -Qi "$pkg" 2>&1 | zenity --text-info \
+ --title="Package Info: $pkg" \
+ --font="monospace 10"
+}
packages_installed_explicitly() {
out=$(pacman -Qi - < <(
@@ -55,7 +61,7 @@ packages_installed_explicitly() {
action=$(printf "Info\nUninstall\nCancel" | rofi -dmenu -i -theme $HOME/.wraith/theme/scripts.rofi.rasi -theme-str 'listview {lines:3;}')
case "$action" in
"Info")
- smart-launch --tui "Package Info $pkg_name" "bash -c 'pacman -Qi $pkg_name; gum spin --spinner moon --title \"Press any key to close...\" -- bash -c \"read -n 1 -s\"'"
+ show_pkg_info "$pkg_name"
;;
"Uninstall")
smart-launch --tui "Uninstall Package $pkg_name" "bash -c 'sudo pacman -Rns $pkg_name --noconfirm; gum spin --spinner moon --title \"Press any key to close...\" -- bash -c \"read -n 1 -s\"'"