diff --git a/.gitignore b/.gitignore index 2333b4f..5780c70 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.pid *.tmp *.secret +fishd.tmp.* # TODO: should be unnecessary once color generation is homegrown /colors/gen/vendor diff --git a/apps/de/sxhkd/rc b/apps/de/sxhkd/rc index 3baf885..95001ff 100755 --- a/apps/de/sxhkd/rc +++ b/apps/de/sxhkd/rc @@ -233,6 +233,12 @@ super + w super + shift + v sh -c 'kill -USR1 $(cat "/var/run/user/$UID/polybar-mic-script.sh.pid")' +super + shift + e + rofimoji --use-clipboard --rofi-args='--sort -sorting-method fzf' + +super + shift + p + rofi-pass + # close the current application super + c bspc node -c diff --git a/apps/de/x/resources b/apps/de/x/resources index b8ed3f6..043f575 100755 --- a/apps/de/x/resources +++ b/apps/de/x/resources @@ -1,8 +1,8 @@ ! font #define mono_font iosevka-lyte #define mono_font_size 14 -#define mono_font_letterspace 0 -#define icon_font Font Awesome 5 Free Solid +#define mono_font_letterspace 0 +#define icon_font Font Awesome 5 Free Solid #define icon_font_size 12 #define bold_mono_font iosevka-lyte Semibold #define emoji_font Noto Emoji @@ -94,3 +94,5 @@ rofi.bw: window_border rofi.color-enabled: true rofi.monitor: -4 rofi.width: 600 +rofi.sort: true +rofi.sorting-method: fzf diff --git a/apps/kitty/kitty.conf b/apps/kitty/kitty.conf index cc56e4c..75786a4 100644 --- a/apps/kitty/kitty.conf +++ b/apps/kitty/kitty.conf @@ -8,7 +8,7 @@ font_features iosevka-lyte -liga -dlig -calt font_size 11.0 adjust_line_height 0 -window_padding_width 5.0 +window_padding_width 10.0 window_margin_width 0.0 clear_all_shortcuts yes diff --git a/bin/app-launcher b/bin/app-launcher index 3057004..ef01591 100755 --- a/bin/app-launcher +++ b/bin/app-launcher @@ -1,3 +1,3 @@ #!/usr/bin/env sh -rofi -combi-modi run,window -show combi -modi combi "$@" +rofi -combi-modi run,window -show combi -modi combi -sorting-method fzf --sort "$@" diff --git a/bin/fzfemoji b/bin/fzfemoji new file mode 100755 index 0000000..522a087 --- /dev/null +++ b/bin/fzfemoji @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +op="${1:--c}"; shift &>/dev/null +cd ~/.password-store || ( echo "Could not cd to ~/.password-store" && exit 1 ) +r="$(< "$HOME/.emoji.txt" fzf --height 40%)" +echo "Selected $r (it's in your clipboard)" +<<< $r awk '$0=$1' | tr -d '\n' | clip +cd - || return 1 diff --git a/bin/fzfp b/bin/fzfp new file mode 100755 index 0000000..4d6a34f --- /dev/null +++ b/bin/fzfp @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +op="${1:--c}"; shift &>/dev/null +cd ~/.password-store || ( echo "Could not cd to ~/.password-store" && exit 1 ) +pp="$(fd gpg | sd ".gpg" "" | fzf --height 40%)" +echo pass $op $pp +pass "$op" "$@" "$pp" +cd - || return 1 diff --git a/bin/lib/arch-linux/provisioning/3-extras.bash b/bin/lib/arch-linux/provisioning/3-extras.bash index 3f1bb24..23a8dfc 100755 --- a/bin/lib/arch-linux/provisioning/3-extras.bash +++ b/bin/lib/arch-linux/provisioning/3-extras.bash @@ -49,6 +49,9 @@ pacaur --needed -S \ libinput libinput-gestures `# Trackpad Control` \ xcape `# Escape Better` \ dunst `# Desktop Notifications` \ + rofimoji `# Emoji Picker` \ --noconfirm --noedit +curl -L -o "$HOME/.emoji.txt" https://lyte.dev/uploads/emoji.txt + # TODO: recommend systemd services?