From 45e294be50d35cafbddf47ba4ec0301067a2eb76 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 10 Jan 2022 21:38:34 -0700 Subject: minor changes with rofi --- extras/HOME/.config/rofi/config.rasi | 10 +++++----- extras/HOME/.local/bin/bluetooth-select.sh | 2 +- extras/HOME/.local/bin/emoticon-select.sh | 2 +- extras/HOME/.local/bin/rofi-pass | 2 +- extras/HOME/.local/bin/set-sink.sh | 2 +- src/Internal/DMenu.hs | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/extras/HOME/.config/rofi/config.rasi b/extras/HOME/.config/rofi/config.rasi index d804f7a..b78665e 100644 --- a/extras/HOME/.config/rofi/config.rasi +++ b/extras/HOME/.config/rofi/config.rasi @@ -5,7 +5,7 @@ selected-normal-background: @theme-color; normal-foreground: @theme-color; alternate-normal-foreground: @theme-color; - textbox-background: #202020; + main-background: #202020e0; font: "Monofur Bold Nerd Font 34"; } @@ -20,13 +20,13 @@ window { #case-indicator { background-color: @theme-color; - text-color: #202020; + text-color: @main-background; padding: 10px; } #prompt { background-color: @theme-color; - text-color: #202020; + text-color: @main-background; padding: 10px; } @@ -35,7 +35,7 @@ inputbar { } #entry { - background-color: #202020; + background-color: @main-background; padding: 10px; } @@ -44,7 +44,7 @@ inputbar { border: 50px 0px 0px ; border-color: #000000; scrollbar: true; - background-color: #202020; + background-color: @main-background; } element { diff --git a/extras/HOME/.local/bin/bluetooth-select.sh b/extras/HOME/.local/bin/bluetooth-select.sh index a39ead1..8c901ee 100755 --- a/extras/HOME/.local/bin/bluetooth-select.sh +++ b/extras/HOME/.local/bin/bluetooth-select.sh @@ -2,7 +2,7 @@ devices="$(bluetoothctl -- devices | sed 's#^Device ##')" selection="$( - echo -e "$devices\nDisconnect" | rofi -p "Connect Bluetooth" \ + echo -e "$devices\nDisconnect" | rofi -i -p "Connect Bluetooth" \ -theme-str '* {theme-color: #8888ff;}' \ -dmenu)" diff --git a/extras/HOME/.local/bin/emoticon-select.sh b/extras/HOME/.local/bin/emoticon-select.sh index ed6cddc..cb593b4 100755 --- a/extras/HOME/.local/bin/emoticon-select.sh +++ b/extras/HOME/.local/bin/emoticon-select.sh @@ -1,7 +1,7 @@ #!/bin/bash if ( which rofi ) ; then - menu=(rofi -theme-str '* {theme-color: #ffa050;}' -p "Select Emoticon" -dmenu) + menu=(rofi -i -theme-str '* {theme-color: #ffa050;}' -p "Select Emoticon" -dmenu) else menu=(dmenu -fn NotoSans:size=24 -i -nf "#ffff88" -sb "#ffff88" -p "Select Emoticon" -l 12 -dim 0.4) fi diff --git a/extras/HOME/.local/bin/rofi-pass b/extras/HOME/.local/bin/rofi-pass index 57a4704..6eb58b7 100755 --- a/extras/HOME/.local/bin/rofi-pass +++ b/extras/HOME/.local/bin/rofi-pass @@ -12,7 +12,7 @@ if [[ -n $WAYLAND_DISPLAY ]]; then dmenu=dmenu-wl xdotool="ydotool type --file -" elif [[ -n $DISPLAY ]]; then - dmenu=(rofi -dmenu -p 'Password') + dmenu=(rofi -i -dmenu -p 'Password') xdotool="xdotool type --clearmodifiers --file -" else echo "Error: No Wayland or X11 display detected" >&2 diff --git a/extras/HOME/.local/bin/set-sink.sh b/extras/HOME/.local/bin/set-sink.sh index 71054d8..9cd6f93 100755 --- a/extras/HOME/.local/bin/set-sink.sh +++ b/extras/HOME/.local/bin/set-sink.sh @@ -1,6 +1,6 @@ #!/bin/bash -DMENU=(rofi -theme-str '* {theme-color: #88ff88;}' -dmenu) +DMENU=(rofi -i -theme-str '* {theme-color: #88ff88;}' -dmenu) sinks="$( pactl list sinks | while read line ; do diff --git a/src/Internal/DMenu.hs b/src/Internal/DMenu.hs index 360ad58..f964544 100644 --- a/src/Internal/DMenu.hs +++ b/src/Internal/DMenu.hs @@ -18,7 +18,7 @@ data Colors = runDMenu :: X () runDMenu = void $ - safeSpawn "rofi" ["-p", "Execute ", "-show", "run"] + safeSpawn "rofi" ["-display-run", "Execute", "-show", "run"] runDMenuPrompt :: String -> Maybe String -> [String] -> X String runDMenuPrompt prompt color select = -- cgit