From 6e3d2f12b249fded40251508ff71794cde3ee6f8 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 10 Feb 2022 11:16:22 +0100 Subject: update configs --- .config/qtile/__pycache__/config.cpython-310.pyc | Bin 0 -> 5643 bytes .config/qtile/__pycache__/config.cpython-38.pyc | Bin 0 -> 5728 bytes .config/qtile/autorc | 13 +++-- .config/qtile/config.py | 69 ++++++++++++++++++++++- .config/qtile/mdt_shell | 1 + .doom.d/config.el | 53 ++++++++++++++++- .doom.d/doom.png | Bin 0 -> 53691 bytes .doom.d/init.el | 2 +- .doom.d/packages.el | 6 +- 9 files changed, 132 insertions(+), 12 deletions(-) create mode 100644 .config/qtile/__pycache__/config.cpython-310.pyc create mode 100644 .config/qtile/__pycache__/config.cpython-38.pyc create mode 100755 .config/qtile/mdt_shell create mode 100644 .doom.d/doom.png diff --git a/.config/qtile/__pycache__/config.cpython-310.pyc b/.config/qtile/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000..542d4c5 Binary files /dev/null and b/.config/qtile/__pycache__/config.cpython-310.pyc differ diff --git a/.config/qtile/__pycache__/config.cpython-38.pyc b/.config/qtile/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..66d3302 Binary files /dev/null and b/.config/qtile/__pycache__/config.cpython-38.pyc differ diff --git a/.config/qtile/autorc b/.config/qtile/autorc index 14969c9..e195665 100755 --- a/.config/qtile/autorc +++ b/.config/qtile/autorc @@ -1,12 +1,14 @@ #!/bin/bash -function off_monitor_if_hdmi_plugged_in() { +function monitor_settings() { + sleep .5 monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) if [ $monitor_status == 1 ]; then - xrandr --auto - xrandr --output eDP-1 --off + # xrandr --auto + # xrandr --output eDP-1 --off + xrandr --output eDP-1-1 --auto --output HDMI-0 --auto --left-of eDP-1-1 fi } @@ -18,9 +20,8 @@ function start() { $($1 $2) & } -off_monitor_if_hdmi_plugged_in +start nitrogen "--restore" +monitor_settings caps_to_esc start picom "-b -D 4 --vsync" -start nitrogen "--restore" -start run_spotifyd diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 0ab888b..1741027 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -14,10 +14,13 @@ mod = "mod4" terminal = guess_terminal() BAR = '#282a36' +LIGHT_BAR = '#393b37' YELLOW = '#f1fa8c' RED = '#ff5555' +LIGHT_RED = '#ff9999' GREEN = '#50fa7b' CYAN = '#8be9fd' +LIGHT_CYAN = '#abfbff' @hook.subscribe.startup_once @@ -30,6 +33,7 @@ keys = [ Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), Key([mod], "j", lazy.layout.down(), desc="Move focus down"), Key([mod], "k", lazy.layout.up(), desc="Move focus up"), + Key([mod], "s", lazy.next_screen() ), Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"), @@ -59,6 +63,7 @@ keys = [ Key([mod, "control"], "r", lazy.restart(), desc="Restart Qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), + Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), @@ -72,8 +77,11 @@ keys = [ Key([mod, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"), Key([mod, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"), + Key([mod, "mod1"], "f", lazy.spawn("firefox netflix.com"), desc="Spawn firefox"), Key([mod, "mod1"], "e", lazy.spawn("emacs"), desc="Spawn emacs"), Key([mod, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"), + Key([mod, "mod1"], "g", lazy.spawn("alacritty -e /home/jakub/.config/qtile/mdt_shell"), desc="connect to google coral device"), + Key([mod, "mod1"], "l", lazy.spawn("slock"), desc="lock desktop"), ] groups_names = [ "dev", @@ -146,7 +154,20 @@ screens = [ widget.Sep(**transparent_sep), widget.CurrentLayout(), widget.Sep(**transparent_sep), - widget.GroupBox(), + widget.GroupBox( + margin_y = 3, + margin_x = 0, + padding_y = 5, + padding_x = 3, + borderwidth = 3, + rounded = False, + highlight_color = LIGHT_BAR, + highlight_method = "line", + this_current_screen_border = CYAN, + this_screen_border = CYAN, + other_current_screen_border = LIGHT_BAR, + other_screen_border = LIGHT_BAR, + ), widget.Prompt(), widget.Sep(**transparent_sep), widget.WindowName(), @@ -156,7 +177,51 @@ screens = [ widget.Sep(**soft_sep), widget.Battery(foreground=GREEN), widget.Sep(**soft_sep), - widget.Clock(timezone='Europe/Warsaw', format='%B %-d, %H:%M', foreground=CYAN), + widget.Clock(format='%B %-d, %H:%M', foreground=CYAN), + widget.Sep(**soft_sep), + widget.CurrentScreen() + ], + 24, + margin=8, + background=BAR, + border_color=CYAN, + border_width=1 + ), + ), + Screen( + top=bar.Bar( + [ + widget.Sep(**transparent_sep), + widget.Image(filename="~/.config/qtile/python.png", margin=4), + widget.Sep(**transparent_sep), + widget.CurrentLayout(), + widget.Sep(**transparent_sep), + widget.GroupBox( + margin_y = 3, + margin_x = 0, + padding_y = 5, + padding_x = 3, + borderwidth = 3, + rounded = False, + highlight_color = LIGHT_BAR, + highlight_method = "line", + this_current_screen_border = CYAN, + this_screen_border = CYAN, + other_current_screen_border = LIGHT_BAR, + other_screen_border = LIGHT_BAR, + ), + widget.Prompt(), + widget.Sep(**transparent_sep), + widget.WindowName(), + widget.Net(format="↓{down} ↑{up}", foreground=YELLOW), + widget.Sep(**soft_sep), + widget.CPU(format=' {load_percent}%', fontsize=12, foreground=RED), + widget.Sep(**soft_sep), + widget.Battery(foreground=GREEN), + widget.Sep(**soft_sep), + widget.Clock(format='%B %-d, %H:%M', foreground=CYAN), + widget.Sep(**soft_sep), + widget.CurrentScreen() ], 24, margin=8, diff --git a/.config/qtile/mdt_shell b/.config/qtile/mdt_shell new file mode 100755 index 0000000..90fa6f3 --- /dev/null +++ b/.config/qtile/mdt_shell @@ -0,0 +1 @@ +TERM=xterm-256color /home/jakub/.local/bin/mdt shell diff --git a/.doom.d/config.el b/.doom.d/config.el index 851c998..589e66f 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -14,4 +14,55 @@ (setq fancy-splash-image "~/.doom.d/doom.png") -(use-package! lsp-tailwindcss) + +(set-email-account! + "gmail" + '((mu4e-sent-folder . "/\[Gmail\].Wa\&AXw-ne") + (mu4e-trash-folder . "/\[Gmail\].Kosz") + (smtpmail-smtp-user . "jdlugosz963@gmail.com")) + t) + +(setq mu4e-get-mail-command "offlineimap index" + mu4e-update-interval 300 + mu4e-compose-format-flowed t + mu4e-index-cleanup nil + mu4e-index-lazy-check t + mu4e-headers-date-format "%d.%m.%y") + + +(custom-set-faces + '(org-level-1 ((t (:inherit outline-1 :height 1.2)))) + '(org-level-2 ((t (:inherit outline-2 :height 1.1)))) + '(org-level-3 ((t (:inherit outline-3 :height 1.05)))) + '(org-level-4 ((t (:inherit outline-4 :height 1.025)))) + '(org-level-5 ((t (:inherit outline-5 :height 1.0))))) + +(setq org-ellipsis " ▼ ") + +(use-package! org-bullets + :after org + :hook (org-mode . org-bullets-mode) + :config + (setq org-bullets-bullet-list '("◉" "●" "○" "◆" "●" "○" "◆")) + ) + +(use-package org-roam + :ensure t + :custom + (org-roam-directory (file-truename "~/Notes/roam/")) + :bind (("C-c n l" . org-roam-buffer-toggle) + ("C-c n f" . org-roam-node-find) + ("C-c n g" . org-roam-graph) + ("C-c n i" . org-roam-node-insert) + ("C-c n c" . org-roam-capture) + ;; Dailies + ("C-c n j" . org-roam-dailies-capture-today)) + :config + ;; If you're using a vertical completion framework, you might want a more informative completion interface + (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) + (org-roam-db-autosync-mode) + ;; If using org-roam-protocol + (require 'org-roam-protocol)) + +(global-set-key (kbd "") 'org-tree-slide-mode) +(global-set-key (kbd "S-") 'org-tree-slide-skip-done-toggle) diff --git a/.doom.d/doom.png b/.doom.d/doom.png new file mode 100644 index 0000000..4020f33 Binary files /dev/null and b/.doom.d/doom.png differ diff --git a/.doom.d/init.el b/.doom.d/init.el index dc33adb..11c4398 100644 --- a/.doom.d/init.el +++ b/.doom.d/init.el @@ -160,7 +160,7 @@ rest ; Emacs as a REST client ;;rst ; ReST in peace ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;(scheme +guile) ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor diff --git a/.doom.d/packages.el b/.doom.d/packages.el index a62bb6f..69a9d74 100644 --- a/.doom.d/packages.el +++ b/.doom.d/packages.el @@ -1,5 +1,3 @@ -(package! lsp-tailwindcss :recipe (:host github :repo "merrickluo/lsp-tailwindcss")) - ;; -*- no-byte-compile: t; -*- ;;; $DOOMDIR/packages.el @@ -50,3 +48,7 @@ ;(unpin! pinned-package another-pinned-package) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;(unpin! t) + +(package! org-roam) +(package! org-tree-slide) +(package! org-bullets) -- cgit v1.2.3