feat(desktop): improve launcher and window picker presentation
This commit is contained in:
@@ -220,10 +220,12 @@ windowrule = match:title ^(Confirm)$, float on
|
|||||||
# (Matches both class and title because rumno may set either depending on backend.)
|
# (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.*)$, float on
|
||||||
windowrule = match:class ^(.*[Rr]umno.*)$, pin 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.*)$, decorate off
|
||||||
windowrule = match:class ^(.*[Rr]umno.*)$, no_shadow on
|
windowrule = match:class ^(.*[Rr]umno.*)$, no_shadow on
|
||||||
windowrule = match:title ^(.*[Rr]umno.*)$, float on
|
windowrule = match:title ^(.*[Rr]umno.*)$, float on
|
||||||
windowrule = match:title ^(.*[Rr]umno.*)$, pin 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.*)$, decorate off
|
||||||
windowrule = match:title ^(.*[Rr]umno.*)$, no_shadow on
|
windowrule = match:title ^(.*[Rr]umno.*)$, no_shadow on
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ trap 'rm -f "$TMPFILE"' EXIT
|
|||||||
while IFS=$'\t' read -r address class title ws_id; do
|
while IFS=$'\t' read -r address class title ws_id; do
|
||||||
icon=$(icon_for_class "$class")
|
icon=$(icon_for_class "$class")
|
||||||
addresses+=("$address")
|
addresses+=("$address")
|
||||||
printf '%-20s %-40s WS:%s\0icon\x1f%s\n' \
|
printf '%-24s %s WS:%s\0icon\x1f%s\n' \
|
||||||
"$class" "${title:0:40}" "$ws_id" "$icon"
|
"$class" "$title" "$ws_id" "$icon"
|
||||||
done <<< "$WINDOW_DATA" > "$TMPFILE"
|
done <<< "$WINDOW_DATA" > "$TMPFILE"
|
||||||
|
|
||||||
INDEX=$(rofi -dmenu -i -show-icons -p "Bring window" -format i < "$TMPFILE") || exit 0
|
INDEX=$(rofi -dmenu -i -show-icons -p "Bring window" -format i < "$TMPFILE") || exit 0
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ trap 'rm -f "$TMPFILE"' EXIT
|
|||||||
while IFS=$'\t' read -r address class title ws_id; do
|
while IFS=$'\t' read -r address class title ws_id; do
|
||||||
icon=$(icon_for_class "$class")
|
icon=$(icon_for_class "$class")
|
||||||
addresses+=("$address")
|
addresses+=("$address")
|
||||||
printf '%-20s %-40s WS:%s\0icon\x1f%s\n' \
|
printf '%-24s %s WS:%s\0icon\x1f%s\n' \
|
||||||
"$class" "${title:0:40}" "$ws_id" "$icon"
|
"$class" "$title" "$ws_id" "$icon"
|
||||||
done <<< "$WINDOW_DATA" > "$TMPFILE"
|
done <<< "$WINDOW_DATA" > "$TMPFILE"
|
||||||
|
|
||||||
INDEX=$(rofi -dmenu -i -show-icons -p "Go to window" -format i < "$TMPFILE") || exit 0
|
INDEX=$(rofi -dmenu -i -show-icons -p "Go to window" -format i < "$TMPFILE") || exit 0
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ trap 'rm -f "$TMPFILE"' EXIT
|
|||||||
while IFS=$'\t' read -r address class title ws_id; do
|
while IFS=$'\t' read -r address class title ws_id; do
|
||||||
icon=$(icon_for_class "$class")
|
icon=$(icon_for_class "$class")
|
||||||
addresses+=("$address")
|
addresses+=("$address")
|
||||||
printf '%-20s %-40s WS:%s\0icon\x1f%s\n' \
|
printf '%-24s %s WS:%s\0icon\x1f%s\n' \
|
||||||
"$class" "${title:0:40}" "$ws_id" "$icon"
|
"$class" "$title" "$ws_id" "$icon"
|
||||||
done <<< "$WINDOW_DATA" > "$TMPFILE"
|
done <<< "$WINDOW_DATA" > "$TMPFILE"
|
||||||
|
|
||||||
INDEX=$(rofi -dmenu -i -show-icons -p "Replace with" -format i < "$TMPFILE") || exit 0
|
INDEX=$(rofi -dmenu -i -show-icons -p "Replace with" -format i < "$TMPFILE") || exit 0
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ configuration {
|
|||||||
font: "Fira Code 10";
|
font: "Fira Code 10";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
display-drun: "";
|
display-drun: "";
|
||||||
drun-display-format: "{name}";
|
drun-display-format: "{name} {generic}";
|
||||||
disable-history: false;
|
disable-history: false;
|
||||||
sidebar-mode: false;
|
sidebar-mode: false;
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,8 @@ window {
|
|||||||
border: 0px;
|
border: 0px;
|
||||||
border-color: @ac;
|
border-color: @ac;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
width: 40%;
|
width: 88%;
|
||||||
|
height: 78%;
|
||||||
location: center;
|
location: center;
|
||||||
x-offset: 0;
|
x-offset: 0;
|
||||||
y-offset: 0;
|
y-offset: 0;
|
||||||
@@ -64,8 +65,8 @@ inputbar {
|
|||||||
listview {
|
listview {
|
||||||
background-color: @al;
|
background-color: @al;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
columns: 2;
|
columns: 1;
|
||||||
lines: 7;
|
lines: 18;
|
||||||
spacing: 1%;
|
spacing: 1%;
|
||||||
cycle: false;
|
cycle: false;
|
||||||
dynamic: true;
|
dynamic: true;
|
||||||
|
|||||||
@@ -507,8 +507,8 @@ myDecorateName ws w = do
|
|||||||
workspaceToName <- getWorkspaceNames'
|
workspaceToName <- getWorkspaceNames'
|
||||||
let iconName = fromMaybe (map toLower $ head classes) $
|
let iconName = fromMaybe (map toLower $ head classes) $
|
||||||
lookupIconFromClasses classes
|
lookupIconFromClasses classes
|
||||||
entryString = printf "%-20s%-40s %+30s in %s \0icon\x1f%s"
|
entryString = printf "%-24s %s in %s \0icon\x1f%s"
|
||||||
classTitle (take 40 name) " "
|
classTitle name
|
||||||
(fromMaybe "" $ workspaceToName (W.tag ws)) iconName
|
(fromMaybe "" $ workspaceToName (W.tag ws)) iconName
|
||||||
return entryString
|
return entryString
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/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
|
||||||
|
|||||||
Reference in New Issue
Block a user