diff --git a/.config/niri/emoji-picker.fish b/.config/niri/emoji-picker.fish index 1836fffc..5a6d3937 100755 --- a/.config/niri/emoji-picker.fish +++ b/.config/niri/emoji-picker.fish @@ -1,4 +1,5 @@ #!/usr/bin/env fish +argparse c/clipboard -- $argv set -l data_path ~/.config/niri/emoji-data.txt # read emoji data @@ -7,14 +8,13 @@ set -l data (cat $data_path | string collect -N | string trim --right | string c set -l line (printf "%s" $data | fuzzel --prompt=">> " --dmenu) # get the first space-separated token set -l emoji (string split -f1 ' ' $line) -sleep 0.15 if test -n "$emoji" - wtype $emoji - # wtype -M ctrl -M shift -k v - # nohup wtype testing &>/dev/null & - # nohup wtype $emoji &>/dev/null & + # only type emoji if user made a selection + if not set -ql _flag_c + wtype $emoji + else + wl-copy $emoji + end else return 1 end -# wtype "gaming jacket" -# nohup wtype $emoji &>/dev/null & diff --git a/.config/waybar/config##hostname.dbox b/.config/waybar/config##hostname.dbox index 58c5811c..df69d597 100644 --- a/.config/waybar/config##hostname.dbox +++ b/.config/waybar/config##hostname.dbox @@ -29,7 +29,7 @@ }, // bottom bar { - // "output": "DP-1", + "output": "DP-1", "layer": "top", "position": "bottom", "modules-left": [