diff --git a/dotfiles/config/hypr/hyprland.conf b/dotfiles/config/hypr/hyprland.conf index 0bd1d8e2..4416a63e 100644 --- a/dotfiles/config/hypr/hyprland.conf +++ b/dotfiles/config/hypr/hyprland.conf @@ -220,10 +220,12 @@ windowrule = match:title ^(Confirm)$, float on # (Matches both class and title because rumno may set either depending on backend.) windowrule = match:class ^(.*[Rr]umno.*)$, float on windowrule = match:class ^(.*[Rr]umno.*)$, pin on +windowrule = match:class ^(.*[Rr]umno.*)$, center on windowrule = match:class ^(.*[Rr]umno.*)$, decorate off windowrule = match:class ^(.*[Rr]umno.*)$, no_shadow on windowrule = match:title ^(.*[Rr]umno.*)$, float on windowrule = match:title ^(.*[Rr]umno.*)$, pin on +windowrule = match:title ^(.*[Rr]umno.*)$, center on windowrule = match:title ^(.*[Rr]umno.*)$, decorate off windowrule = match:title ^(.*[Rr]umno.*)$, no_shadow on diff --git a/dotfiles/config/hypr/scripts/bring-window.sh b/dotfiles/config/hypr/scripts/bring-window.sh index cbaec2cc..a0cf917a 100755 --- a/dotfiles/config/hypr/scripts/bring-window.sh +++ b/dotfiles/config/hypr/scripts/bring-window.sh @@ -27,8 +27,8 @@ trap 'rm -f "$TMPFILE"' EXIT while IFS=$'\t' read -r address class title ws_id; do icon=$(icon_for_class "$class") addresses+=("$address") - printf '%-20s %-40s WS:%s\0icon\x1f%s\n' \ - "$class" "${title:0:40}" "$ws_id" "$icon" + printf '%-24s %s WS:%s\0icon\x1f%s\n' \ + "$class" "$title" "$ws_id" "$icon" done <<< "$WINDOW_DATA" > "$TMPFILE" INDEX=$(rofi -dmenu -i -show-icons -p "Bring window" -format i < "$TMPFILE") || exit 0 diff --git a/dotfiles/config/hypr/scripts/go-to-window.sh b/dotfiles/config/hypr/scripts/go-to-window.sh index 6e404dd0..a8b0c53b 100755 --- a/dotfiles/config/hypr/scripts/go-to-window.sh +++ b/dotfiles/config/hypr/scripts/go-to-window.sh @@ -22,8 +22,8 @@ trap 'rm -f "$TMPFILE"' EXIT while IFS=$'\t' read -r address class title ws_id; do icon=$(icon_for_class "$class") addresses+=("$address") - printf '%-20s %-40s WS:%s\0icon\x1f%s\n' \ - "$class" "${title:0:40}" "$ws_id" "$icon" + printf '%-24s %s WS:%s\0icon\x1f%s\n' \ + "$class" "$title" "$ws_id" "$icon" done <<< "$WINDOW_DATA" > "$TMPFILE" INDEX=$(rofi -dmenu -i -show-icons -p "Go to window" -format i < "$TMPFILE") || exit 0 diff --git a/dotfiles/config/hypr/scripts/replace-window.sh b/dotfiles/config/hypr/scripts/replace-window.sh index e9a062fa..e2ed4f4d 100755 --- a/dotfiles/config/hypr/scripts/replace-window.sh +++ b/dotfiles/config/hypr/scripts/replace-window.sh @@ -32,8 +32,8 @@ trap 'rm -f "$TMPFILE"' EXIT while IFS=$'\t' read -r address class title ws_id; do icon=$(icon_for_class "$class") addresses+=("$address") - printf '%-20s %-40s WS:%s\0icon\x1f%s\n' \ - "$class" "${title:0:40}" "$ws_id" "$icon" + printf '%-24s %s WS:%s\0icon\x1f%s\n' \ + "$class" "$title" "$ws_id" "$icon" done <<< "$WINDOW_DATA" > "$TMPFILE" INDEX=$(rofi -dmenu -i -show-icons -p "Replace with" -format i < "$TMPFILE") || exit 0 diff --git a/dotfiles/config/rofi/colorful/style_7.rasi b/dotfiles/config/rofi/colorful/style_7.rasi index 7d1ffaa0..e728b259 100644 --- a/dotfiles/config/rofi/colorful/style_7.rasi +++ b/dotfiles/config/rofi/colorful/style_7.rasi @@ -11,7 +11,7 @@ configuration { font: "Fira Code 10"; show-icons: true; display-drun: ""; - drun-display-format: "{name}"; + drun-display-format: "{name} {generic}"; disable-history: false; sidebar-mode: false; } @@ -25,7 +25,8 @@ window { border: 0px; border-color: @ac; border-radius: 12px; - width: 40%; + width: 88%; + height: 78%; location: center; x-offset: 0; y-offset: 0; @@ -64,8 +65,8 @@ inputbar { listview { background-color: @al; padding: 10px; - columns: 2; - lines: 7; + columns: 1; + lines: 18; spacing: 1%; cycle: false; dynamic: true; diff --git a/dotfiles/config/xmonad/xmonad.hs b/dotfiles/config/xmonad/xmonad.hs index c53577dc..e0267d1c 100644 --- a/dotfiles/config/xmonad/xmonad.hs +++ b/dotfiles/config/xmonad/xmonad.hs @@ -507,8 +507,8 @@ myDecorateName ws w = do workspaceToName <- getWorkspaceNames' let iconName = fromMaybe (map toLower $ head classes) $ lookupIconFromClasses classes - entryString = printf "%-20s%-40s %+30s in %s \0icon\x1f%s" - classTitle (take 40 name) " " + entryString = printf "%-24s %s in %s \0icon\x1f%s" + classTitle name (fromMaybe "" $ workspaceToName (W.tag ws)) iconName return entryString diff --git a/dotfiles/lib/bin/rofi_kill_process.sh b/dotfiles/lib/bin/rofi_kill_process.sh index e5d49dbb..1abd816f 100755 --- a/dotfiles/lib/bin/rofi_kill_process.sh +++ b/dotfiles/lib/bin/rofi_kill_process.sh @@ -1,3 +1,7 @@ #!/usr/bin/env zsh -ps -o 'pid cmd' x | rofi -dmenu -i | get_cols 1 | xargs kill -9 +ps -o 'pid= cmd=' x \ + | sed -E 's@/nix/store/[[:alnum:]]{32}-@@g' \ + | rofi -dmenu -i \ + | get_cols 1 \ + | xargs kill -9