Start implementing actions in modules. Change terminator to xterm as it doesnt spawn another child process
This commit is contained in:
@@ -25,8 +25,7 @@ class bar_mode(Enum):
|
||||
mode = bar_mode.normal
|
||||
|
||||
floatterm_args = lambda prog : ['terminator', '-r', 'FLOAT_TERM', '-p'
|
||||
, 'dark', '-e', 'echo kill_unfocus $$ > {}; exec {}'.format(
|
||||
config.fifo_file_executor, prog)] # TODO URGENT solve without fifo
|
||||
, 'dark', '-e', 'exec {}'.format(prog)] # TODO implement kill on lost focus
|
||||
def date_comm(args):
|
||||
subprocess.Popen(['yad', '--no-buttons', '--calendar', '--sticky'
|
||||
, '--on-top' , '--class' , '"YADWIN"', '--posx=1650', '--posy=24'
|
||||
@@ -76,7 +75,7 @@ def toggle_secs(args):
|
||||
|
||||
# Keymaps
|
||||
def_keymap = 'pl'
|
||||
keymaps = {'Firefox': 'se'}
|
||||
keymaps = {'firefox': 'se'}
|
||||
cur_class = ''
|
||||
def set_lang(args):
|
||||
global keymaps
|
||||
@@ -87,7 +86,7 @@ commands_dict = {'toggle_secs': toggle_secs
|
||||
,'date': date_comm
|
||||
,'pavu': pavu_comm
|
||||
,'load': htop_comm
|
||||
,'wlan': nmtui_comm
|
||||
#,'wlan': nmtui_comm
|
||||
,'dpms': dpms_comm
|
||||
,'i3-msg': i3msg_comm
|
||||
,'switch_lang': lang_comm
|
||||
|
||||
Reference in New Issue
Block a user