feat: add rofi to sxhkd

This commit is contained in:
Flinner Yuu 2023-09-27 00:35:12 +03:00
parent ba5680253d
commit 8221837303
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
2 changed files with 12 additions and 5 deletions

View File

@ -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)

View File

@ -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
#