From 798fa6485e97bc6bfa427ca9cacb1190d237d2ef Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 27 Oct 2023 00:13:29 +0300 Subject: qtile: fix autostart and remove pomodor --- .config/qtile/config.py | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to '.config/qtile') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 11ab876..cb27679 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -13,6 +13,10 @@ from colors import dracula # "feh --bg-scale ~/wallpapers/wtf.jpeg", # "setxkbmap us -option ctrl:swapcaps"] +@hook.subscribe.startup_once +def autostart(): + autostart_script = os.path.expanduser('~/.config/autostart/autostart.sh') + subprocess.Popen([autostart_script]) # autostart_path = os.path.expanduser('~/.config/autostart/autostart.sh') # subprocess.run([autostart_path]) @@ -67,6 +71,11 @@ layouts = [ # layout.Zoomy(**layout_theme), ] +@hook.subscribe.client_new +def float_my_app(window): + if window.window.get_name() == "thanos/pass-launcher": + window.floating = True + # Widgets def init_widgets_defaults(): """Set widget default settings.""" @@ -139,13 +148,13 @@ def init_widgets_list(): # play_color=dracula["green"], # paddig = 10, # ), - widget.Pomodoro( - color_active=dracula["cyan"], - color_break=dracula["orange"], - color_inactive=dracula["curr"], - lenghth_pomodori=30, - fontsize=17, - ), + # widget.Pomodoro( + # color_active=dracula["cyan"], + # color_break=dracula["orange"], + # color_inactive=dracula["curr"], + # lenghth_pomodori=30, + # fontsize=17, + # ), widget.Spacer( length=10, ), @@ -296,9 +305,9 @@ keys = [ Key([mod, "shift"], "a", lazy.spawn('anki'), ), - Key([mod, "shift"], "m", - lazy.spawn("emacsclient -e '(thanos/pass-launcher)'"), - ), + # Key([mod], ",", + # lazy.spawn("emacsclient -e '(thanos/pass-launcher)'"), + # ), Key([mod], "Tab", lazy.spawn("rofi -show drun"), ), -- cgit v1.2.3