diff options
author | Thanos Apollo <[email protected]> | 2022-10-04 17:59:44 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2022-10-04 17:59:44 +0300 |
commit | 6a0a514b1f4f2bf39781ff635ea1785d802d9188 (patch) | |
tree | 343606459c2b57c8f982b3bb434c4888e3678b1c | |
parent | 55835e79027acc4a25535439faf1ed651ed79495 (diff) | |
parent | 780e1518d1fd0fa6cb13a79109d9e9401a015866 (diff) |
Merge branch 'master' of github.com:ThanosApollo/config
-rw-r--r-- | .config/doom/custom.el | 2 | ||||
-rw-r--r-- | .config/qtile/config.py | 54 | ||||
-rw-r--r-- | .config/qtile/keys.py | 18 | ||||
-rw-r--r-- | .config/qutebrowser/config.py | 2 |
4 files changed, 49 insertions, 27 deletions
diff --git a/.config/doom/custom.el b/.config/doom/custom.el index 574e148..9f3eb98 100644 --- a/.config/doom/custom.el +++ b/.config/doom/custom.el @@ -4,7 +4,7 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages - '(auto-sudoedit nyx-theme moe-theme lab-themes helm org-wc wc-mode ef-themes one-themes ayu-theme paper-theme magithub evil-tutor circe the-matrix-theme ac-emmet html5-schema htmlize ac-html-bootstrap ac-html organic-green-theme typing-game monkeytype hacker-typer org-pdftools pdf-tools gotham-theme linum-relative vterm dired-ranger ranger arc-dark-theme darktooth-theme latex-preview-pane telega uwu-theme w3m flames-of-freedom gnugo elcord mpv ffmpeg-player playerctl espotify futhark-mode green-is-the-new-black-theme spotify jazz-theme)) + '(pomodoro auto-sudoedit nyx-theme moe-theme lab-themes helm org-wc wc-mode ef-themes one-themes ayu-theme paper-theme magithub evil-tutor circe the-matrix-theme ac-emmet html5-schema htmlize ac-html-bootstrap ac-html organic-green-theme typing-game monkeytype hacker-typer org-pdftools pdf-tools gotham-theme linum-relative vterm dired-ranger ranger arc-dark-theme darktooth-theme latex-preview-pane telega uwu-theme w3m flames-of-freedom gnugo elcord mpv ffmpeg-player playerctl espotify futhark-mode green-is-the-new-black-theme spotify jazz-theme)) '(warning-suppress-types '((emacs) (defvaralias)))) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 199d043..d61aa70 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -17,11 +17,12 @@ def start_once(): ## Keybindings my_keys = MyKeys(mod="mod4", browser="qutebrowser", - term="alacritty") + term="alacritty", + editor = "emacsclient -c -a 'emacs'") keys = my_keys.init_keys() dgroups_key_binder = simple_key_binder("mod4") - +mouse = my_keys.init_mouse() ## Groups and layouts groups = [] group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0",] @@ -53,7 +54,7 @@ layouts = [ # layout.MonadWide(**layout_theme), # layout.Matrix(**layout_theme), # layout.Bsp(**layout_theme), - # layout.Floating(**layout_theme), + layout.Floating(**layout_theme), # layout.RatioTile(**layout_theme), layout.Max(**layout_theme) ] @@ -122,19 +123,42 @@ def init_widgets_list(): background = my_colors["black"], ), widget.Notify( + font = "sansmono", + fontsize = "14", ), + # widget.Pomodoro( + # font = 'sansmono', + # fontsize = 17, + # color_inactive = my_colors['blue'], + # length_pomodori = 35, + # ), + # widget.Sep( + # linewidth = 1, + # padding = 10, + # foreground = my_colors["black2"], + # background = my_colors["black"] + # ), + widget.TextBox( + font="FontAwesome", + text= '|' + str(subprocess.check_output("uname -r", shell=True).strip()).replace('b','') + '|', + foreground=my_colors["grey2"], + background=my_colors["black"], + padding = 0, + fontsize=14 + ), widget.Sep( linewidth = 1, padding = 10, foreground = my_colors["black2"], background = my_colors["black"] ), - widget.Pomodoro( + widget.Volume( font = 'sansmono', - fontsize = 17, - color_inactive = my_colors['blue'], - length_pomodori = 35, + fontsize = 15, + fmt = 'Vol: {}', + foreground = my_colors['cyan'], + ), widget.Sep( linewidth = 1, @@ -142,20 +166,6 @@ def init_widgets_list(): foreground = my_colors["black2"], background = my_colors["black"] ), - # widget.TextBox( - # font="FontAwesome", - # text= '|' + str(subprocess.check_output("uname -r", shell=True).strip()).replace('b','') + '|', - # foreground=my_colors["blue"], - # background=my_colors["black"], - # padding = 0, - # fontsize=14 - # ), - # widget.Sep( - # linewidth = 1, - # padding = 10, - # foreground = my_colors["black2"], - # background = my_colors["black"] - # ), widget.Memory( measure_mem="G", fontsize=15, @@ -239,6 +249,8 @@ def init_screens(): return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=33, opacity=0.8)), Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26, opacity=0.8))] + + screens = init_screens() follow_mouse_focus = True diff --git a/.config/qtile/keys.py b/.config/qtile/keys.py index 8667d2e..9b9438b 100644 --- a/.config/qtile/keys.py +++ b/.config/qtile/keys.py @@ -2,15 +2,17 @@ from libqtile.config import Key from libqtile.command import lazy - +from libqtile.config import Click, Drag class MyKeys(): - def __init__(self,mod,browser,term): + def __init__(self,mod,browser,term,editor): self.mod = mod self.browser = browser self.term = term + self.editor = editor + def init_keys(self): my_keys = [ @@ -52,8 +54,8 @@ class MyKeys(): desc='Shutdown Qtile' ), Key([self.mod, "shift"], "e", - lazy.spawn("emacsclient -c -a 'emacs'"), - desc='Doom Emacs' + lazy.spawn(self.editor), + desc='Launch editor' ), ### Switch focus of monitors Key([self.mod], "period", @@ -161,3 +163,11 @@ class MyKeys(): ), ] return my_keys + + def init_mouse(self): + mouse_keys = [ + Drag([self.mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), + Drag([self.mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), + Click([self.mod], "Button2", lazy.window.bring_to_front()), + ] + return mouse_keys diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 27190af..8845d2d 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -8,7 +8,7 @@ config.set("colors.webpage.darkmode.enabled", True) # start page -c.url.start_pages = ["https://start.duckduckgo.com/"] +c.url.start_pages = ["https://thanosapollo.github.io/startpage/"] |