From 40ae8fa74b631c74dfea413f5ef9fb1ad7c3ed76 Mon Sep 17 00:00:00 2001 From: agryphus Date: Fri, 17 Nov 2023 17:43:02 -0500 Subject: [PATCH] Removed hardcoded colon from rofi prompt --- .config/rofi/config.rasi | 11 ++++++----- .config/rofi/themes/theme.rasi | 9 +++++++++ .local/bin/menu-layout | 10 +++------- .local/bin/menu-run | 2 +- .local/bin/menu-sink | 2 +- 5 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .config/rofi/themes/theme.rasi diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index 49a3985..bdb45a2 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -2,14 +2,15 @@ configuration { font: "FiraCodeNerdFont 12"; kb-cancel: "Super+q,Escape,Control+c"; timeout { - action: "kb-cancel"; - delay: 0; + action: "kb-cancel"; + delay: 0; } filebrowser { - directories-first: true; - sorting-method: "name"; + directories-first: true; + sorting-method: "name"; } } -@theme "gruvbox-dark-transparent" + +@theme "theme" diff --git a/.config/rofi/themes/theme.rasi b/.config/rofi/themes/theme.rasi new file mode 100644 index 0000000..d964b09 --- /dev/null +++ b/.config/rofi/themes/theme.rasi @@ -0,0 +1,9 @@ +@import "gruvbox-dark-transparent" + +textbox-prompt-sep { + expand: false; + str: ""; // Override default prompt colon + text-color: @normal-foreground; + margin: 0 0.3em 0 0; +} + diff --git a/.local/bin/menu-layout b/.local/bin/menu-layout index d5ee6c7..7309b87 100755 --- a/.local/bin/menu-layout +++ b/.local/bin/menu-layout @@ -1,9 +1,5 @@ #!/usr/bin/env sh -layout=`autorandr | rofi -dmenu -i -p "Select layout" | awk '{print $1}'` -autorandr $layout -feh --bg-scale --no-fehbg "$HOME/.config/wallpaper" -# echo "dwm.accent: $(color-picker $WALLPAPER)" > /tmp/dwm_accent -# xrdb -override -merge /tmp/dwm_accent -# rm /tmp/dwm_accent -# kill -HUP $(pidof dwm) + +layout=`autorandr | rofi -dmenu -i -p "Select layout:" | awk '{print $1}'` +autorandr $layout diff --git a/.local/bin/menu-run b/.local/bin/menu-run index 6d9b981..733310e 100755 --- a/.local/bin/menu-run +++ b/.local/bin/menu-run @@ -4,6 +4,6 @@ rofi -run-list-command "alias | awk -F= \"{print \\\$1}\"" \ -run-command "/usr/bin/env zsh -i -c '{cmd}'" \ -rnow -show-icons -matching "prefix" \ - -display-combi "Start" \ + -display-combi "Start:" \ -show combi -combi-modes "drun,run" diff --git a/.local/bin/menu-sink b/.local/bin/menu-sink index 7707cf7..ff2e5b4 100755 --- a/.local/bin/menu-sink +++ b/.local/bin/menu-sink @@ -11,7 +11,7 @@ sinks=`echo "$sinks_and_numbers" | awk -F'[' '{print $1}' | cut -c 2-` -chosen=`echo "$sinks" | rofi -dmenu -p "Select audio sink" -i` +chosen=`echo "$sinks" | rofi -dmenu -p "Select audio sink:" -i` if [ -z "$chosen" ]; then # Exited out of dmenu prompt exit