From 8221837303534beccdd33d72b504c165c203032c Mon Sep 17 00:00:00 2001 From: Flinner Yuu Date: Wed, 27 Sep 2023 00:35:12 +0300 Subject: [PATCH] feat: add rofi to sxhkd --- bin/bin/rofi_bin_launcher.py | 8 +++++--- sxhkd/.config/sxhkd/sxhkdrc | 9 +++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bin/bin/rofi_bin_launcher.py b/bin/bin/rofi_bin_launcher.py index ad2b384..2c3843a 100755 --- a/bin/bin/rofi_bin_launcher.py +++ b/bin/bin/rofi_bin_launcher.py @@ -3,7 +3,7 @@ import sys def eprint(*args, **kwargs): # uncomment to enable debug... - print(*args, file=sys.stderr, **kwargs) + # print(*args, file=sys.stderr, **kwargs) pass def bash_it(cmd): @@ -43,7 +43,7 @@ def send_notif(title, message): import subprocess commands = ['isbn to bibtex', - 'b', + 'emoji', 'c'] @@ -62,11 +62,13 @@ if selected_command: res = bash_it('echo ' + isbn + '| isbn_to_bibtex.py') write_to_clipboard(res) send_notif("status", "done!: "+ res) + elif selected_command == 'emoji': + bash_it("rofi -show emoji") else: send_notif("Failure", "Unkown Command") exit(1) else: - print('No command selected') + eprint('No command selected') exit(0) diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index cec73b2..00ad0c2 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -33,6 +33,10 @@ XF86AudioPlay # wm independent hotkeys # +Pause + transformers_ocr recognize + + # terminal emulator super + Return alacritty @@ -129,10 +133,11 @@ super + r # program launcher super + shift + r rofi -show run || dmenu_run - +super + v + rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' # program launcher super + bracketleft - rofi -show emoji + ~/bin/rofi_bin_launcher.py #