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): def eprint(*args, **kwargs):
# uncomment to enable debug... # uncomment to enable debug...
print(*args, file=sys.stderr, **kwargs) # print(*args, file=sys.stderr, **kwargs)
pass pass
def bash_it(cmd): def bash_it(cmd):
@ -43,7 +43,7 @@ def send_notif(title, message):
import subprocess import subprocess
commands = ['isbn to bibtex', commands = ['isbn to bibtex',
'b', 'emoji',
'c'] 'c']
@ -62,11 +62,13 @@ if selected_command:
res = bash_it('echo ' + isbn + '| isbn_to_bibtex.py') res = bash_it('echo ' + isbn + '| isbn_to_bibtex.py')
write_to_clipboard(res) write_to_clipboard(res)
send_notif("status", "done!: "+ res) send_notif("status", "done!: "+ res)
elif selected_command == 'emoji':
bash_it("rofi -show emoji")
else: else:
send_notif("Failure", "Unkown Command") send_notif("Failure", "Unkown Command")
exit(1) exit(1)
else: else:
print('No command selected') eprint('No command selected')
exit(0) exit(0)

View File

@ -33,6 +33,10 @@ XF86AudioPlay
# wm independent hotkeys # wm independent hotkeys
# #
Pause
transformers_ocr recognize
# terminal emulator # terminal emulator
super + Return super + Return
alacritty alacritty
@ -129,10 +133,11 @@ super + r
# program launcher # program launcher
super + shift + r super + shift + r
rofi -show run || dmenu_run rofi -show run || dmenu_run
super + v
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
# program launcher # program launcher
super + bracketleft super + bracketleft
rofi -show emoji ~/bin/rofi_bin_launcher.py
# #