Back to wofi.
This commit is contained in:
parent
5c53f6529b
commit
964626d973
1870
_gui/_configs/qtile/chars/emoji
Normal file
1870
_gui/_configs/qtile/chars/emoji
Normal file
File diff suppressed because it is too large
Load Diff
@ -69,7 +69,7 @@ keys = [
|
|||||||
Key([mod], "Return", lazy.spawn("footclient")),
|
Key([mod], "Return", lazy.spawn("footclient")),
|
||||||
Key([mod], "space", lazy.spawncmd()),
|
Key([mod], "space", lazy.spawncmd()),
|
||||||
Key([mod], "a", lazy.spawn("flatpak run com.yubico.yubioath")),
|
Key([mod], "a", lazy.spawn("flatpak run com.yubico.yubioath")),
|
||||||
Key([mod], "e", lazy.spawn("rofi -show emoji")),
|
Key([mod], "e", lazy.spawn("selector-chars")),
|
||||||
Key([mod], "i", lazy.spawn("sh -c 'grim -g \"$(slurp)\"'")),
|
Key([mod], "i", lazy.spawn("sh -c 'grim -g \"$(slurp)\"'")),
|
||||||
Key([mod], "m", lazy.spawn("sh -c 'pgrep -x neomutt > /dev/null || footclient -a mutt -o bold-text-in-bright=yes neomutt'")),
|
Key([mod], "m", lazy.spawn("sh -c 'pgrep -x neomutt > /dev/null || footclient -a mutt -o bold-text-in-bright=yes neomutt'")),
|
||||||
Key([mod, "shift"], "i", lazy.spawn("grim")),
|
Key([mod, "shift"], "i", lazy.spawn("grim")),
|
||||||
|
@ -1 +0,0 @@
|
|||||||
@theme "/usr/share/rofi/themes/Monokai.rasi"
|
|
@ -3,7 +3,7 @@
|
|||||||
div="---"
|
div="---"
|
||||||
|
|
||||||
set_output() {
|
set_output() {
|
||||||
sel_sink=$(printf "$sinks\\n$div\\nback\\n$div\\nexit" | rofi -dmenu -i -p "select output device")
|
sel_sink=$(printf "$sinks\\n$div\\nback\\n$div\\nexit" | wofi -G --dmenu -i -p "select output device")
|
||||||
case "$sel_sink" in
|
case "$sel_sink" in
|
||||||
back) show_current ;;
|
back) show_current ;;
|
||||||
exit) exit ;;
|
exit) exit ;;
|
||||||
@ -14,7 +14,7 @@ set_output() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_input() {
|
set_input() {
|
||||||
sel_source=$(printf "$sources\\n$div\\nbluetooth profile\\n$div\\nback\\n$div\\nexit" | rofi -dmenu -i -p "select input device")
|
sel_source=$(printf "$sources\\n$div\\nbluetooth profile\\n$div\\nback\\n$div\\nexit" | wofi -G --dmenu -i -p "select input device")
|
||||||
case "$sel_source" in
|
case "$sel_source" in
|
||||||
back) show_current ;;
|
back) show_current ;;
|
||||||
exit) exit ;;
|
exit) exit ;;
|
||||||
@ -29,7 +29,7 @@ set_bt_profile() {
|
|||||||
bt_sink=$(pactl list cards | awk -F'"' '/device.name.*bluez/ {print $2}')
|
bt_sink=$(pactl list cards | awk -F'"' '/device.name.*bluez/ {print $2}')
|
||||||
[ -z "${bt_sink}" ] &&
|
[ -z "${bt_sink}" ] &&
|
||||||
{ notify-send -t 2000 -u critical "ﳌ no headphones connected"; exit; }
|
{ notify-send -t 2000 -u critical "ﳌ no headphones connected"; exit; }
|
||||||
profile_chosen=$(printf "profile mSBC\\nprofile LDAC\\n$div\\nback\\nexit" | rofi -dmenu -i -p "select bluettoth profile")
|
profile_chosen=$(printf "profile mSBC\\nprofile LDAC\\n$div\\nback\\nexit" | wofi -G --dmenu -i -p "select bluettoth profile")
|
||||||
case "$profile_chosen" in
|
case "$profile_chosen" in
|
||||||
back) show_current ;;
|
back) show_current ;;
|
||||||
exit) exit ;;
|
exit) exit ;;
|
||||||
@ -44,7 +44,7 @@ set_bt_profile() {
|
|||||||
show_current() {
|
show_current() {
|
||||||
def_snk=$(pactl list | grep -A 1 "Name: $(pactl get-default-sink)\$" | awk -F': ' '/Description: / {print $2}')
|
def_snk=$(pactl list | grep -A 1 "Name: $(pactl get-default-sink)\$" | awk -F': ' '/Description: / {print $2}')
|
||||||
def_src=$(pactl list | grep -A 1 "Name: $(pactl get-default-source)\$" | awk -F': ' '/Description: / {print $2}')
|
def_src=$(pactl list | grep -A 1 "Name: $(pactl get-default-source)\$" | awk -F': ' '/Description: / {print $2}')
|
||||||
chosen=$(printf "output: $def_snk\\ninput: $def_src" | rofi -dmenu -i -p "current audio devices")
|
chosen=$(printf "output: $def_snk\\ninput: $def_src" | wofi -G --dmenu -i -p "current audio devices")
|
||||||
if [ "$1" = "no_switch" ]; then
|
if [ "$1" = "no_switch" ]; then
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
*) notify-send -t 2000 -u critical "婢 no device to switch" ;;
|
*) notify-send -t 2000 -u critical "婢 no device to switch" ;;
|
||||||
|
@ -287,7 +287,7 @@ show_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# command to pipe into, can add any options here
|
# command to pipe into, can add any options here
|
||||||
rofi_command="rofi -dmenu -i -p"
|
rofi_command="wofi -G --dmenu -i -p"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--status)
|
--status)
|
||||||
|
11
_gui/_scripts/selector-chars
Executable file
11
_gui/_scripts/selector-chars
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
chosen=$(cut -d ';' -f1 $XDG_CONFIG_HOME/qtile/chars/* | wofi -G --dmenu -i -p "select character to copy" | sed "s/ .*//")
|
||||||
|
[ -z "$chosen" ] && exit
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
xdotool type "$chosen"
|
||||||
|
else
|
||||||
|
printf "$chosen" | wl-copy -n
|
||||||
|
notify-send -t 2000 "'$chosen' copied to clipboard" &
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user