diff options
28 files changed, 55 insertions, 4064 deletions
diff --git a/.config/abook/abookrc b/.config/abook/abookrc deleted file mode 100644 index a6d78a0..0000000 --- a/.config/abook/abookrc +++ /dev/null @@ -1,27 +0,0 @@ -# vim filetype=conf -set use_colors = true -set autosave = true -set mutt_command = neomutt -set www_command = w3m -set index_format = " {name:32} {email:64} {phone:14|workphone|mobile}" -# colors -set color_header_fg = yellow -set color_header_bg = black -set color_footer_fg = yellow -set color_footer_bg = black -set color_list_even_fg = white -set color_list_even_bg = default -set color_list_odd_fg = white -set color_list_odd_bg = default -set color_list_header_fg = red -set color_list_header_bg = default -set color_list_highlight_fg = white -set color_list_highlight_bg = black -set color_tab_border_fg = yellow -set color_tab_border_bg = default -set color_tab_label_fg = red -set color_tab_label_bg = default -set color_field_name_fg = yellow -set color_field_name_bg = default -set color_field_value_fg = green -set color_field_value_bg = default diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 2212b73..e40fd2e 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -55,6 +55,7 @@ size = 13.0 [font.normal] #family = "UbuntuMono Nerd Font" family = "BlexMono Nerd Font" +# family = "MonaspiceNe Nerd Font" style = "Regular" [font.offset] diff --git a/.config/amfora/config.toml b/.config/amfora/config.toml deleted file mode 100644 index f6c68c5..0000000 --- a/.config/amfora/config.toml +++ /dev/null @@ -1,253 +0,0 @@ -# This is the default config file. -# It also shows all the default values, if you don't create the file. - -# All URL values may omit the scheme and/or port, as well as the beginning double slash -# Valid URL examples: -# gemini://example.com -# //example.com -# example.com -# example.com:123 - - -[a-general] -# Press Ctrl-H to access it -home = "gemini://geminispace.info/" - -# Follow up to 5 Gemini redirects without prompting. -# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini. -# If set to false, a prompt will be shown before following redirects. -auto_redirect = false - -# What command to run to open a HTTP(S) URL. -# Set to "default" to try to guess the browser, or set to "off" to not open HTTP(S) URLs. -# If a command is set, than the URL will be added (in quotes) to the end of the command. -# A space will be prepended to the URL. -# -# The best to define a command is using a string array. -# Examples: -# http = ['firefox'] -# http = ['custom-browser', '--flag', '--option=2'] -# http = ['/path/with spaces/in it/firefox'] -# -# Note the use of single quotes, so that backslashes will not be escaped. -# Using just a string will also work, but it is deprecated, and will degrade if -# you use paths with spaces. - -http = '/usr/local/bin/firefox' - -# Any URL that will accept a query string can be put here -search = "gemini://gus.guru/search" - -# Whether colors will be used in the terminal -color = true - -# Whether ANSI color codes from the page content should be rendered -ansi = true - -# Whether to replace list asterisks with unicode bullets -bullets = true - -# Whether to show link after link text -show_link = false - -# A number from 0 to 1, indicating what percentage of the terminal width the left margin should take up. -left_margin = 0.10 - -# The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped. -max_width = 150 - -# 'downloads' is the path to a downloads folder. -# An empty value means the code will find the default downloads folder for your system. -# If the path does not exist it will be created. -# Note the use of single quotes, so that backslashes will not be escaped. -downloads = '/home/jozan/dl' - -# Max size for displayable content in bytes - after that size a download window pops up -page_max_size = 2097152 # 2 MiB -# Max time it takes to load a page in seconds - after that a download window pops up -page_max_time = 10 - -# Whether to replace tab numbers with emoji favicons, which are cached. -emoji_favicons = true - - -[auth] -# Authentication settings -# Note the use of single quotes for values, so that backslashes will not be escaped. - -[auth.certs] -# Client certificates -# Set domain name equal to path to client cert -# "example.com" = 'mycert.crt' - -[auth.keys] -# Client certificate keys -# Set domain name equal to path to key for the client cert above -# "example.com" = 'mycert.key' - - -[keybindings] -bind_bottom = ":" -bind_moveup = "k" -bind_movedown = "j" -bind_back = "H" -bind_forward = "L" -bind_next_tab = "J" -bind_prev_tab = "K" -bind_edit = "o" -bind_new_tab = "O" -bind_close_tab = "x" -bind_home = "T" -bind_tab1 = "!" -bind_tab2 = "@" -bind_tab3 = "#" -bind_tab4 = "$" -bind_tab5 = "%" -bind_tab6 = "^" -bind_tab7 = "&" -bind_tab8 = "*" -bind_tab9 = "(" -bind_tab0 = ")" -# In the future there will be more settings here. - -# Hold down shift and press the numbers on your keyboard (1,2,3,4,5,6,7,8,9,0) to set this up. -# It is default set to be accurate for US keyboards. -shift_numbers = "!@#$%^&*()" - - -[url-handlers] -# Allows setting the commands to run for various URL schemes. -# E.g. to open FTP URLs with FileZilla set the following key: -# ftp = 'filezilla' -# You can set any scheme to "off" or "" to disable handling it, or -# just leave the key unset. -# -# DO NOT use this for setting the HTTP command. -# Use the http setting in the "a-general" section above. -# -# NOTE: These settings are overrided by the ones in the proxies section. -# Note the use of single quotes, so that backslashes will not be escaped. - -# This is a special key that defines the handler for all URL schemes for which -# no handler is defined. -other = 'off' - - -[cache] -# Options for page cache - which is only for text pages -# Increase the cache size to speed up browsing at the expense of memory -# Zero values mean there is no limit - -max_size = 0 # Size in bytes -max_pages = 30 # The maximum number of pages the cache will store - -# How long a page will stay in cache, in seconds. -timeout = 1800 # 30 mins - -[proxies] -# Allows setting a Gemini proxy for different schemes. -# The settings are similar to the url-handlers section above. -# E.g. to open a gopher page by connecting to a Gemini proxy server: -# gopher = "example.com:123" -# -# Port 1965 is assumed if no port is specified. -# -# NOTE: These settings override any external handlers specified in -# the url-handlers section. -# -# Note that HTTP and HTTPS are treated as separate protocols here. - - -[subscriptions] -# For tracking feeds and pages - -# Whether a pop-up appears when viewing a potential feed -popup = true - -# How often to check for updates to subscriptions in the background, in seconds. -# Set it to 0 to disable this feature. You can still update individual feeds -# manually, or restart the browser. -# -# Note Amfora will check for updates on browser start no matter what this setting is. -update_interval = 1800 # 30 mins - -# How many subscriptions can be checked at the same time when updating. -# If you have many subscriptions you may want to increase this for faster -# update times. Any value below 1 will be corrected to 1. -workers = 3 - -# The number of subscription updates displayed per page. -entries_per_page = 20 - - -[theme] -# This section is for changing the COLORS used in Amfora. -# These colors only apply if 'color' is enabled above. -# Colors can be set using a W3C color name, or a hex value such as "#ffffff". - -# Note that not all colors will work on terminals that do not have truecolor support. -# If you want to stick to the standard 16 or 256 colors, you can get -# a list of those here: https://jonasjacek.github.io/colors/ -# DO NOT use the names from that site, just the hex codes. - -# Definitions: -# bg = background -# fg = foreground -# dl = download -# btn = button -# hdg = heading -# bkmk = bookmark -# modal = a popup window/box in the middle of the screen - -# EXAMPLES: -# hdg_1 = "green" -# hdg_2 = "#5f0000" - -# Available keys to set: - -# bg: background for pages, tab row, app in general -# tab_num: The number/highlight of the tabs at the top -# tab_divider: The color of the divider character between tab numbers: | -# bottombar_label: The color of the prompt that appears when you press space -# bottombar_text: The color of the text you type -# bottombar_bg - -# hdg_1 -# hdg_2 -# hdg_3 -# amfora_link: A link that Amfora supports viewing. For now this is only gemini:// -# foreign_link: HTTP(S), Gopher, etc -# link_number: The silver number that appears to the left of a link -# regular_text: Normal gemini text, and plaintext documents -# quote_text -# preformatted_text -# list_text - -# btn_bg: The bg color for all modal buttons -# btn_text: The text color for all modal buttons - -# dl_choice_modal_bg -# dl_choice_modal_text -# dl_modal_bg -# dl_modal_text -# info_modal_bg -# info_modal_text -# error_modal_bg -# error_modal_text -# yesno_modal_bg -# yesno_modal_text -# tofu_modal_bg -# tofu_modal_text -# subscription_modal_bg -# subscription_modal_text - -# input_modal_bg -# input_modal_text -# input_modal_field_bg: The bg of the input field, where you type the text -# input_modal_field_text: The color of the text you type - -# bkmk_modal_bg -# bkmk_modal_text -# bkmk_modal_label -# bkmk_modal_field_bg -# bkmk_modal_field_text diff --git a/.config/browsers/home.html b/.config/browsers/home.html index 9054a29..780bfb3 100644 --- a/.config/browsers/home.html +++ b/.config/browsers/home.html @@ -7,7 +7,7 @@ body { height: 100%; padding: 0em; margin: 0em; - font-size: 1.4em; + font-size: 1.1em; font-family: sans-serif; color: #ebdbb2; background-color: #1d2021; @@ -71,7 +71,7 @@ body { color: #ebddb2; margin: 0em 0em .35em 0em; } -.bookmark { +.bookmark_set a { text-decoration: none; color: #928374; display: block; @@ -83,7 +83,7 @@ body { #joetown .bookmark_title { color: #cc241d; } -#joetown .bookmark:hover { +#joetown a:hover { color: #fb4934; } #sites:hover { @@ -92,7 +92,7 @@ body { #sites .bookmark_title { color: #98971a; } -#sites .bookmark:hover { +#sites a:hover { color: #b8bb26; } #fun:hover { @@ -101,7 +101,7 @@ body { #fun .bookmark_title { color: #d79921; } -#fun .bookmark:hover { +#fun a:hover { color: #fabd2f; } #workwork:hover { @@ -110,7 +110,7 @@ body { #workwork .bookmark_title { color: #458588; } -#workwork .bookmark:hover { +#workwork a:hover { color: #83a598; } </style> @@ -123,59 +123,61 @@ body { <div class="bookmark_set" id="joetown"> <div class="bookmark_title">joe town</div> <div class="bookmark_links"> - <a class="bookmark" href="https://jozan.org/">joe</a> - <a class="bookmark" href="https://gitjoe.xyz/">gitjoe</a> - <a class="bookmark" href="https://zhinu.jozan.org/">zhinu</a> - <a class="bookmark" href="http://graf.joe.town/">graf</a> - <a class="bookmark" href="http://10.1.1.6/">helios</a> - <a class="bookmark" href="http://10.2.2.5/">vega</a> - <a class="bookmark" href="http://127.0.0.1:9091/">ceres</a> - <a class="bookmark" href="https://my.vultr.com/">vultr</a> - <a class="bookmark" href="https://epik.com/">epik</a> + <a href="https://jozan.org/">joe</a> + <a href="https://gitjoe.xyz/">gitjoe</a> + <a href="https://zhinu.jozan.org/">zhinu</a> + <a href="http://graf.joe.town/">graf</a> + <a href="http://10.1.1.6/">helios</a> + <a href="http://10.2.2.5/">vega</a> + <a href="http://127.0.0.1:9091/">ceres</a> + <a href="https://my.vultr.com/">vultr</a> + <a href="https://epik.com/">epik</a> </div> </div> <div class="bookmark_set" id="sites"> <div class="bookmark_title">sites</div> <div class="bookmark_links"> - <a class="bookmark" href="https://perplexity.ai/">perp</a> - <a class="bookmark" href="https://chatgpt.com/">gpt</a> - <a class="bookmark" href="https://crontab.guru/">cron</a> + <a href="https://perplexity.ai/">perp</a> + <a href="https://chatgpt.com/">gpt</a> + <a href="https://crontab.guru/">cron</a> </div> </div> <div class="bookmark_set" id="fun"> <div class="bookmark_title">fun</div> <div class="bookmark_links"> - <a class="bookmark" href="https://protondb.com/">protondb</a> - <a class="bookmark" href="https://diablo2.io/">diablo2.io</a> - <a class="bookmark" href="https://www.icy-veins.com/">icy veins</a> - <a class="bookmark" href="https://lastminuteengineers.com/wemos-d1-mini-pinout-reference/">esp8266 pinout</a> - <a class="bookmark" href="https://www.espboards.dev/esp32/nodemcu-32s/">esp32 pinout</a> + <a href="https://protondb.com/">protondb</a> + <a href="https://diablo2.io/">diablo2.io</a> + <a href="https://www.icy-veins.com/">icy veins</a> + <a href="https://d2-holy-grail.herokuapp.com/">d2 holy grail</a> + <a href="https://d4builds.gg/builds/8d39eed7-7344-48a7-95f0-56ff30119abb/?var=0">d4 druid</a> + <a href="https://lastminuteengineers.com/wemos-d1-mini-pinout-reference/">esp8266 pinout</a> + <a href="https://www.espboards.dev/esp32/nodemcu-32s/">esp32 pinout</a> </div> </div> <div class="bookmark_set" id="workwork"> <div class="bookmark_title">work work</div> <div class="bookmark_links"> - <a class="bookmark" href="https://atlas.nuabee.fr/">atlas</a> - <a class="bookmark" href="https://grafana.nuabee.fr/">grafana</a> - <a class="bookmark" href="https://grafana.nuabee.fr/d/xfpJB9FGz/linux-servers">gr_linux_servers</a> - <a class="bookmark" href="https://grafana.nuabee.fr/d/Mz11bd07k/vue-d-ensemble-machines-atelier">gr_restops</a> - <a class="bookmark" href="https://grafana.nuabee.fr/d/WojOgXTmk/ops-alerts">gr_alertops</a> - <a class="bookmark" href="https://support.nuabee.fr/">zammad</a> - <a class="bookmark" href="https://gitlab.int.ysosecure.com/">git</a> - <a class="bookmark" href="https://gitlab.int.ysosecure.com/ops/NuaProv/-/pipelines">pipes</a> - <a class="bookmark" href="https://mbs.nuabee.com/">mbs</a> - <a class="bookmark" href="https://doc.int.ysosecure.com/">doc</a> - <a class="bookmark" href="https://kb.int.ysosecure.com/">kb</a> - <a class="bookmark" href="http://hedgedoc.int.ysosecure.com/">hedgedoc</a> - <a class="bookmark" href="https://share.nuabee.fr/">share</a> - <a class="bookmark" href="https://windmill.nuabee.fr/">windmill</a> - <a class="bookmark" href="https://aether.int.ysosecure.com/ui">aether</a> - <a class="bookmark" href="https://gaia.int.ysosecure.com/">gaia</a> - <a class="bookmark" href="https://orca1.int.ysosecure.com/certsrv">certsrv</a> - <a class="bookmark" href="https://sentry.nuabee.fr/">sentry</a> - <a class="bookmark" href="https://leek.int.ysosecure.com/">leek</a> - <a class="bookmark" href="https://auth.otc.t-systems.com/">otc</a> - <a class="bookmark" href="https://dashboard.nm.nuabee.fr/">netmaker</a> + <a href="https://atlas.nuabee.fr/">atlas</a> + <a href="https://grafana.nuabee.fr/">grafana</a> + <a href="https://grafana.nuabee.fr/d/xfpJB9FGz/linux-servers">gr_linux_servers</a> + <a href="https://grafana.nuabee.fr/d/Mz11bd07k/vue-d-ensemble-machines-atelier">gr_restops</a> + <a href="https://grafana.nuabee.fr/d/WojOgXTmk/ops-alerts">gr_alertops</a> + <a href="https://support.nuabee.fr/">zammad</a> + <a href="https://gitlab.int.ysosecure.com/">git</a> + <a href="https://gitlab.int.ysosecure.com/ops/NuaProv/-/pipelines">pipes</a> + <a href="https://mbs.nuabee.com/">mbs</a> + <a href="https://doc.int.ysosecure.com/">doc</a> + <a href="https://kb.int.ysosecure.com/">kb</a> + <a href="http://hedgedoc.int.ysosecure.com/">hedgedoc</a> + <a href="https://share.nuabee.fr/">share</a> + <a href="https://windmill.nuabee.fr/">windmill</a> + <a href="https://aether.int.ysosecure.com/ui">aether</a> + <a href="https://gaia.int.ysosecure.com/">gaia</a> + <a href="https://orca1.int.ysosecure.com/certsrv">certsrv</a> + <a href="https://sentry.nuabee.fr/">sentry</a> + <a href="https://leek.int.ysosecure.com/">leek</a> + <a href="https://auth.otc.t-systems.com/">otc</a> + <a href="https://dashboard.nm.nuabee.fr/">netmaker</a> </div> </div> </div> diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 627e0a5..5c2e861 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -27,7 +27,8 @@ sort = yes idle_threshold = 0 - font = "Terminess Nerd Font 16" + # font = "Terminess Nerd Font 16" + font = "BlexMono Nerd Font:style=Medium:size=16" # font = "NotoSans Nerd Font 17" line_height = 0 markup = full diff --git a/.config/emacs/caco.png b/.config/emacs/caco.png Binary files differdeleted file mode 100644 index 7bbe066..0000000 --- a/.config/emacs/caco.png +++ /dev/null diff --git a/.config/emacs/early-init.el b/.config/emacs/early-init.el deleted file mode 100644 index 056d4dc..0000000 --- a/.config/emacs/early-init.el +++ /dev/null @@ -1,33 +0,0 @@ -(defvar my/default-file-name-handler-alist file-name-handler-alist) - -(defun my/set-max-gc-cons-threshold () - (setq gc-cons-threshold most-positive-fixnum)) ; 2^61 bytes -(defun my/set-default-gc-cons-threshold () - (run-at-time 1 nil - (lambda () (setq gc-cons-threshold 16777216)))) ; 16 Mb - -(defun my/erase-file-name-handler-alist () - (setq file-name-handler-alist nil)) -(defun my/restore-file-name-handler-alist () - (setq file-name-handler-alist my/default-file-name-handler-alist)) - -(my/set-max-gc-cons-threshold) -(my/erase-file-name-handler-alist) -(add-hook 'emacs-startup-hook 'my/set-default-gc-cons-threshold) -(add-hook 'emacs-startup-hook 'my/restore-file-name-handler-alist) - -(defun my/ad-timestamp-message (FORMAT-STRING &rest args) - "Advice to run before `message' that prepends a timestamp to each message. -Activate this advice with: - (advice-add 'message :before 'my/ad-timestamp-message) -Deactivate this advice with: - (advice-remove 'message 'my/ad-timestamp-message)" - (if message-log-max - (let ((deactivate-mark nil) - (inhibit-read-only t)) - (with-current-buffer "*Messages*" - (goto-char (point-max)) - (if (not (bolp)) - (newline)) - (insert (format-time-string "[%F %T.%3N] ")))))) -(advice-add 'message :before 'my/ad-timestamp-message) diff --git a/.config/emacs/init.el b/.config/emacs/init.el deleted file mode 100644 index 7c5958e..0000000 --- a/.config/emacs/init.el +++ /dev/null @@ -1,125 +0,0 @@ -(require 'org) -(org-babel-load-file - (expand-file-name "org/config.org" - user-emacs-directory)) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(ansi-color-faces-vector - [default default default italic underline success warning error]) - '(auth-source-save-behavior nil) - '(ccls-sem-function-colors '("#e5b124")) - '(ccls-sem-parameter-faces - [ccls-sem-parameter-face-0 ccls-sem-parameter-face-1 ccls-sem-parameter-face-2 ccls-sem-parameter-face-3 ccls-sem-parameter-face-4 ccls-sem-parameter-face-5 ccls-sem-parameter-face-6 ccls-sem-parameter-face-7 ccls-sem-parameter-face-8 ccls-sem-parameter-face-9]) - '(custom-safe-themes - '("d445c7b530713eac282ecdeea07a8fa59692c83045bf84dd112dd738c7bcad1d" "d80952c58cf1b06d936b1392c38230b74ae1a2a6729594770762dc0779ac66b7" efault)) - '(fci-rule-color "#676E95") - '(hl-todo-keyword-faces - '(("TODO" . "#dc752f") - ("NEXT" . "#dc752f") - ("THEM" . "#2aa198") - ("PROG" . "#268bd2") - ("OKAY" . "#268bd2") - ("DONT" . "#d70000") - ("FAIL" . "#d70000") - ("DONE" . "#86dc2f") - ("NOTE" . "#875f00") - ("KLUDGE" . "#875f00") - ("HACK" . "#875f00") - ("TEMP" . "#875f00") - ("FIXME" . "#dc752f") - ("XXX+" . "#dc752f") - ("\\?\\?\\?+" . "#dc752f"))) - '(inhibit-startup-screen t) - '(jdee-db-active-breakpoint-face-colors (cons "#1c1f2b" "#c792ea")) - '(jdee-db-requested-breakpoint-face-colors (cons "#1c1f2b" "#c3e88d")) - '(jdee-db-spec-breakpoint-face-colors (cons "#1c1f2b" "#676E95")) - '(objed-cursor-color "#ff5370") - '(package-selected-packages - '(d2-mode python-mode arduino-cli-mode arduino-mode password-store-otp password-store evil-mu4e helm-fuzzy-find helm-fuzzier fuzzy fuzzy-finder neotree color-theme doom-modeline-now-playing treemacs-icons-dired edit-indirect yaml-mode lua-mode company-nginx company-fuzzy company-go company-shell helm-ag rainbow-identifiers nginx-mode evil-quickscope vc-fossil crontab-mode go-mode mutt-mode pacmacs gemini-mode org-evil glsl-mode vimrc-mode windresize evil evil-collection evil-leader evil-search-highlight-persist evil-mc evil-surround evil-ediff evil-visual-mark-mode evil-nerd-commenter evil-vimish-fold evil-numbers yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas helm helm-xref helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile projectile company company-box which-key magit undo-tree shell-pop autopair paredit rainbow-delimiters color-identifiers-mode ibuffer-vc ibuffer-projectile eyebrowse diff-hl fzf font-utils restart-emacs string-utils dired-icon kaolin-themes doom-themes spacemacs-theme dashboard org-superstar toc-org pdf-tools dockerfile-mode web-mode ssh sudo-ext vimish-fold bind-key all-the-icons all-the-icons-dired all-the-icons-ibuffer)) - '(pos-tip-background-color "#2E2A29") - '(pos-tip-foreground-color "#d4d4d6") - '(rustic-ansi-faces - ["#292D3E" "#ff5370" "#c3e88d" "#ffcb6b" "#82aaff" "#c792ea" "#89DDFF" "#EEFFFF"]) - '(send-mail-function 'smtpmail-send-it) - '(tabbar-separator '(0.2)) - '(vc-annotate-background "#292D3E") - '(vc-annotate-color-map - (list - (cons 20 "#c3e88d") - (cons 40 "#d7de81") - (cons 60 "#ebd476") - (cons 80 "#ffcb6b") - (cons 100 "#fcb66b") - (cons 120 "#f9a16b") - (cons 140 "#f78c6c") - (cons 160 "#e78e96") - (cons 180 "#d690c0") - (cons 200 "#c792ea") - (cons 220 "#d97dc1") - (cons 240 "#ec6898") - (cons 260 "#ff5370") - (cons 280 "#d95979") - (cons 300 "#b36082") - (cons 320 "#8d678b") - (cons 340 "#676E95") - (cons 360 "#676E95"))) - '(vc-annotate-very-old-color nil)) -(load-theme 'gruvbox-dark-hard) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(ccls-sem-function-face-0 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-1 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-2 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-3 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-4 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-5 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-6 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-7 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-8 ((t (:foreground "#fabd2f")))) - '(ccls-sem-function-face-9 ((t (:foreground "#fabd2f")))) - '(ccls-sem-macro-face-0 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-1 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-2 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-3 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-4 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-6 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-7 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-8 ((t (:foreground "#e27a33")))) - '(ccls-sem-macro-face-9 ((t (:foreground "#e27a33")))) - '(ccls-sem-parameter-face-0 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-2 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-3 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-4 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-5 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-6 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-7 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-8 ((t (:foreground "#58c1a4")))) - '(ccls-sem-parameter-face-9 ((t (:foreground "#58c1a4")))) - '(ccls-sem-static-face ((t (:weight bold)))) - '(ccls-sem-type-face-0 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-1 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-2 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-3 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-4 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-5 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-6 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-7 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-8 ((t (:foreground "#d3869b")))) - '(ccls-sem-type-face-9 ((t (:foreground "#d3869b")))) - '(ccls-sem-variable-face-0 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-1 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-2 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-3 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-4 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-5 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-6 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-7 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-8 ((t (:foreground "#83a598")))) - '(ccls-sem-variable-face-9 ((t (:foreground "#83a598"))))) - diff --git a/.config/emacs/org/config.org b/.config/emacs/org/config.org deleted file mode 100644 index f041eb9..0000000 --- a/.config/emacs/org/config.org +++ /dev/null @@ -1,920 +0,0 @@ -* My emacs config -** Basic configs - #+BEGIN_SRC emacs-lisp - (server-start) - (setq x-alt-keysym 'meta) - (set-keyboard-coding-system 'utf-8) - - (menu-bar-mode -1) - (tool-bar-mode -1) - (scroll-bar-mode -1) - (blink-cursor-mode -1) - (setq visible-cursor nil) - (global-hl-line-mode 1) - (global-auto-revert-mode t) - (defun my/disable-scroll-bars (frame) - (modify-frame-parameters frame - '((vertical-scroll-bars . nil) - (horizontal-scroll-bars . nil)))) - (add-hook 'after-make-frame-functions 'my/disable-scroll-bars) - - (setq default-frame-alist '((font . "mononoki Nerd Font:pixelsize=17"))) - ;; (set-frame-font "mononoki Nerd Font:pixelsize=15" nil t) - (add-hook 'prog-mode-hook 'display-line-numbers-mode) - (add-hook 'text-mode-hook 'display-line-numbers-mode) - - (setq scroll-step 1) - ;; (setq scroll-margin 1) - (setq echo-keystrokes 0.1) - (setq initial-scratch-message nil) - (defalias 'yes-or-no-p 'y-or-n-p) - - (setq backup-directory-alist '(("." . "/tmp/emacs-backup")) - backup-by-copying t - version-control t - delete-old-versions t - kept-new-versions 20 - kept-old-versions 5) - #+END_SRC - -** Desktop-save - #+BEGIN_SRC emacs-lisp - (setq desktop-dirname (expand-file-name "desktop" user-emacs-directory) - desktop-base-file-name "emacs.desktop" - desktop-base-lock-name "lock" - desktop-path (list desktop-dirname) - desktop-save t - desktop-files-not-to-save "^$" - desktop-auto-save-timeout 60) - (desktop-save-mode 1) - #+END_SRC - -** GC - #+BEGIN_SRC emacs-lisp - (add-hook 'focus-out-hook 'garbage-collect) - (add-hook 'minibuffer-setup-hook 'my/set-max-gc-cons-threshold) ;; defined in early-init.el - (add-hook 'minibuffer-exit-hook 'my/set-default-gc-cons-threshold) - #+END_SRC - -** MELPA and non-MELPA -#+BEGIN_SRC emacs-lisp - (require 'package) - (push (expand-file-name "elpa" user-emacs-directory) package-directory-list) - (add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) - (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) - (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) - (package-initialize) - - (add-to-list 'load-path (expand-file-name "font-lock+" user-emacs-directory)) - (add-to-list 'load-path (expand-file-name "header2/" user-emacs-directory)) - (add-to-list 'load-path (expand-file-name "all-the-icons/" user-emacs-directory)) - (add-to-list 'load-path (expand-file-name "all-the-icons-dired/" user-emacs-directory)) - - (setq package-selected-packages '( - evil evil-collection evil-leader - evil-search-highlight-persist evil-mc evil-surround - evil-visual-mark-mode evil-nerd-commenter evil-vimish-fold - evil-numbers evil-quickscope - lsp-mode lsp-ui - windresize - yasnippet yasnippet-classic-snippets yasnippet-snippets auto-yasnippet el-autoyas - helm helm-xref helm-lsp helm-etags-plus helm-fuzzy helm-themes helm-make helm-projectile - projectile - org-evil - company company-box company-go company-fuzzy company-nginx - which-key - magit - undo-tree - shell-pop - smartparens - rainbow-delimiters - color-identifiers-mode - ibuffer-vc ibuffer-projectile - eyebrowse - diff-hl - fzf - font-utils - restart-emacs - string-utils - dired-icon - kaolin-themes gruvbox-theme doom-themes spacemacs-theme - doom-modeline - dashboard - org-superstar toc-org - pdf-tools - dockerfile-mode - go-mode - web-mode - ssh sudo-ext - vimish-fold - bind-key - all-the-icons all-the-icons-dired all-the-icons-ibuffer - mutt-mode vimrc-mode nginx-mode gemini-mode yaml-mode crontab-mode - neotree - )) - - (when (cl-find-if-not #'package-installed-p package-selected-packages) - (package-refresh-contents) - (mapc #'package-install package-selected-packages)) -#+END_SRC - -** Some org -#+BEGIN_SRC emacs-lisp - ;; set key for agenda - ;; (require 'org) - ;; (global-set-(kbd "C-c a") 'org-agenda) - - ;;file to save todo items - ;; (setq org-agenda-files (quote ("~/.config/emacs/org/todo.org"))) - (setq org-log-done 'time) - - ;;set priority range from A to C with default A - (setq org-highest-priority ?A) - (setq org-lowest-priority ?C) - (setq org-default-priority ?A) - - ;;set colours for priorities - (setq org-priority-faces '((?A . (:foreground "#F0DFAF" :weight bold)) - (?B . (:foreground "LightSteelBlue")) - (?C . (:foreground "OliveDrab")))) - - (setq org-todo-keywords - '((sequence "TODO" - "DOING" - "|" - "DONE" - "DELAYED" - "CANCELED"))) - - (setq org-log-done 'time) - - ;;open agenda in current window - ;; (setq org-agenda-window-setup (quote current-window)) - - ;;capture todo items using C-c C-t t - ;; (define-key global-map (kbd "C-c C-t") 'org-capture) - ;; (setq org-capture-templates - ;; '(("t" "todo" entry (file+headline "~/.config/emacs/org/todo.org" "Tasks") - ;; "* TODO [#A] %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n"))) - - ;;open agenda in current window - ;; (setq org-agenda-window-setup (quote current-window)) - ;;warn me of any deadlines in next 7 days - ;; (setq org-deadline-warning-days 7) - ;;show me tasks scheduled or due in next fortnight - ;; (setq org-agenda-span (quote fortnight)) - ;;don't show tasks as scheduled if they are already shown as a deadline - ;; (setq org-agenda-skip-scheduled-if-deadline-is-shown t) - ;;don't give awarning colour to tasks with impending deadlines - ;;if they are scheduled to be done - ;; (setq org-agenda-skip-deadline-prewarning-if-scheduled (quote pre-scheduled)) - ;;don't show tasks that are scheduled or have deadlines in the - ;;normal todo list - ;; (setq org-agenda-todo-ignore-deadlines (quote all)) - ;; (setq org-agenda-todo-ignore-scheduled (quote all)) - ;;sort tasks in order of when they are due and then by priority - ;; (setq org-agenda-sorting-strategy - ;; (quote - ;; ((agenda deadline-up priority-down) - ;; (todo priority-down category-keep) - ;; (tags priority-down category-keep) - ;; (search category-keep)))) - - (org-babel-do-load-languages - 'org-babel-load-languages '((C . t ))) - (org-babel-do-load-languages - 'org-babel-load-languages '((lisp . t))) - (eval-after-load "org" - '(require 'ox-md nil t)) -#+END_SRC - -** header2 -#+BEGIN_SRC emacs-lisp -#+END_SRC - -** Other configs -#+BEGIN_SRC emacs-lisp - (setq evil-want-integration t) ;; This is optional since it's already set to t by default. - (setq evil-want-keybinding nil) - (setq evil-want-C-u-scroll t) - - (add-hook 'html-mode-hook - (lambda() - (setq sgml-basic-offset 4) - (setq indent-tabs-mode t))) -#+END_SRC - -** Files types attribution - #+BEGIN_SRC emacs-lisp - (add-to-list 'auto-mode-alist '("xinitrc$" . shell-script-mode)) - (add-to-list 'auto-mode-alist '("env$" . shell-script-mode)) - (add-to-list 'auto-mode-alist '("lfrc$" . vimrc-mode)) - (add-to-list 'auto-mode-alist '("muttrc$" . mutt-mode)) - (add-to-list 'auto-mode-alist '("dunstrc$" . conf-mode)) - (add-to-list 'auto-mode-alist '("loader.conf$" . conf-mode)) - (add-to-list 'auto-mode-alist '("mailcap$" . conf-mode)) - (add-to-list 'auto-mode-alist '("/tmp/neomutt-*" . mail-mode)) - #+END_SRC - -** Core packages -*** Smartparens -#+BEGIN_SRC emacs-lisp - (require 'smartparens-config) -(smartparens-global-mode) -#+END_SRC - -*** Evil mode -#+BEGIN_SRC emacs-lisp - (require 'evil) - (require 'evil-collection) - (require 'evil-leader) - (require 'evil-search-highlight-persist) - (require 'org-evil) - (evil-mode t) - (evil-collection-init 'ibuffer) - (evil-collection-init 'magit) - (evil-collection-init 'flymake) - (evil-collection-init 'neotree) - ;; (evil-collection-init 'mu4e) - - - (setq evil-emacs-state-cursor '("#b16286" box)) - (setq evil-normal-state-cursor '("#d79921" box)) - (setq evil-visual-state-cursor '("#b06597" box)) - (setq evil-insert-state-cursor '("#d79921" bar)) - (setq evil-replace-state-cursor '("#cc241d" hbar)) - (setq evil-operator-state-cursor '("#d79921" hbar)) - - - (evil-define-key 'insert global-map (kbd "C-o") 'delete-other-windows) - (evil-define-key 'insert global-map (kbd "C-u") 'evil-delete-backward-word) - (evil-define-key 'insert global-map (kbd "C-h") 'evil-delete-backward-char) - (evil-define-key 'normal global-map (kbd "C-o") 'delete-other-windows) - (evil-define-key 'normal global-map (kbd "C-k") 'windmove-up) - (evil-define-key 'normal global-map (kbd "C-j") 'windmove-down) - (evil-define-key 'normal global-map (kbd "C-h") 'windmove-left) - (evil-define-key 'normal global-map (kbd "C-l") 'windmove-right) - - (global-evil-leader-mode) - (evil-leader/set-leader "\\") - (setq evil-leader/in-all-states 1) - - (require 'evil-search-highlight-persist) - (global-evil-search-highlight-persist 1) - - (evil-leader/set-key "SPC" 'evil-search-highlight-persist-remove-all) - - (global-undo-tree-mode) - (evil-set-undo-system 'undo-tree) -#+END_SRC - -*** Evil nerd commenter -#+BEGIN_SRC emacs-lisp -(require 'evil-nerd-commenter) -(evilnc-default-hotkeys) -#+END_SRC - -*** Evil surround -#+BEGIN_SRC emacs-lisp - (require 'evil-surround) - (global-evil-surround-mode 1) -#+END_SRC - -*** Evil multiple-cursor -#+BEGIN_SRC emacs-lisp - (require 'evil-mc) - (global-evil-mc-mode 1) -#+END_SRC - -*** Evil vimish Fold - #+BEGIN_SRC emacs-lisp - (require 'vimish-fold) - (require 'evil-vimish-fold) - (add-hook 'prog-mode-hook 'evil-vimish-fold-mode) - (add-hook 'text-mode-hook 'evil-vimish-fold-mode) - #+END_SRC - -*** Evil numbers -#+BEGIN_SRC emacs-lisp - (require 'evil-numbers) - (define-key evil-normal-state-map (kbd "C-c C-a") 'evil-numbers/inc-at-pt) - (define-key evil-normal-state-map (kbd "C-c C-x") 'evil-numbers/dec-at-pt) -#+END_SRC - -*** Evil quickscope - #+BEGIN_SRC emacs-lisp - (require 'evil-quickscope) - (global-evil-quickscope-mode 1) - #+END_SRC - -*** Dashboard -#+BEGIN_SRC emacs-lisp - (require 'dashboard) - (dashboard-setup-startup-hook) - - (setq dashboard-banner-logo-title (concat "Welcome back to Emacs " emacs-version ", partner!") - - dashboard-startup-banner (expand-file-name "caco.png" user-emacs-directory) - ;; dashboard-startup-banner 'official - dashboard-set-init-info nil - dashboard-set-footer nil - dashboard-center-content t - dashboard-show-shortcuts nil - dashboard-set-heading-icons t - dashboard-set-file-icons nil - dashboard-set-navigator t - show-week-agenda-p t) - - (setq dashboard-items '((projects . 10) - (recents . 10) - (bookmarks . 10) - (agenda . 5))) - - (add-to-list 'evil-emacs-state-modes 'dashboard-mode) -#+END_SRC - -*** w3m -#+BEGIN_SRC emacs-lisp -;; (require 'w3m-load) -;; (setq w3m-home-page "https://start.duckduckgo.com/") -;; (setq w3m-default-display-inline-images t) -;; (define-key w3m-mode-map "w" 'right-word) -;; (define-key w3m-mode-map "b" 'left-word) -;; (define-key w3m-mode-map "<" 'scroll-left) -;; (define-key w3m-mode-map ">" 'scroll-right) -;; (define-key w3m-mode-map (kbd "C-d") 'evil-scroll-page-down) -;; (define-key w3m-mode-map (kbd "C-u") 'evil-scroll-page-up) -;; (define-key w3m-mode-map "H" 'w3m-view-previous-page) -;; (define-key w3m-mode-map "L" 'w3m-view-next-page) -;; (define-key w3m-mode-map "o" 'w3m-goto-url) -;; (define-key w3m-mode-map "O" 'w3m-goto-url-new-session) -;; (define-key w3m-mode-map "v" 'w3m-view-image) -;; (define-key w3m-mode-map "$" 'w3m-end-of-line) -;; (define-key w3m-mode-map "^" 'w3m-beginning-of-line) -;; (define-key w3m-mode-map (kbd "M-j") 'w3m-next-buffer) -;; (define-key w3m-mode-map (kbd "M-k") 'w3m-previous-buffer) -;; (define-key w3m-mode-map "t" 'w3m-copy-buffer) -#+END_SRC - -*** Helm, projectile - #+BEGIN_SRC emacs-lisp - (require 'helm-misc) - (require 'helm-projectile) - (require 'helm-locate) - (require 'helm-lsp) - - (global-set-key (kbd "M-x") 'helm-M-x) - (global-set-key (kbd "C-x C-f") #'helm-find-files) - (global-set-key (kbd "M-p") #'helm-projectile-switch-project) - (global-set-key (kbd "C-x C-b") #'helm-mini) - (global-set-key (kbd "C-x p") #'helm-projectile) - (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) - (define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) - (define-key helm-map (kbd "C-z") 'helm-select-action) - (define-key helm-map (kbd "C-j") 'helm-next-line) - (define-key helm-map (kbd "C-k") 'helm-previous-line) - (define-key helm-find-files-map (kbd "C-h") 'helm-find-files-up-one-level) - (define-key helm-find-files-map (kbd "C-l") 'helm-execute-persistent-action) - - (setq helm-quick-update t - helm-bookmark-show-location t - helm-buffers-fuzzy-matching t - helm-make-executable "/usr/bin/make" - helm-make-nproc 12 - helm-split-window-in-side-p t) - - (defun helm-my-buffers () - (interactive) - (let ((helm-ff-transformer-show-only-basename nil)) - (helm-other-buffer '(helm-c-source-buffers-list - helm-c-source-elscreen - helm-c-source-projectile-files-list - helm-c-source-ctags - helm-c-source-recentf - helm-c-source-locate) - "*helm-my-buffers*"))) - - (helm-mode 1) - (projectile-mode +1) - #+END_SRC - -*** DOOM Modeline -#+BEGIN_SRC emacs-lisp -(setq display-time-string-forms - '((propertize (concat " " 24-hours ":" minutes " ")))) - -(require 'doom-modeline) -(doom-modeline-mode 1) -(setq doom-modeline-height 30) -(setq doom-modeline-project-detection 'projectile) -(setq doom-modeline-buffer-file-name-style 'truncate-upto-project) -(setq doom-modeline-icon (display-graphic-p)) -(setq doom-modeline-major-mode-icon t) -(setq doom-modeline-major-mode-color-icon t) -(setq doom-modeline-buffer-state-icon t) -(setq doom-modeline-buffer-modification-icon t) -(setq doom-modeline-unicode-fallback t) -(setq doom-modeline-enable-word-count nil) -(setq doom-modeline-buffer-encoding nil) -(setq doom-modeline-indent-info nil) -(setq doom-modeline-checker-simple-format t) -(setq doom-modeline-number-limit 99) -(setq doom-modeline-vcs-max-length 12) -(setq doom-modeline-persp-name t) -(setq doom-modeline-lsp t) -(setq doom-modeline-github nil) -(setq doom-modeline-github-interval (* 30 60)) -(setq doom-modeline-modal-icon t) -(setq doom-modeline-gnus nil) -(setq doom-modeline-irc t) -(setq doom-modeline-irc-stylize 'identity) -(setq doom-modeline-env-version t) -(setq doom-modeline-env-python-executable "python-shell-interpreter") -(setq doom-modeline-env-ruby-executable "ruby") -(setq doom-modeline-env-perl-executable "perl") -(setq doom-modeline-env-go-executable "go") -(setq doom-modeline-env-elixir-executable "iex") -(setq doom-modeline-env-rust-executable "rustc") -(setq doom-modeline-env-load-string "...") -(setq doom-modeline-before-update-env-hook nil) -(setq doom-modeline-after-update-env-hook nil) -(display-battery-mode) -(column-number-mode) -(display-time) -(doom-themes-neotree-config) -#+END_SRC - -*** Colors and rainbows -#+BEGIN_SRC emacs-lisp -;; (require 'color-identifiers-mode) -;; (global-color-identifiers-mode) - -(require 'rainbow-delimiters) -(add-hook 'prog-mode-hook 'rainbow-delimiters-mode) -#+END_SRC - -*** C default style -#+BEGIN_SRC emacs-lisp - (c-add-style "openbsd" - '("bsd" - (c-backspace-function . delete-backward-char) - (c-syntactic-indentation-in-macros . nil) - (c-tab-always-indent . nil) - (c-hanging-braces-alist - (block-close . c-snug-do-while)) - (c-offsets-alist - (arglist-cont-nonempty . *) - (statement-cont . *)) - (indent-tabs-mode . t))) - (setq c-default-style "openbsd") -#+END_SRC - -*** Magit -#+BEGIN_SRC emacs-lisp -(require 'magit) - -(defun my/magit-kill-buffers () - "Restore window configuration and kill all Magit buffers. -Attribution: URL `https://manuel-uberti.github.io/emacs/2018/02/17/magit-bury-buffer/'" - (interactive) - (let ((buffers (magit-mode-get-buffers))) - (magit-restore-window-configuration) - (mapc #'kill-buffer buffers))) - -(bind-key "q" #'my/magit-kill-buffers magit-status-mode-map) -(evil-define-key 'insert magit-status-mode-map (kbd "q") #'my/magit-kill-buffers) -(evil-define-key 'normal magit-status-mode-map (kbd "q") #'my/magit-kill-buffers) -#+END_SRC - -*** Lock windows -#+BEGIN_SRC emacs-lisp -(defun my/toggle-window-dedicated () - "Control whether or not Emacs is allowed to display another -buffer in current window." - (interactive) - (message - (if (let (window (get-buffer-window (current-buffer))) - (set-window-dedicated-p window (not (window-dedicated-p window)))) - "%s: locked" - "%s is up for grabs") - (current-buffer))) - -(global-set-key (kbd "C-c t") 'my/toggle-window-dedicated) -#+END_SRC - -*** Tabs and stuff -#+BEGIN_SRC emacs-lisp -(defun minibuffer-keyboard-quit () - "Abort recursive edit. -In Delete Selection mode, if the mark is active, just deactivate it; -then it takes a second \\[keyboard-quit] to abort the minibuffer." - (interactive) - (if (and delete-selection-mode transient-mark-mode mark-active) - (setq deactivate-mark t) - (when (get-buffer "*Completions*") (delete-windows-on "*Completions*")) - (abort-recursive-edit))) -(define-key evil-normal-state-map [escape] 'keyboard-quit) -(define-key evil-visual-state-map [escape] 'keyboard-quit) -(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit) -(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) -(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit) -(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) -(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) - -(defun my/insert-tab-char () - (interactive) - (insert "\t")) - -(define-key evil-insert-state-map [tab] 'my/insert-tab-char) -(setq my/tab-stop 4) -(setq-default indent-tabs-mode t) -(setq tab-always-indent 'complete) -(setq-default tab-width my/tab-stop) -(setq tab-width my/tab-stop) -(setq-default c-basic-offset my/tab-stop) -(setq-default cperl-indent-level my/tab-stop) -#+END_SRC - -*** ibuffer - #+BEGIN_SRC emacs-lisp - (require 'ibuffer) - (require 'ibuffer-vc) - (require 'ibuffer-projectile) - (add-hook 'ibuffer-hook - (lambda () - (ibuffer-projectile-set-filter-groups) - (unless (eq ibuffer-sorting-mode 'alphabetic) - (ibuffer-do-sort-by-alphabetic)))) - #+END_SRC - -*** all the icons -#+BEGIN_SRC emacs-lisp -(require 'font-lock+) -(require 'all-the-icons) -(require 'all-the-icons-dired) -(require 'all-the-icons-ibuffer) -(load "all-the-icons-dired.el") -(add-hook 'dired-mode-hook 'all-the-icons-dired-mode) -(all-the-icons-ibuffer-mode 1) -#+END_SRC - -*** which-key -#+BEGIN_SRC emacs-lisp -(require 'which-key) -(which-key-mode) -#+END_SRC - -*** shell-pop -#+BEGIN_SRC emacs-lisp -(require 'shell-pop) -(setq my/shell-pop-shell-type - (quote - ("ansi-term" "*ansi-term*" - (lambda nil - (ansi-term shell-pop-term-shell))))) - -(setq shell-pop-term-shell "/usr/bin/zsh") -(add-to-list 'evil-emacs-state-modes 'term-mode) -#+END_SRC - -*** org-superstar -#+BEGIN_SRC emacs-lisp -(require 'org-superstar) -(add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))) -#+END_SRC - -*** toc-org -#+BEGIN_SRC emacs-lisp -(require 'toc-org) -(add-hook 'org-mode-hook 'toc-org-mode) -;; enable in markdown, too -(add-hook 'markdown-mode-hook 'toc-org-mode) -(define-key markdown-mode-map (kbd "\C-c\C-o") 'toc-org-markdown-follow-thing-at-point) -#+END_SRC - -*** lsp, ccls, clangd, company, yasnippet -#+BEGIN_SRC emacs-lisp - (require 'lsp-mode) - (require 'lsp-ui) - ;; (require 'ccls) - (require 'company) - (require 'company-box) - (require 'yasnippet) - (require 'yasnippet-snippets) - (require 'yasnippet-classic-snippets) - (yas-reload-all) - (yas-global-mode) - (add-hook 'c-mode-hook 'lsp) - (add-hook 'c++-mode-hook 'lsp) - (add-hook 'perl-mode-hook 'lsp) - (add-hook 'go-mode-hook 'lsp) - (add-hook 'lsp-mode-hook 'lsp-enable-which-key-integration) - - (setq lsp-ui-doc-header t - lsp-ui-doc-position 'top - lsp-ui-doc-delay 2 - lsp-ui-doc-show-with-cursor t - lsp-ui-doc-show-with-mouse t) - - - (setq lsp-ui-sideline-enable nil - lsp-ui-sideline-show-diagnostics t - lsp-ui-sideline-show-hover nil - lsp-ui-sideline-show-code-actions nil - lsp-ui-sideline-update-mode 'line - lsp-ui-sideline-delay 0) - - (setq lsp-enable-indentation nil - lsp-completion-enable t - lsp-headerline-breadcrumb-enable nil) - - (setq gc-cons-threshold (* 100 1024 1024) - read-process-output-max (* 1024 1024) - company-idle-delay 0.0 - company-minimum-prefix-length 1 - lsp-idle-delay 0.1) - - (with-eval-after-load 'lsp-mode - (add-hook 'lsp-mode-hook #'lsp-enable-which-key-integration) - (yas-global-mode)) - - (add-hook 'after-init-hook 'global-company-mode) - (global-company-mode) - - (define-key company-active-map (kbd "C-j") 'company-select-next) - (define-key company-active-map (kbd "C-k") 'company-select-previous) - (define-key company-search-map (kbd "C-j") 'company-select-next) - (define-key company-search-map (kbd "C-k") 'company-select-previous) - (define-key company-search-map (kbd "C-t") 'company-search-toggle-filtering) - (define-key company-search-map (kbd "C-i") 'company-complete-common) - ;; (push 'company-lsp company-backends) - ;; (setq company-transformers nil company-lsp-async t company-lsp-cache-candidates nil) - (add-hook 'company-mode-hook 'company-box-mode) - - (require 'lsp-clangd) - (setq lsp-clangd-executable "/usr/bin/clangd") - - ;; (setq ccls-executable "ccls") - - ;; (defun ccls/callee () (interactive) (lsp-ui-peek-find-custom "$ccls/call" '(:callee t))) - ;; (defun ccls/caller () (interactive) (lsp-ui-peek-find-custom "$ccls/call")) - ;; (defun ccls/vars (kind) (lsp-ui-peek-find-custom "$ccls/vars" `(:kind ,kind))) - ;; (defun ccls/base (levels) (lsp-ui-peek-find-custom "$ccls/inheritance" `(:levels ,levels))) - ;; (defun ccls/derived (levels) (lsp-ui-peek-find-custom "$ccls/inheritance" `(:levels ,levels :derived t))) - ;; (defun ccls/member (kind) (interactive) (lsp-ui-peek-find-custom "$ccls/member" `(:kind ,kind))) - - ;; ;; References w/ Role::Role - ;; (defun ccls/references-read () (interactive) - ;; (lsp-ui-peek-find-custom "textDocument/references" - ;; (plist-put (lsp--text-document-position-params) :role 8))) - - ;; ;; References w/ Role::Write - ;; (defun ccls/references-write () - ;; (interactive) - ;; (lsp-ui-peek-find-custom "textDocument/references" - ;; (plist-put (lsp--text-document-position-params) :role 16))) - - ;; ;; References w/ Role::Dynamic bit (macro expansions) - ;; (defun ccls/references-macro () (interactive) - ;; (lsp-ui-peek-find-custom "textDocument/references" - ;; (plist-put (lsp--text-document-position-params) :role 64))) - - ;; ;; References w/o Role::Call bit (e.g. where functions are taken addresses) - ;; (defun ccls/references-not-call () (interactive) - ;; (lsp-ui-peek-find-custom "textDocument/references" - ;; (plist-put (lsp--text-document-position-params) :excludeRole 32))) - - ;; ;; ccls/vars ccls/base ccls/derived ccls/members have a parameter while others are interactive. - ;; ;; (ccls/base 1) direct bases - ;; ;; (ccls/derived 1) direct derived - ;; ;; (ccls/member 2) => 2 (Type) => nested classes / types in a namespace - ;; ;; (ccls/member 3) => 3 (Func) => member functions / functions in a namespace - ;; ;; (ccls/member 0) => member variables / variables in a namespace - ;; ;; (ccls/vars 1) => field - ;; ;; (ccls/vars 2) => local variable - ;; ;; (ccls/vars 3) => field or local variable. 3 = 1 | 2 - ;; ;; (ccls/vars 4) => parameter - - ;; ;; References whose filenames are under this project - ;; (setq ccls-sem-highlight-method 'overlay) - ;; (ccls-use-default-rainbow-sem-highlight) -#+END_SRC - -*** diff-hl -#+BEGIN_SRC emacs-lisp - (require 'diff-hl) - (global-diff-hl-mode) - (add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh) - (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) -#+END_SRC - -*** Saveplace, savehist - #+BEGIN_SRC emacs-lisp - (require 'saveplace) - (add-hook 'after-init-hook 'save-place-mode) - (require 'savehist) - (setq history-length 1000 - savehist-additional-variables '(search-ring - regexp-search-ring - extended-command-history) - savehist-autosave-interval 60) - (add-hook 'after-init-hook 'savehist-mode) - #+END_SRC - -*** Eyebrowse - #+BEGIN_SRC emacs-lisp - (require 'eyebrowse) - (define-key eyebrowse-mode-map (kbd "M-1") 'eyebrowse-switch-to-window-config-1) - (define-key eyebrowse-mode-map (kbd "M-2") 'eyebrowse-switch-to-window-config-2) - (define-key eyebrowse-mode-map (kbd "M-3") 'eyebrowse-switch-to-window-config-3) - (define-key eyebrowse-mode-map (kbd "M-4") 'eyebrowse-switch-to-window-config-4) - (define-key eyebrowse-mode-map (kbd "M-5") 'eyebrowse-switch-to-window-config-5) - (define-key eyebrowse-mode-map (kbd "M-6") 'eyebrowse-switch-to-window-config-6) - (define-key eyebrowse-mode-map (kbd "M-7") 'eyebrowse-switch-to-window-config-7) - (define-key eyebrowse-mode-map (kbd "M-8") 'eyebrowse-switch-to-window-config-8) - (eyebrowse-mode t) - (setq eyebrowse-new-workspace t) - #+END_SRC - -*** web-mode - #+BEGIN_SRC emacs-lisp - (defun my-setup-php () - ;; enable web mode - (web-mode) - - ;; make these variables local - (make-local-variable 'web-mode-code-indent-offset) - (make-local-variable 'web-mode-markup-indent-offset) - (make-local-variable 'web-mode-css-indent-offset) - - ;; set indentation, can set different indentation level for different code type - (setq web-mode-code-indent-offset 4) - (setq web-mode-css-indent-offset 4) - (setq web-mode-markup-indent-offset 4)) - (add-to-list 'auto-mode-alist '("\\.php$" . my-setup-php)) - #+END_SRC - -*** undo-tree - #+BEGIN_SRC emacs-lisp - (require 'undo-tree) - (setq undo-tree-auto-save-history nil) - #+END_SRC - -*** neotree -#+BEGIN_SRC emacs-lisp - (require 'neotree) - (setq neo-theme (if (display-graphic-p) 'icons 'arrow)) - (setq neo-window-width 35) -#+END_SRC - -*** mu4e -#+BEGIN_SRC emacs-lisp -;; (require 'mu4e) -;; (require 'org-mu4e) -;; (require 'mu4e-contrib) -;; (require 'smtpmail) -;; -;; (auth-source-pass-enable) -;; (setq auth-source-debug t) -;; (setq auth-source-do-cache nil) -;; (setq auth-sources '(password-store)) -;; (setq message-kill-buffer-on-exit t) -;; (setq message-send-mail-function 'smtpmail-send-it) -;; (setq mu4e-attachment-dir "~/dl") -;; (setq mu4e-change-filenames-when-moving t) -;; (setq mu4e-completing-read-function 'completing-read) -;; (setq mu4e-compose-complete-addresses t) -;; (setq mu4e-compose-context-policy nil) -;; (setq mu4e-compose-dont-reply-to-self t) -;; (setq mu4e-compose-keep-self-cc nil) -;; (setq mu4e-context-policy 'pick-first) -;; (setq mu4e-get-mail-command "mbsync -a -c ~/.config/mbsync/mbsyncrc") -;; (setq mu4e-headers-date-format "%d-%m-%Y %H:%M") -;; (setq mu4e-headers-fields '((:human-date . 20) -;; (:flags . 6) -;; (:mailing-list . 10) -;; (:from . 22) -;; (:subject))) -;; (setq mu4e-headers-include-related t) -;; (setq mu4e-sent-messages-behavior 'delete) -;; (setq mu4e-view-show-addresses t) -;; (setq mu4e-view-show-images t) -;; (setq smtpmail-debug-info t) -;; (setq smtpmail-stream-type 'starttls) -;; (setq mm-sign-option 'guided) -;; -;; (when (fboundp 'imagemagick-register-types) -;; (imagemagick-register-types)) -;; -;; (defun sign-or-encrypt-message () -;; (let ((answer (read-from-minibuffer "Sign or encrypt?\nEmpty to do nothing.\n[s/e]: "))) -;; (cond -;; ((string-equal answer "s") (progn -;; (message "Signing message.") -;; (mml-secure-message-sign-pgpmime))) -;; ((string-equal answer "e") (progn -;; (message "Encrypt and signing message.") -;; (mml-secure-message-encrypt-pgpmime))) -;; (t (progn -;; (message "Dont signing or encrypting message.") -;; nil))))) -;; -;; (add-hook 'message-send-hook 'sign-or-encrypt-message) -;; -;; (setq mu4e-contexts -;; `( ,(make-mu4e-context -;; :name "gmail" -;; :enter-func (lambda () -;; (mu4e-message "Entering gmail context") -;; (when (string-match-p (buffer-name (current-buffer)) "mu4e-main") -;; (revert-buffer))) -;; :leave-func (lambda () -;; (mu4e-message "Leaving gmail context") -;; (when (string-match-p (buffer-name (current-buffer)) "mu4e-main") -;; (revert-buffer))) -;; :match-func (lambda (msg) -;; (when msg -;; (or (mu4e-message-contact-field-matches msg :to "Rudy Bousset <bousset.rudy@gmail.com>") -;; (mu4e-message-contact-field-matches msg :from "Rudy Bousset <bousset.rudy@gmail.com>") -;; (mu4e-message-contact-field-matches msg :cc "Rudy Bousset <bousset.rudy@gmail.com>") -;; (mu4e-message-contact-field-matches msg :bcc "Rudy Bousset <bousset.rudy@gmail.com>") -;; (string-match-p "^/bousset.rudy@gmail.com/INBOX" (mu4e-message-field msg :maildir))))) -;; :vars '( ( user-mail-address . "bousset.rudy@gmail.com" ) -;; ( smtpmail-smtp-user . "bousset.rudy@gmail.com" ) -;; ( mu4e-compose-signature . "Rudy Bousset" ) -;; ( smtpmail-smtp-server . "smtp.gmail.com" ) -;; ( smtpmail-smtp-service . 587 ) -;; ( mu4e-maildir-shortcuts . ((:maildir "/bousset.rudy@gmail.com/INBOX" :key ?i))) -;; ( mu4e-bookmarks -;; . -;; (( :name "Unread messages" -;; :query "maildir:/bousset.rudy@gmail.com/INBOX AND flag:unread AND NOT flag:trashed AND NOT outdoorexperten" -;; :key ?u) -;; ( :name "Today's messages" -;; :query "maildir:/bousset.rudy@gmail.com/INBOX AND date:today..now" -;; :key ?t) -;; ( :name "Last 7 days" -;; :query "maildir:/bousset.rudy@gmail.com/INBOX AND date:7d..now" -;; :hide-unread t -;; :key ?w) -;; ( :name "Deleted" -;; :query "flag:trashed" -;; :key ?d) -;; ( :name "Possibly garbage" -;; :query "bokio OR outdoorexperten" -;; :key ?g))))) -;; )) -#+END_SRC - -** Custom funcs -#+BEGIN_SRC emacs-lisp - (defadvice text-scale-increase (around all-buffers (arg) activate) - (dolist (buffer (buffer-list)) - (with-current-buffer buffer - ad-do-it))) - - (defun my/insert-current-date () (interactive) - (insert (shell-command-to-string "echo ' *' $(date -R)"))) -#+END_SRC - -** Compilation -*** Close window after errorless compilation -#+BEGIN_SRC emacs-lisp - (defun bury-compile-buffer-if-successful (buffer string) - "Bury a compilation buffer if succeeded without warnings " - (when (and - (buffer-live-p buffer) - (string-match "compilation" (buffer-name buffer)) - (string-match "finished" string) - (not - (with-current-buffer buffer - (goto-char (point-min)) - (search-forward "warning" nil t)))) - (run-with-timer 0.5 nil - (lambda (buf) - (bury-buffer buf) - (switch-to-prev-buffer (get-buffer-window buf) 'kill) - (delete-window)) - buffer))) - (add-hook 'compilation-finish-functions 'bury-compile-buffer-if-successful) -#+END_SRC - -** Other key bindings - #+BEGIN_SRC emacs-lisp - (defun my/nothing ()) - (global-set-key [f1] 'shell-pop) - (global-set-key [f2] 'neotree-toggle) - (global-set-key [f3] 'flymake-show-diagnostics-buffer) - (global-set-key [f4] 'helm-make-projectile) - (global-set-key [f5] 'undo-tree-visualize) - (global-set-key (kbd "C-x d") 'dired) - (global-set-key (kbd "C-x d") 'dired) - (global-set-key (kbd "C-x b") 'ibuffer) - (global-set-key (kbd "C-c d") 'my/insert-current-date) - (global-set-key (kbd "M-9") 'shell-command) - (global-set-key (kbd "M-0") 'async-shell-command) - (global-set-key (kbd "M-j") 'next-buffer) - (global-set-key (kbd "M-k") 'previous-buffer) - - (shell-pop--set-shell-type 'my/shell-pop-shell-type my/shell-pop-shell-type) - #+END_SRC diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 083bf77..b6ea85b 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -4,19 +4,19 @@ <alias> <family>serif</family> <prefer> - <family>Terminess Nerd Font</family> + <family>DejaVu Sans</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> - <family>Terminess Nerd Font</family> + <family>DejaVu Sans</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> - <family>Terminess Nerd Font</family> + <family>BlexMono Nerd Font</family> </prefer> </alias> </fontconfig> diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml deleted file mode 100644 index 9c9e8a9..0000000 --- a/.config/lazygit/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -gui: - border: single - theme: - activeBorderColor: - - red - - bold - selectedLineBgColor: - - black diff --git a/.config/lf/colors b/.config/lf/colors deleted file mode 100644 index 1f1d4a8..0000000 --- a/.config/lf/colors +++ /dev/null @@ -1,174 +0,0 @@ -# vim:ft=dircolors -# (This is not a dircolors file but it helps to highlight colors and comments) - -# default values from dircolors -# (entries with a leading # are not implemented in lf) -# #no 00 # NORMAL -# fi 00 # FILE -# #rs 0 # RESET -# di 01;34 # DIR -# ln 01;36 # LINK -# #mh 00 # MULTIHARDLINK -# pi 40;33 # FIFO -# so 01;35 # SOCK -# #do 01;35 # DOOR -# bd 40;33;01 # BLK -# cd 40;33;01 # CHR -# or 40;31;01 # ORPHAN -# #mi 00 # MISSING -# su 37;41 # SETUID -# sg 30;43 # SETGID -# #ca 30;41 # CAPABILITY -# tw 30;42 # STICKY_OTHER_WRITABLE -# ow 34;42 # OTHER_WRITABLE -# st 37;44 # STICKY -# ex 01;32 # EXEC - -# default values from lf (with matching order) -# ln 01;36 # LINK -# or 31;01 # ORPHAN -# tw 01;34 # STICKY_OTHER_WRITABLE -# ow 01;34 # OTHER_WRITABLE -# st 01;34 # STICKY -# di 01;34 # DIR -# pi 33 # FIFO -# so 01;35 # SOCK -# bd 33;01 # BLK -# cd 33;01 # CHR -# su 01;32 # SETUID -# sg 01;32 # SETGID -# ex 01;32 # EXEC -# fi 00 # FILE - -# file types (with matching order) -ln 01;36 # LINK -or 31;01 # ORPHAN -tw 34 # STICKY_OTHER_WRITABLE -ow 34 # OTHER_WRITABLE -st 01;34 # STICKY -di 01;34 # DIR -pi 33 # FIFO -so 01;35 # SOCK -bd 33;01 # BLK -cd 33;01 # CHR -su 01;32 # SETUID -sg 01;32 # SETGID -ex 01;32 # EXEC -fi 00 # FILE - -# archives or compressed (dircolors defaults) -*.tar 00;31 -*.tgz 00;31 -*.arc 00;31 -*.arj 00;31 -*.taz 00;31 -*.lha 00;31 -*.lz4 00;31 -*.lzh 00;31 -*.lzma 00;31 -*.tlz 00;31 -*.txz 00;31 -*.tzo 00;31 -*.t7z 00;31 -*.zip 00;31 -*.z 00;31 -*.dz 00;31 -*.gz 00;31 -*.lrz 00;31 -*.lz 00;31 -*.lzo 00;31 -*.xz 00;31 -*.zst 00;31 -*.tzst 00;31 -*.bz2 00;31 -*.bz 00;31 -*.tbz 00;31 -*.tbz2 00;31 -*.tz 00;31 -*.deb 00;31 -*.rpm 00;31 -*.jar 00;31 -*.war 00;31 -*.ear 00;31 -*.sar 00;31 -*.rar 00;31 -*.alz 00;31 -*.ace 00;31 -*.zoo 00;31 -*.cpio 00;31 -*.7z 00;31 -*.rz 00;31 -*.cab 00;31 -*.wim 00;31 -*.swm 00;31 -*.dwm 00;31 -*.esd 00;31 - -# image formats (dircolors defaults) -*.jpg 00;35 -*.jpeg 00;35 -*.mjpg 00;35 -*.mjpeg 00;35 -*.gif 00;35 -*.bmp 00;35 -*.pbm 00;35 -*.pgm 00;35 -*.ppm 00;35 -*.tga 00;35 -*.xbm 00;35 -*.xpm 00;35 -*.tif 00;35 -*.tiff 00;35 -*.png 00;35 -*.svg 00;35 -*.svgz 00;35 -*.mng 00;35 -*.pcx 00;35 -*.mov 00;35 -*.mpg 00;35 -*.mpeg 00;35 -*.m2v 00;35 -*.mkv 00;35 -*.webm 00;35 -*.ogm 00;35 -*.mp4 00;35 -*.m4v 00;35 -*.mp4v 00;35 -*.vob 00;35 -*.qt 00;35 -*.nuv 00;35 -*.wmv 00;35 -*.asf 00;35 -*.rm 00;35 -*.rmvb 00;35 -*.flc 00;35 -*.avi 00;35 -*.fli 00;35 -*.flv 00;35 -*.gl 00;35 -*.dl 00;35 -*.xcf 00;35 -*.xwd 00;35 -*.yuv 00;35 -*.cgm 00;35 -*.emf 00;35 -*.ogv 00;35 -*.ogx 00;35 - -# audio formats (dircolors defaults) -*.aac 00;36 -*.au 00;36 -*.flac 00;36 -*.m4a 00;36 -*.mid 00;36 -*.midi 00;36 -*.mka 00;36 -*.mp3 00;36 -*.mpc 00;36 -*.ogg 00;36 -*.ra 00;36 -*.wav 00;36 -*.oga 00;36 -*.opus 00;36 -*.spx 00;36 -*.xspf 00;36 diff --git a/.config/lf/icons b/.config/lf/icons deleted file mode 100644 index 249ada9..0000000 --- a/.config/lf/icons +++ /dev/null @@ -1,267 +0,0 @@ -fi= -di= -ln= -pi=| -so=ﯲ -db= -cd=c -or= -su= -sg= -tw= -ow=w -st= -ex= -*.7z= -*.a= -*.aac= -*.ace= -*.ai= -*.alz= -*.apk= -*.arc= -*.arj= -*.asf= -*.asm= -*.asp= -*.au= -*.aup= -*.avi= -*.avi= -*.bash= -*.bat= -*.bmp= -*.bz2= -*.bz= -*.c++= -*.c= -*.cab= -*.cbr= -*.cbz= -*.cc= -*.cgm= -*.class= -*.clj= -*.cljc= -*.cljs= -*.cmake= -*.cmd= -*.coffee= -*.conf= -*.cp= -*.cpio= -*.cpp= -*.cs= -*.css= -*.cue= -*.cvs= -*.cxx= -*.d= -*.dart= -*.db= -*.deb= -*.diff= -*.dl= -*.dll= -*.doc= -*.docx= -*.dump= -*.dwm= -*.dz= -*.ear= -*.edn= -*.eex= -*.efi= -*.ejs= -*.elf= -*.elm= -*.emf= -*.epub= -*.erl= -*.esd= -*.ex= -*.exe= -*.exs= -*.f#= -*.fifo=| -*.fish= -*.flac= -*.flc= -*.fli= -*.flv= -*.flv= -*.fs= -*.fsi= -*.fsscript= -*.fsx= -*.gem= -*.gif= -*.git= -*.gl= -*.go= -*.gz= -*.gzip= -*.h= -*.hbs= -*.hh= -*.hpp= -*.hrl= -*.hs= -*.htaccess= -*.htm= -*.html= -*.htpasswd= -*.ico= -*.img= -*.ini= -*.iso= -*.jar= -*.java= -*.jl= -*.jpeg= -*.jpg= -*.js= -*.json= -*.jsx= -*.key= -*.less= -*.lha= -*.lhs= -*.log= -*.lrz= -*.lua= -*.lz4= -*.lz= -*.lzh= -*.lzma= -*.lzo= -*.m2v= -*.m4a= -*.m4v= -*.markdown= -*.md= -*.mid= -*.midi= -*.mjpeg= -*.mjpg= -*.mka= -*.mkv= -*.ml=λ -*.mli=λ -*.mng= -*.mov= -*.mp3= -*.mp4= -*.mp4v= -*.mpc= -*.mpeg= -*.mpg= -*.msi= -*.mustache= -*.nix= -*.nuv= -*.o= -*.oga= -*.ogg= -*.ogm= -*.ogv= -*.ogx= -*.opus= -*.pbm= -*.pcx= -*.pdf= -*.pgm= -*.php= -*.pl= -*.pm= -*.png= -*.ppk= -*.ppm= -*.ppt= -*.pptx= -*.pro= -*.ps1= -*.psb= -*.psd= -*.pub= -*.py= -*.pyc= -*.pyd= -*.pyo= -*.qt= -*.ra= -*.rar= -*.rb= -*.rc= -*.rlib= -*.rm= -*.rmvb= -*.rom= -*.rpm= -*.rs= -*.rss= -*.rtf= -*.rz= -*.s= -*.sar= -*.scala= -*.scss= -*.sh= -*.slim= -*.sln= -*.so= -*.spx= -*.sql= -*.styl= -*.suo= -*.svg= -*.svgz= -*.swm= -*.t7z= -*.t= -*.tar= -*.taz= -*.tbz2= -*.tbz= -*.tga= -*.tgz= -*.tif= -*.tiff= -*.tlz= -*.ts= -*.twig= -*.txz= -*.tz= -*.tzo= -*.tzst= -*.vim= -*.vimrc= -*.vob= -*.war= -*.wav= -*.wav= -*.webm= -*.wim= -*.wmv= -*.xbm= -*.xbps= -*.xcf= -*.xhtml= -*.xls= -*.xlsx= -*.xml= -*.xpm= -*.xspf= -*.xul= -*.xwd= -*.xz= -*.yaml= -*.yml= -*.yuv= -*.z= -*.zip= -*.zoo= -*.zsh= -*.zst= -*.src= -*.ebuild=
\ No newline at end of file diff --git a/.config/lf/lfrc b/.config/lf/lfrc deleted file mode 100644 index 5565b0b..0000000 --- a/.config/lf/lfrc +++ /dev/null @@ -1,97 +0,0 @@ -# Basic vars -set shellopts '-eu' -set ifs "\n" -set scrolloff 10 -set shell "/bin/sh" -set icons -set period 1 -set dirfirst true -set drawbox true -set preview true -set ratios 1:3:5 -set tabstop 4 -set previewer '~/.config/lf/scope' - -# cmds/functions -cmd open ${{ - case $(file --mime-type "$(readlink -f $f)" -b) in - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;; - application/vnd.openxmlformats-officedocument.wordprocessingml.document) docx2txt $f | $PAGER ;; - image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid zathura $fx >/dev/null 2>&1 ;; - text/html) $BROWSER $fx ;; - text/plain) $PAGER $fx ;; - text/*|application/json|inode/x-empty) bat --style=plain --tabs 4 --paging=always -f $fx ;; - image/x-xcf) gimp $f >/dev/null 2>&1 ;; - image/svg+xml) display -- $f ;; - image/*) - rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | - nsxiv -aibof 2>/dev/null | while read -r file; do - [ -z "$file" ] && continue - lf -remote "send select \"$file\"" - lf -remote "send toggle" - done - ;; - audio/*) mpv --no-audio-display --audio-channels=stereo $fx ;; - video/*) mpv --really-quiet --audio-channels=stereo $fx >/dev/null 2>&1 ;; - *opendocument*) odt2txt $f | $PAGER ;; - application/pdf|application/vnd*|application/epub*) zathura $fx >/dev/null 2>&1 ;; - application/pgp-encrypted) $EDITOR $fx ;; - *) for f in $fx; do xdg-open $f >/dev/null 2>&1; done;; - esac -}} - -cmd mkdir $mkdir -p "$(echo $* | sed 's/ /\ /g')" -cmd bulkrename $vidir $fx -cmd showallpics $exa *.png *.jpg *.jpeg *.gif *.webp *.tif *.ico 2>/dev/null | nsxiv -taib & -cmd newtermedit $EDITOR $fx - -map gr cd / -map gm cd ~/hdd -map gw cd ~/stoc1/work -map gS cd ~/pics/scrot -map gc cd ~/.config -map gb cd ~/.local/bin -map gs cd ~/.local/share -map gp cd ~/.local/packs -map gM cd /mnt -map gt cd /tmp -map gf cd ~/dev/c/c_dergods_realm_2 - -map za set hidden! -map zh set info size:time -map <c-f> $lf -remote "send $id select '$(fzf)'" -map <enter> open -map D delete -map W $$SHELL -map S $$SHELL -map <c-s> $$SHELL -map <c-n> push :mkdir<space> -map <f-7> push :mkdir<space> -map <c-r> reload -map <c-g> clear -cmap <c-g> cmd-escape -map x !$f -map X $$f -map o $$PAGER $f -map V showallpics -map @ !clear; du -sh . -map ( set ratios 1 -map ) set ratios 1:1 -map _ set ratios 1:4 -map + set ratios 1:3:5 -map = set ratios 1:3:5 -map P set preview! - -map A rename # at the very end -map c push A<c-u> # new rename -map I push A<c-a> # at the very beginning -map i push A<a-b><a-b><a-f> # before extention -map a push A<a-b> # after extention -map B bulkrename -map <f-2> bulkrename - -map <c-e> down -map <c-y> up -map e $$EDITOR $fx -map E $st -e $EDITOR $fx & -map <insert> push :$$EDITOR<space> diff --git a/.config/lf/scope b/.config/lf/scope deleted file mode 100755 index 267e5bf..0000000 --- a/.config/lf/scope +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# File preview handler for lf. - -set -C -f -# IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" - -# image() { -# if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1; then -# printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$5" "$(($2-1))" "$(($3-1))" "$1" > "$FIFO_UEBERZUG" -# else -# mediainfo "$1" -# fi -# } - -# ifub() { -# [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1 -# } - -# Note that the cache file name is a function of file information, meaning if -# an image appears in multiple places across the machine, it will not have to -# be regenerated once seen. - -case "$(file --dereference --brief --mime-type -- "$1")" in - image/*) mediainfo "$1" || exit 1 ;; - text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; - text/troff) man ./ "$1" | col -b ;; - text/* | */xml | application/json) bat --plain --terminal-width "$4" -f "$1" ;; - application/zip) atool --list -- "$1" ;; - application/x-xz) atool --list -- "$1" ;; - application/gzip) atool --list -- "$1" ;; - audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;; - video/* ) mediainfo "$1" || exit 1 ;; - */pdf) pdftotext "$1" - || exit 1 ;; - *opendocument*) odt2txt "$1" || exit 1;; - application/vnd.openxmlformats-officedocument.wordprocessingml.document) docx2txt "$1" ;; - application/pgp-encrypted) gpg -d -- "$1" ;; -esac -exit 1 diff --git a/.config/mpd-notification.conf b/.config/mpd-notification.conf deleted file mode 100644 index 44cabea..0000000 --- a/.config/mpd-notification.conf +++ /dev/null @@ -1,4 +0,0 @@ -music-dir = /home/jozan/mu -oneline = false -scale = 200 -timeout = 5 diff --git a/.config/nvim/lua/config/settings.lua b/.config/nvim/lua/config/settings.lua index 974586b..548fb11 100644 --- a/.config/nvim/lua/config/settings.lua +++ b/.config/nvim/lua/config/settings.lua @@ -40,10 +40,6 @@ vim.opt.termguicolors = true vim.opt.bg = 'dark' vim.opt.guicursor:remove { 't:block-blinkon500-blinkoff500-TermCursor' } -vim.g.gruvbox_material_background = 'medium' -vim.g.gruvbox_material_foreground = 'original' -vim.g.gruvbox_material_better_performance = 1 - vim.cmd [[ syntax on diff --git a/.config/nvim/lua/plugins/gruvbox.lua b/.config/nvim/lua/plugins/gruvbox.lua index bf99776..a1ffe02 100644 --- a/.config/nvim/lua/plugins/gruvbox.lua +++ b/.config/nvim/lua/plugins/gruvbox.lua @@ -24,6 +24,7 @@ return { contrast = "hard", -- can be "hard", "soft" or empty string palette_overrides = {}, overrides = { + ["@comment"] = { fg = "#928374", italic = false }, ["@punctuation.delimiter"] = { fg = "#928374" }, String = { fg = "#8ec07c" }, }, diff --git a/.config/openbox/autostart b/.config/openbox/autostart deleted file mode 100755 index 12a1dad..0000000 --- a/.config/openbox/autostart +++ /dev/null @@ -1,101 +0,0 @@ -# vim: ft=sh -# -# These things are run when an Openbox X Session is started. -# You may place a similar script in $HOME/.config/openbox/autostart -# to run user-specific things. -# - -# If you want to use GNOME config tools... -# -#if test -x /usr/lib/openbox/gnome-settings-daemon >/dev/null; then -# /usr/lib/openbox/gnome-settings-daemon & -#elif which gnome-settings-daemon >/dev/null 2>&1; then -# gnome-settings-daemon & -#fi - -# If you want to use XFCE config tools... -# -#xfce-mcs-manager & - -# select OS - -case $(hostname -s) in - mother) - icon=" " - mpd="mpd" - xscr="xscreensaver --no-splash" - sleep="sleep 1" - ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" - ;; - po-rbo) - icon=" " - mpd="mpd" - xscr="xscreensaver" - sleep="sleep 1" - ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" - ;; - mars) - icon=" " - mpd="musicpd" - xscr="xscreensaver --no-splash" - sleep="gsleep 1" - ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1" - ;; -esac - -doas mkdir /var/run/jozan && doas chown -v jozan: /var/run/jozan - -$ping && git --git-dir="$HOME"/docs/dotfiles-bsd --work-tree="$HOME" pull - -startif() { - pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & -} - -export LANG='en_US.UTF-8' -[ "$(hostname -s)" = "mother" ] && xrandr --output HDMI-0 --off \ - --output DP-0 --mode 1440x900 --pos 0x0 --rotate normal \ - --output DP-2 --mode 1440x900 --pos 3120x0 --rotate normal \ - --output DP-4 --primary --mode 1680x1050 --pos 1440x0 --rotate normal \ - --output DP-1 --off \ - --output DP-3 --off \ - --output DP-5 --off -[ "$(hostname -s)" = "po-rbo" ] && xrandr \ - --output eDP-1 --mode 1920x1200 --pos 5120x0 --rotate normal \ - --output DP-1 --mode 2560x1440 --pos 0x0 --rotate normal \ - --output HDMI-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal \ - --output HDMI-2 --off \ - --output VIRTUAL-1 --off - -startif dunst -startif picom -startif mpd-notification -pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1 -"$HOME"/.local/bin/setwp "$HOME"/pics/the_wall.png -"$HOME"/.local/bin/kb -xset s off -xset -dpms -sleep 2 -$sleep -startif $xscr -$sleep -# doas rc-service wireguard start && -# notify-send -u normal 'wireguard' 'WireGuard started' -# $sleep -startif tint2 -$sleep -startif plank -$sleep -startif conky -d -c "$HOME"/.config/conky/conkyrc -$sleep -startif pipewire -$sleep -startif pipewire-pulse -$sleep -startif wireplumber -$sleep -startif copyq -$sleep -startif nextcloud -cd "$HOME" -xrdb "$HOME"/.config/x11/xresources -notify-send -u normal 'Welcome' "$icon Welcome back, partner!" diff --git a/.config/openbox/environment b/.config/openbox/environment deleted file mode 100755 index 3311bd6..0000000 --- a/.config/openbox/environment +++ /dev/null @@ -1,10 +0,0 @@ -# -# Set system-wide environment variables here for Openbox -# User-specific variables should be placed in $HOME/.config/openbox/environment -# - -# To set your language for displaying messages and time/date formats, use the following: -#LANG=en_CA.UTF8 - -# To set your keyboard layout, you need to modify your X config: -# http://www.google.com/search?q=how+to+set+keyboard+layout+xorg diff --git a/.config/openbox/menu.xml b/.config/openbox/menu.xml deleted file mode 100755 index aa944e7..0000000 --- a/.config/openbox/menu.xml +++ /dev/null @@ -1,274 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<openbox_menu xmlns="http://openbox.org/3.4/menu"> - - <menu id="apps-accessories-menu" label="Accessories"> - <item label="Alacritty"> - <action name="Execute"> - <command>alacritty</command> - </action> - </item> - <item label="st"> - <action name="Execute"> - <command>st</command> - </action> - </item> - <item label="PCMan File Manager"> - <action name="Execute"> - <command>pcmanfm</command> - </action> - </item> - <item label="Qalculate!"> - <action name="Execute"> - <command>qalculate-gtk</command> - </action> - </item> - <item label="Kleopatra"> - <action name="Execute"> - <command>kleopatra</command> - </action> - </item> - <item label="Transmission"> - <action name="Execute"> - <command>transmission-gtk</command> - </action> - </item> - <item label="Wireshark"> - <action name="Execute"> - <command>sudo wireshark</command> - </action> - </item> - <item label="MKVToolNix"> - <action name="Execute"> - <command>mkvtoolnix-gui</command> - </action> - </item> - <item label="Google Earth"> - <action name="Execute"> - <command>google-earth-pro</command> - </action> - </item> - </menu> - - <menu id="apps-editors-menu" label="Editors"> - <item label="NeoVim"> - <action name="Execute"> - <command>alacritty -e nvim</command> - </action> - </item> - <item label="Emacs"> - <action name="Execute"> - <command>emacs</command> - </action> - </item> - <item label="Emacs-NoX"> - <action name="Execute"> - <command>alacritty -e emacs-nw</command> - </action> - </item> - </menu> - - <menu id="apps-games-menu" label="Games"> - <item label="Steam"> - <action name="Execute"><command>steam</command></action> - </item> - <item label="Lutris"> - <action name="Execute"><command>lutris</command></action> - </item> - <item label="GZDoom"> - <action name="Execute"><command>gzdoom</command></action> - </item> - <item label="DOSBox"> - <action name="Execute"><command>dosbox</command></action> - </item> - </menu> - - <menu id="apps-net-menu" label="Internet"> - <item label="LibreWolf"> - <action name="Execute"> - <command>librewolf</command> - </action> - </item> - <item label="Firefox"> - <action name="Execute"> - <command>firefox</command> - </action> - </item> - <item label="Iridium"> - <action name="Execute"> - <command>iridium --force-dark-mode</command> - </action> - </item> - <item label="Discord"> - <action name="Execute"> - <command>discord</command> - </action> - </item> - <item label="Signal"> - <action name="Execute"> - <command>signal-desktop</command> - </action> - </item> - <item label="Liferea"> - <action name="Execute"> - <command>liferea</command> - </action> - </item> - <item label="HexChat"> - <action name="Execute"> - <command>hexchat</command> - </action> - </item> - </menu> - - <menu id="apps-audio-menu" label="Audio"> - <item label="REAPER"> - <action name="Execute"> - <command>reaper</command> - </action> - </item> - <item label="Mixbus 32C"> - <action name="Execute"> - <command>Mixbus32C9</command> - </action> - </item> - <separator /> - <item label="Pusle Control Pannel"> - <action name="Execute"> - <command>pavucontrol</command> - </action> - </item> - <item label="JACK Audio Connection"> - <action name="Execute"> - <command>qjackctl</command> - </action> - </item> - </menu> - - <menu id="apps-multimedia-menu" label="Multimedia"> - <item label="Ario"> - <action name="Execute"> - <command>ario</command> - </action> - </item> - <item label="Kdenlive"> - <action name="Execute"> - <command>kdenlive</command> - </action> - </item> - <item label="ossia score"> - <action name="Execute"> - <command>ossia-score</command> - </action> - </item> - </menu> - - <menu id="apps-graphics-menu" label="Graphics"> - <item label="Gimp"> - <action name="Execute"> - <command>gimp</command> - </action> - </item> - <item label="Inkscape"> - <action name="Execute"> - <command>inkscape</command> - </action> - </item> - </menu> - - <menu id="system-menu" label="Settings"> - <item label="Network settings"> - <action name="Execute"> - <command>connman-gtk</command> - </action> - </item> - <item label="Openbox configuration"> - <action name="Execute"> - <command>obconf</command> - </action> - </item> - <item label="tint2 configuration"> - <action name="Execute"> - <command>tint2conf</command> - </action> - </item> - <item label="Theme manager"> - <action name="Execute"> - <command>lxappearance</command> - </action> - </item> - <item label="XScreenSaver configuration"> - <action name="Execute"> - <command>xscreensaver-settings</command> - </action> - </item> - <item label="Displays configuration"> - <action name="Execute"> - <command>arandr</command> - </action> - </item> - <separator /> - <item label="Reconfigure Openbox"> - <action name="Reconfigure" /> - </item> - </menu> - - <menu id="root-menu" label="Openbox 3"> - <separator label="Applications" /> - <item label="Alacritty"> - <action name="Execute"> - <command>alacritty</command> - </action> - </item> - <item label="PCMan File Manager"> - <action name="Execute"> - <command>pcmanfm</command> - </action> - </item> - <item label="LibreWolf"> - <action name="Execute"> - <command>librewolf</command> - </action> - </item> - <separator /> - <menu id="apps-accessories-menu"/> - <menu id="apps-editors-menu"/> - <menu id="apps-graphics-menu"/> - <menu id="apps-net-menu"/> - <menu id="apps-audio-menu"/> - <menu id="apps-multimedia-menu"/> - <menu id="apps-games-menu"/> - <separator label="System" /> - <menu id="system-menu"/> - <separator /> - <item label="Reconfigure Openbox"> - <action name="Reconfigure" /> - </item> - <item label="Lock screen"> - <action name="Execute"> - <command>~/.local/bin/powercmd lock</command> - </action> - </item> - <item label="Sleep"> - <action name="Execute"> - <command>~/.local/bin/powercmd sleep</command> - </action> - </item> - <item label="Log Out"> - <action name="Exit"> - <prompt>yes</prompt> - </action> - </item> - <item label="Reboot"> - <action name="Execute"> - <command>~/.local/bin/powercmd reboot</command> - </action> - </item> - <item label="Shutdown"> - <action name="Execute"> - <command>~/.local/bin/powercmd poweroff</command> - </action> - </item> - </menu> - -</openbox_menu> diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml deleted file mode 100755 index 442384b..0000000 --- a/.config/openbox/rc.xml +++ /dev/null @@ -1,1048 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Do not edit this file, it will be overwritten on install. - Copy the file to $HOME/.config/openbox/ instead. --> -<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> - <resistance> - <strength>0</strength> - <screen_edge_strength>100</screen_edge_strength> - </resistance> - <focus> - <focusNew>yes</focusNew> - <!-- always try to focus new windows when they appear. other rules do - apply --> - <followMouse>no</followMouse> - <!-- move focus to a window when you move the mouse into it --> - <focusLast>yes</focusLast> - <!-- focus the last used window when changing desktops, instead of the one - under the mouse pointer. when followMouse is enabled --> - <underMouse>no</underMouse> - <!-- move focus under the mouse, even when the mouse is not moving --> - <focusDelay>200</focusDelay> - <!-- when followMouse is enabled, the mouse must be inside the window for - this many milliseconds (1000 = 1 sec) before moving focus to it --> - <raiseOnFocus>no</raiseOnFocus> - <!-- when followMouse is enabled, and a window is given focus by moving the - mouse into it, also raise the window --> - </focus> - <placement> - <policy>Smart</policy> - <!-- 'Smart' or 'UnderMouse' --> - <center>yes</center> - <!-- whether to place windows in the center of the free area found or - the top left corner --> - <monitor>Active</monitor> - <!-- with Smart placement on a multi-monitor system, try to place new windows - on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where - the active window is, 'Primary' - only on the primary monitor --> - <primaryMonitor>1</primaryMonitor> - <!-- The monitor where Openbox should place popup dialogs such as the - focus cycling popup, or the desktop switch popup. It can be an index - from 1, specifying a particular monitor. Or it can be one of the - following: 'Mouse' - where the mouse is, or - 'Active' - where the active window is --> - </placement> - <theme> - <name>gruvbox-material-dark-blocks</name> - <titleLayout>SDNLIMC</titleLayout> - <!-- - available characters are NDSLIMC, each can occur at most once. - N: window icon - L: window label (AKA title). - I: iconify - M: maximize - C: close - S: shade (roll up/down) - D: omnipresent (on all desktops). - --> - <keepBorder>yes</keepBorder> - <animateIconify>yes</animateIconify> - <font place="ActiveWindow"> - <name>NotoSans Nerd Font</name> - <size>11</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="InactiveWindow"> - <name>NotoSans Nerd Font</name> - <size>11</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="MenuHeader"> - <name>NotoSans Nerd Font</name> - <size>14</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="MenuItem"> - <name>NotoSans Nerd Font</name> - <size>14</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="ActiveOnScreenDisplay"> - <name>NotoSans Nerd Font</name> - <size>11</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="InactiveOnScreenDisplay"> - <name>NotoSans Nerd Font</name> - <size>11</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - </theme> - <desktops> - <!-- this stuff is only used at startup, pagers allow you to change them - during a session - - these are default values to use when other ones are not already set - by other applications, or saved in your session - - use obconf if you want to change these without having to log out - and back in --> - <number>4</number> - <firstdesk>1</firstdesk> - <names> - <name>work</name> - <name>play</name> - <name>dull</name> - <name>boy</name> - </names> - <popupTime>500</popupTime> - <!-- The number of milliseconds to show the popup for when switching - desktops. Set this to 0 to disable the popup. --> - </desktops> - <resize> - <drawContents>no</drawContents> - <popupShow>Nonpixel</popupShow> - <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) --> - <popupPosition>Center</popupPosition> - <!-- 'Center', 'Top', or 'Fixed' --> - <popupFixedPosition> - <!-- these are used if popupPosition is set to 'Fixed' --> - <x>10</x> - <!-- positive number for distance from left edge, negative number for - distance from right edge, or 'Center' --> - <y>10</y> - <!-- positive number for distance from top edge, negative number for - distance from bottom edge, or 'Center' --> - </popupFixedPosition> - </resize> - <!-- You can reserve a portion of your screen where windows will not cover when - they are maximized, or when they are initially placed. - Many programs reserve space automatically, but you can use this in other - cases. --> - <margins> - <top>0</top> - <bottom>0</bottom> - <left>0</left> - <right>0</right> - </margins> - <dock> - <position>TopLeft</position> - <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating --> - <floatingX>0</floatingX> - <floatingY>0</floatingY> - <noStrut>no</noStrut> - <stacking>Above</stacking> - <!-- 'Above', 'Normal', or 'Below' --> - <direction>Vertical</direction> - <!-- 'Vertical' or 'Horizontal' --> - <autoHide>no</autoHide> - <hideDelay>300</hideDelay> - <!-- in milliseconds (1000 = 1 second) --> - <showDelay>300</showDelay> - <!-- in milliseconds (1000 = 1 second) --> - <moveButton>Middle</moveButton> - <!-- 'Left', 'Middle', 'Right' --> - </dock> - <keyboard> - <chainQuitKey>C-g</chainQuitKey> - <!-- Keybindings for desktop switching --> - <keybind key="W-1"> - <action name="GoToDesktop"> - <to>1</to> - </action> - </keybind> - <keybind key="W-2"> - <action name="GoToDesktop"> - <to>2</to> - </action> - </keybind> - <keybind key="W-3"> - <action name="GoToDesktop"> - <to>3</to> - </action> - </keybind> - <keybind key="W-4"> - <action name="GoToDesktop"> - <to>4</to> - </action> - </keybind> - <keybind key="W-5"> - <action name="GoToDesktop"> - <to>5</to> - </action> - </keybind> - <keybind key="W-5"> - <action name="GoToDesktop"> - <to>5</to> - </action> - </keybind> - <keybind key="W-6"> - <action name="GoToDesktop"> - <to>6</to> - </action> - </keybind> - <keybind key="W-7"> - <action name="GoToDesktop"> - <to>7</to> - </action> - </keybind> - <keybind key="W-8"> - <action name="GoToDesktop"> - <to>8</to> - </action> - </keybind> - <keybind key="W-9"> - <action name="GoToDesktop"> - <to>9</to> - </action> - </keybind> - <keybind key="W-S-1"> - <action name="SendToDesktop"> - <to>1</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-2"> - <action name="SendToDesktop"> - <to>2</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-3"> - <action name="SendToDesktop"> - <to>3</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-4"> - <action name="SendToDesktop"> - <to>4</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-5"> - <action name="SendToDesktop"> - <to>5</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-6"> - <action name="SendToDesktop"> - <to>6</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-7"> - <action name="SendToDesktop"> - <to>7</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-8"> - <action name="SendToDesktop"> - <to>8</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-9"> - <action name="SendToDesktop"> - <to>9</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-0"> - <action name="ToggleOmnipresent"/> - </keybind> - <keybind key="W-S-h"> - <action name="SendToDesktop"> - <to>previous</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-S-l"> - <action name="SendToDesktop"> - <to>next</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-C-h"> - <action name="MoveResizeTo"> - <monitor>next</monitor> - </action> - </keybind> - <keybind key="W-C-l"> - <action name="MoveResizeTo"> - <monitor>prev</monitor> - </action> - </keybind> - <!-- <keybind key="W-d"> --> - <!-- <action name="ToggleShowDesktop"/> --> - <!-- </keybind> --> - <!-- Keybindings for windows --> - <keybind key="A-F4"> - <action name="Close"/> - </keybind> - <keybind key="W-q"> - <action name="Close"/> - </keybind> - <keybind key="W-f"> - <action name="ToggleMaximize"/> - </keybind> - <keybind key="A-Tab"> - <action name="Lower"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - </keybind> - <keybind key="A-space"> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </keybind> - <!-- Keybindings for window switching --> - <keybind key="A-Escape"> - <action name="PreviousWindow"> - <finalactions> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </finalactions> - </action> - </keybind> - <keybind key="A-S-Tab"> - <action name="PreviousWindow"> - <finalactions> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </finalactions> - </action> - </keybind> - <keybind key="C-A-Tab"> - <action name="NextWindow"> - <panels>yes</panels> - <desktop>yes</desktop> - <finalactions> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </finalactions> - </action> - </keybind> - <!-- Keybindings for window switching with the arrow keys --> - <keybind key="W-l"> - <action name="DirectionalCycleWindows"> - <direction>right</direction> - </action> - </keybind> - <keybind key="W-h"> - <action name="DirectionalCycleWindows"> - <direction>left</direction> - </action> - </keybind> - <keybind key="W-k"> - <action name="DirectionalCycleWindows"> - <direction>up</direction> - </action> - </keybind> - <keybind key="W-j"> - <action name="DirectionalCycleWindows"> - <direction>down</direction> - </action> - </keybind> - <!-- Keybindings for running applications --> - <keybind key="W-p"> - <action name="Execute"> - <command>dmenu_run -m 0</command> - </action> - </keybind> - <keybind key="W-Return"> - <action name="Execute"> - <command>alacritty</command> - </action> - </keybind> - <keybind key="W-S-Return"> - <action name="Execute"> - <command>cool-retro-term</command> - </action> - </keybind> - <keybind key="W-F1"> - <action name="Execute"> - <command>pcmanfm</command> - </action> - </keybind> - <keybind key="W-F2"> - <action name="Execute"> - <command>emacsclient -c</command> - </action> - </keybind> - <keybind key="W-F3"> - <action name="Execute"> - <command>firefox</command> - </action> - </keybind> - <keybind key="W-S-F3"> - <action name="Execute"> - <command>torify librewolf --force-dark-mode</command> - </action> - </keybind> - <keybind key="W-F4"> - <action name="Execute"> - <command>alacritty -e w3m https://start.duckduckgo.com/</command> - </action> - </keybind> - <keybind key="W-F5"> - <action name="Execute"> - <!-- <command>alacritty -e ncmpc</command> --> - <command>ario</command> - </action> - </keybind> - <keybind key="W-F6"> - <action name="Execute"> - <command>alacritty -e newsboat</command> - </action> - </keybind> - <keybind key="W-F7"> - <action name="Execute"> - <command>alacritty -e calcurse -C ~/.config/calcurse -D ~/.local/share/calcurse</command> - </action> - </keybind> - <keybind key="W-F8"> - <action name="Execute"> - <command>alacritty -e scli</command> - </action> - </keybind> - <keybind key="W-F9"> - <action name="Execute"> - <command>alacritty -e neomutt</command> - </action> - </keybind> - <keybind key="W-F10"> - <action name="Execute"> - <command>alacritty -e gotop</command> - </action> - </keybind> - <keybind key="W-F11"> - <action name="Execute"> - <command>alacritty -e htop</command> - </action> - </keybind> - <keybind key="W-F12"> - <action name="Execute"> - <command>alacritty -e top</command> - </action> - </keybind> - <keybind key="W-S-F6"> - <action name="Execute"> - <command>mpc prev</command> - </action> - </keybind> - <keybind key="W-S-F7"> - <action name="Execute"> - <command>mpc toggle</command> - </action> - </keybind> - <keybind key="W-S-F8"> - <action name="Execute"> - <command>mpc next</command> - </action> - </keybind> - <keybind key="W-S-F9"> - <action name="Execute"> - <command>mpc stop</command> - </action> - </keybind> - <keybind key="W-S-F10"> - <action name="Execute"> - <command>~/.local/bin/mixer-set toggle</command> - </action> - </keybind> - <keybind key="W-S-F11"> - <action name="Execute"> - <command>~/.local/bin/mixer-set lower</command> - </action> - </keybind> - <keybind key="W-S-F12"> - <action name="Execute"> - <command>~/.local/bin/mixer-set raise</command> - </action> - </keybind> - <keybind key="W-S-Delete"> - <action name="Execute"> - <command>~/.local/bin/mic</command> - </action> - </keybind> - <keybind key="W-C-F9"> - <action name="Execute"> - <command>~/.local/bin/dmkill</command> - </action> - </keybind> - <keybind key="W-C-F10"> - <action name="Execute"> - <command>~/.local/bin/dmscrot</command> - </action> - </keybind> - <keybind key="W-C-F11"> - <action name="Execute"> - <command>~/.local/bin/dmsearch</command> - </action> - </keybind> - <keybind key="W-C-F12"> - <action name="Execute"> - <command>~/.local/bin/dmlog</command> - </action> - </keybind> - <keybind key="W-BackSpace"> - <action name="Execute"> - <command>~/.local/bin/dmpc</command> - </action> - </keybind> - <keybind key="W-C-BackSpace"> - <action name="Execute"> - <command>~/.local/bin/dmlog</command> - </action> - </keybind> - <keybind key="W-C-p"> - <action name="Execute"> - <command>~/.local/bin/dmpass</command> - </action> - </keybind> - <keybind key="W-C-S-p"> - <action name="Execute"> - <command>~/.local/bin/dmpass --full</command> - </action> - </keybind> - <keybind key="W-C-o"> - <action name="Execute"> - <command>~/.local/bin/dmotp</command> - </action> - </keybind> - <keybind key="W-End"> - <action name="Execute"> - <command>~/.local/bin/ndate</command> - </action> - </keybind> - <keybind key="W-Delete"> - <action name="Execute"> - <command>~/.local/bin/shutup</command> - </action> - </keybind> - <keybind key="W-S-e"> - <action name="Exit"> - <prompt>yes</prompt> - </action> - </keybind> - <keybind key="W-S-r"> - <action name="Reconfigure"/> - </keybind> - <keybind key="W-space"> - <action name="ShowMenu"> - <menu>root-menu</menu> - </action> - </keybind> - <keybind key="W-o"> - <action name="ShowMenu"> - <menu>client-list-combined-menu</menu> - </action> - </keybind> - <keybind key="W-w"> - <action name="Move"/> - </keybind> - <keybind key="W-C-w"> - <action name="Move"/> - </keybind> - <keybind key="W-S-w"> - <action name="Resize"/> - </keybind> - </keyboard> - <mouse> - <dragThreshold>1</dragThreshold> - <!-- number of pixels the mouse must move before a drag begins --> - <doubleClickTime>500</doubleClickTime> - <!-- in milliseconds (1000 = 1 second) --> - <screenEdgeWarpTime>400</screenEdgeWarpTime> - <!-- Time before changing desktops when the pointer touches the edge of the - screen while moving a window, in milliseconds (1000 = 1 second). - Set this to 0 to disable warping --> - <screenEdgeWarpMouse>true</screenEdgeWarpMouse> - <!-- Set this to TRUE to move the mouse pointer across the desktop when - switching due to hitting the edge of the screen --> - <context name="Frame"> - <mousebind button="W-Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="W-Left" action="Click"> - <action name="Unshade"/> - </mousebind> - <mousebind button="W-Left" action="Drag"> - <action name="Move"/> - </mousebind> - <mousebind button="W-Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="W-Right" action="Drag"> - <action name="Resize"/> - </mousebind> - <!-- <mousebind button="A-Middle" action="Press"> --> - <!-- <action name="Lower"/> --> - <!-- <action name="FocusToBottom"/> --> - <!-- <action name="Unfocus"/> --> - <!-- </mousebind> --> - <!-- <mousebind button="A-Up" action="Click"> --> - <!-- <action name="GoToDesktop"><to>previous</to></action> --> - <!-- </mousebind> --> - <!-- <mousebind button="A-Down" action="Click"> --> - <!-- <action name="GoToDesktop"><to>next</to></action> --> - <!-- </mousebind> --> - <!-- <mousebind button="C-A-Up" action="Click"> --> - <!-- <action name="GoToDesktop"><to>previous</to></action> --> - <!-- </mousebind> --> - <!-- <mousebind button="C-A-Down" action="Click"> --> - <!-- <action name="GoToDesktop"><to>next</to></action> --> - <!-- </mousebind> --> - <!-- <mousebind button="A-S-Up" action="Click"> --> - <!-- <action name="SendToDesktop"><to>previous</to></action> --> - <!-- </mousebind> --> - <!-- <mousebind button="A-S-Down" action="Click"> --> - <!-- <action name="SendToDesktop"><to>next</to></action> --> - <!-- </mousebind> --> - </context> - <context name="Titlebar"> - <mousebind button="Left" action="Drag"> - <action name="Move"/> - </mousebind> - <mousebind button="Left" action="DoubleClick"> - <action name="Lower"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - </mousebind> - <mousebind button="Up" action="Click"> - <action name="if"> - <shaded>no</shaded> - <then> - <action name="Shade"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - <action name="Lower"/> - </then> - </action> - </mousebind> - <mousebind button="Down" action="Click"> - <action name="if"> - <shaded>yes</shaded> - <then> - <action name="Unshade"/> - <action name="Raise"/> - </then> - </action> - </mousebind> - </context> - <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <!-- <action name="Unshade"/> --> - </mousebind> - <mousebind button="Middle" action="Click"> - <action name="ToggleShade"/> - <action name="if"> - <shaded>no</shaded> - <then> - <action name="Focus"/> - <action name="Raise"/> - </then> - </action> - <action name="if"> - <shaded>yes</shaded> - <then> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - <action name="Lower"/> - </then> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - </context> - <context name="Top"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>top</edge> - </action> - </mousebind> - </context> - <context name="Left"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>left</edge> - </action> - </mousebind> - </context> - <context name="Right"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>right</edge> - </action> - </mousebind> - </context> - <context name="Bottom"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>bottom</edge> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - </context> - <context name="TRCorner BRCorner TLCorner BLCorner"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Drag"> - <action name="Resize"/> - </mousebind> - </context> - <context name="Client"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Middle" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - </context> - <context name="Icon"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <!-- <action name="Unshade"/> --> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - </context> - <context name="AllDesktops"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="ToggleOmnipresent"/> - </mousebind> - </context> - <context name="Shade"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="ToggleShade"/> - </mousebind> - </context> - <context name="Iconify"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="Iconify"/> - </mousebind> - </context> - <context name="Maximize"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Middle" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="ToggleMaximize"/> - </mousebind> - <mousebind button="Middle" action="Click"> - <action name="ToggleMaximize"> - <direction>vertical</direction> - </action> - </mousebind> - <mousebind button="Right" action="Click"> - <action name="ToggleMaximize"> - <direction>horizontal</direction> - </action> - </mousebind> - </context> - <context name="Close"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <!-- <action name="Unshade"/> --> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="Close"/> - </mousebind> - </context> - <context name="Desktop"> - <mousebind button="Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="A-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="A-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="C-A-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="C-A-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - </context> - <context name="Root"> - <!-- Menus --> - <mousebind button="Middle" action="Press"> - <action name="ShowMenu"> - <menu>client-list-combined-menu</menu> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="ShowMenu"> - <menu>root-menu</menu> - </action> - </mousebind> - </context> - <context name="MoveResize"> - <mousebind button="Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="A-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="A-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - </context> - </mouse> - <menu> - <!-- You can specify more than one menu file in here and they are all loaded, - just don't make menu ids clash or, well, it'll be kind of pointless --> - <!-- default menu file (or custom one in $HOME/.config/openbox/) --> - <file>menu.xml</file> - <hideDelay>200</hideDelay> - <!-- if a press-release lasts longer than this setting (in milliseconds), the - menu is hidden again --> - <middle>no</middle> - <!-- center submenus vertically about the parent entry --> - <submenuShowDelay>0</submenuShowDelay> - <!-- time to delay before showing a submenu after hovering over the parent - entry. - if this is a negative value, then the delay is infinite and the - submenu will not be shown until it is clicked on --> - <submenuHideDelay>400</submenuHideDelay> - <!-- time to delay before hiding a submenu when selecting another - entry in parent menu - if this is a negative value, then the delay is infinite and the - submenu will not be hidden until a different submenu is opened --> - <showIcons>yes</showIcons> - <!-- controls if icons appear in the client-list-(combined-)menu --> - <manageDesktops>yes</manageDesktops> - <!-- show the manage desktops section in the client-list-(combined-)menu --> - </menu> - <applications> - <!-- - # this is an example with comments through out. use these to make your - # own rules, but without the comments of course. - # you may use one or more of the name/class/role/title/type rules to specify - # windows to match - - <application name="the window's _OB_APP_NAME property (see obxprop)" - class="the window's _OB_APP_CLASS property (see obxprop)" - groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)" - groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)" - role="the window's _OB_APP_ROLE property (see obxprop)" - title="the window's _OB_APP_TITLE property (see obxprop)" - type="the window's _OB_APP_TYPE property (see obxprob).. - (if unspecified, then it is 'dialog' for child windows)"> - # you may set only one of name/class/role/title/type, or you may use more - # than one together to restrict your matches. - - # the name, class, role, and title use simple wildcard matching such as those - # used by a shell. you can use * to match any characters and ? to match - # any single character. - - # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock, - # or desktop - - # when multiple rules match a window, they will all be applied, in the - # order that they appear in this list - - - # each rule element can be left out or set to 'default' to specify to not - # change that attribute of the window - - <decor>yes</decor> - # enable or disable window decorations - - <shade>no</shade> - # make the window shaded when it appears, or not - - <position force="no"> - # the position is only used if both an x and y coordinate are provided - # (and not set to 'default') - # when force is "yes", then the window will be placed here even if it - # says you want it placed elsewhere. this is to override buggy - # applications who refuse to behave - <x>center</x> - # a number like 50, or 'center' to center on screen. use a negative number - # to start from the right (or bottom for <y>), ie -50 is 50 pixels from - # the right edge (or bottom). use 'default' to specify using value - # provided by the application, or chosen by openbox, instead. - <y>200</y> - <monitor>1</monitor> - # specifies the monitor in a xinerama setup. - # 1 is the first head, or 'mouse' for wherever the mouse is - </position> - - <size> - # the size to make the window. - <width>20</width> - # a number like 20, or 'default' to use the size given by the application. - # you can use fractions such as 1/2 or percentages such as 75% in which - # case the value is relative to the size of the monitor that the window - # appears on. - <height>30%</height> - </size> - - <focus>yes</focus> - # if the window should try be given focus when it appears. if this is set - # to yes it doesn't guarantee the window will be given focus. some - # restrictions may apply, but Openbox will try to - - <desktop>1</desktop> - # 1 is the first desktop, 'all' for all desktops - - <layer>normal</layer> - # 'above', 'normal', or 'below' - - <iconic>no</iconic> - # make the window iconified when it appears, or not - - <skip_pager>no</skip_pager> - # asks to not be shown in pagers - - <skip_taskbar>no</skip_taskbar> - # asks to not be shown in taskbars. window cycling actions will also - # skip past such windows - - <fullscreen>yes</fullscreen> - # make the window in fullscreen mode when it appears - - <maximized>true</maximized> - # 'Horizontal', 'Vertical' or boolean (yes/no) - </application> - - # end of the example ---> - </applications> -</openbox_config> diff --git a/.config/screen/screenrc b/.config/screen/screenrc deleted file mode 100644 index e96cb3d..0000000 --- a/.config/screen/screenrc +++ /dev/null @@ -1,176 +0,0 @@ -#$HOME/.screenrc -################################################################################# -# Usage: -# [kent]@rd1-2:~$ screen -r ==> resumes a detached screen session -# [kent]@rd1-2:~$ screen -x ==> Cool, Attach to a not detached screen session. (Multi display mode) -# detach : Press F10 or "C-a d" -# HELP: "C-a, ?" -# "C-a C-a" : fast switch between 2 screens -################################################################################# - -altscreen on # Refresh the display when exiting programs like vim, nano, irssi and etc. -defutf8 on -defc1 off # treat input chars 128 ~ 159 as control functions -defflow on -vbell_msg "Ding ding!!" -vbell off # i.e. set to audible bell, used to redirect bell to terminal (putty) for "flashing effect" -defencoding utf8 -# cjkwidth on - -# 256 Color Support -termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" -#for Mac -termcapinfo xterm-color "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" - -term $TERM # depend on $TERM -term xterm-256color # or specified term - -# allow bold colors - necessary for some reason -# attrcolor b ".I" -attrcolor i "+b" - -# erase background with current bg color -defbce on - -# some environment setting -autodetach on -startup_message off -shell /usr/bin/zsh - -# dynamically udpate shell title, Sometimes it's bothersome...XD -# Need to add this line PROMPT_COMMAND='echo -n -e "\033k\033\134"' to $HOME/.bashrc -# shelltitle '$ |Bash' - -# setup 10,000 lines of available scrollback copy/paste -# NOTE: memory eating monster... -defscrollback 10000 - -# If a window goes unresponsive, don't block the whole session waiting for it. -nonblock on - -# fix scrollback in putty, this is cool! -termcapinfo xterm* ti@:te@ -#termcapinfo xterm|xterms|xs|rxvt ti@:te@ - -# turn-off log -#log off -logfile $HOME/tmp/screen-%Y%m%d-%n.log -#deflog on - -# caption style -# caption always "%{.KW} %-w%{.mW}[%n] %t%{.KW}%+w" -# caption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w " -# caption always "%{=u kC} %= %-w%L>%{=b G}[:%n %t:]%{-}%52<%+w %L=" -caption always "%{= KW}%-w%{= ky} [%n] %t %{-}%+w %-= %{= Kk}[%l] %{= Kk}[%Y/%m/%d %c]" -# caption always "%{= KW}%-w%{= kc} [%n] %t %{-}%+w %-= %{= Kk}[%H | %l | %m/%d %c]" - -# hardstatus style -# hardstatus alwaysignore -# hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .W}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A" -# hardstatus alwayslastline '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' -# hardstatus alwayslastline "%{R}[ %{w}%1` %{R}]%=%{M}%e %{G}%H %{Y} %c %{R} %d/%m/%Y %{K} Load: %l %{w}" -# hardstatus alwayslastline "%{= wk} %{by} %H %{wk} | %-Lw%{kw}◣%{= g}%n%f* %t%{wk}◤%{wk}%+Lw%< %= %{kw}◣%{= R} [%m/%d %c] %{-}" -# Ctrl + left : prev -# Ctrl + right : next -bindkey "^[O5D" prev -bindkey "^[O5C" next -bindkey "^[Od" prev -bindkey "^[Oc" next -bindkey "\033[D" prev -bindkey "\033[C" next -# putty -bindkey "^[[D" prev -bindkey "^[[C" next -# gnome-terminal -bindkey "^[[1;5D" prev -bindkey "^[[1;5C" next - -# Vim HJKL-style -# Alt + H : prev -# Alt + L : next -bindkey "^[H" prev -bindkey "^[L" next - -# /*Need to hack putty*/ -# (Mac - iTerm) just add key mapping! Cool iTerm -# (Win - PuTTY) Resolved by AutoHotkey -#Ctrl + , : prev -#Ctrl + . : next -#bindkey "\274" prev -#bindkey "\276" next - -# (Win - PuTTY) Resolved by AutoHotkey -# <s>/*Need to hack putty*/</s> -# Ctrl + Tab : prev (Firefox-way) -# Ctrl + Shift + Tab : next (Firefox-way) -#bindkey "^[[27;5;9~" next -#bindkey "^[[27;6;9~" prev - -# Ctrl + t : new screen (Firefox-way), shit conflict with cscope -#bindkey "\024" screen -# Ctrl + w : close screen (Firefox-way), shit conflict with vim - window control -#bindkey "\027" kill - - -# Alt + left/right, will conflict with my vimrc mapping -#bindkey "^[^[OC" next -#bindkey "^[^[OD" prev -#Alt + ,/. -#bindkey ^[, next -#bindkey ^[. prev - -# C-a b : encoding big5 -# C-a u : encoding utf8 -bind b encoding big5 utf8 -bind u encoding utf8 utf8 - -# C-a $num : Switch to window number 0 - 9, or to the blank window. -bindkey "^[[A" number 1 - -# F10 : detach -bindkey -k k; detach - -# set the title for the default shell or specified program. -# screen -t gotop 1 gotop -# screen -t lf 2 lf -# screen -t emacs 3 zsh -# screen -t todo 4 zsh -c 'cd ~/Documents/_custom_apps/; zsh -i' -# screen -t shell 5 zsh - -# Start at window 1 -bind c screen 1 -# bind 0 select 10 -select 1 - -#backtick 1 60 60 $HOME/Tools/get_freemem -#hardstatus alwayslastline "Free: %1`" - -#Hotkey for window resizing -bind = resize = -bind + resize +1 -bind - resize -1 -bind _ resize max - -# Ctrl + ARROW_UP/ARROW_DOWN -bindkey "^[[A" resize +1 -bindkey "^[[B" resize -1 - -# Useful bindings as Vim(hjkl) -bind j focus down -bind k focus up -bind h focus left -bind l focus right - -# Integrating GNU Screen copy/scrollback mode with the local system clipboard. i.e. Copying to the Mac Clipboard -# bind y eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" - -# hardcopydir: The directory which contains all hardcopies. -hardcopydir ~/.config/screen - -msgwait 10 -setenv DISPLAY ':0' - -# mouse tracking allows to switch region focus by clicking -mousetrack on -# source .screen_layout -# layout save def diff --git a/.config/tint2/tint2rc b/.config/tint2/tint2rc deleted file mode 100755 index bde4275..0000000 --- a/.config/tint2/tint2rc +++ /dev/null @@ -1,239 +0,0 @@ -#---- Generated by tint2conf 2593 ---- -# See https://gitlab.com/o9000/tint2/wikis/Configure for -# full documentation of the configuration options. -#------------------------------------- -# Backgrounds -# Background 1: -rounded = 0 -border_width = 1 -background_color = #eeeeee 0 -border_color = #bbbbbb 10 -background_color_hover = #eeeeee 0 -border_color_hover = #bbbbbb 10 -background_color_pressed = #eeeeee 0 -border_color_pressed = #bbbbbb 10 - -# Background 2: Active taskbar -rounded = 2 -border_width = 0 -background_color = #e3e3e3 0 -border_color = #cccccc 44 -background_color_hover = #eeeeee 22 -border_color_hover = #eaeaea 44 -background_color_pressed = #dddddd 4 -border_color_pressed = #eaeaea 44 - -# Background 3: Active task -rounded = 2 -border_width = 1 -background_color = #dddddd 4 -border_color = #dbdbdb 100 -background_color_hover = #eeeeee 22 -border_color_hover = #999999 100 -background_color_pressed = #dddddd 4 -border_color_pressed = #999999 100 - -# Background 4: Urgent task -rounded = 2 -border_width = 1 -background_color = #ffa348 100 -border_color = #aa7733 100 -background_color_hover = #ffa348 100 -border_color_hover = #aa7733 100 -background_color_pressed = #ffa348 100 -border_color_pressed = #aa7733 100 - -# Background 5: Tooltip -rounded = 2 -border_width = 1 -background_color = #ffffaa 100 -border_color = #999999 100 -background_color_hover = #ffffaa 100 -border_color_hover = #999999 100 -background_color_pressed = #ffffaa 100 -border_color_pressed = #999999 100 - -# Background 6: Inactive desktop name -rounded = 2 -border_width = 1 -background_color = #eeeeee 4 -border_color = #cccccc 30 -background_color_hover = #eeeeee 22 -border_color_hover = #999999 30 -background_color_pressed = #dddddd 4 -border_color_pressed = #999999 30 - -# Background 7: -rounded = 2 -border_width = 1 -background_color = #dddddd 3 -border_color = #999999 100 -background_color_hover = #dddddd 3 -border_color_hover = #999999 100 -background_color_pressed = #dddddd 3 -border_color_pressed = #999999 100 - -# Background 8: Panel -rounded = 0 -border_width = 0 -background_color = #c6c6c6 17 -border_color = #000000 0 -background_color_hover = #000000 0 -border_color_hover = #000000 0 -background_color_pressed = #dddddd 4 -border_color_pressed = #eaeaea 44 - -# Background 9: Active desktop name, Default task, Iconified task -rounded = 2 -border_width = 1 -background_color = #eeeeee 4 -border_color = #cccccc 44 -background_color_hover = #cccccc 44 -border_color_hover = #eaeaea 44 -background_color_pressed = #dddddd 4 -border_color_pressed = #eaeaea 44 - -#------------------------------------- -# Panel -panel_items = TSBC -panel_size = 100% 26 -panel_margin = 0 0 -panel_padding = 4 2 4 -panel_background_id = 8 -wm_menu = 1 -panel_dock = 0 -panel_position = top center horizontal -panel_layer = bottom -panel_monitor = all -primary_monitor_first = 0 -autohide = 0 -autohide_show_timeout = 0 -autohide_hide_timeout = 0.5 -autohide_height = 2 -strut_policy = follow_size -panel_window_name = tint2 -disable_transparency = 0 -mouse_effects = 1 -font_shadow = 0 -mouse_hover_icon_asb = 100 0 10 -mouse_pressed_icon_asb = 100 0 0 - -#------------------------------------- -# Taskbar -taskbar_mode = single_desktop -taskbar_padding = 1 0 2 -taskbar_background_id = 0 -taskbar_active_background_id = 2 -taskbar_name = 1 -taskbar_hide_inactive_tasks = 0 -taskbar_hide_different_monitor = 1 -taskbar_always_show_all_desktop_tasks = 0 -taskbar_name_padding = 6 3 -taskbar_name_background_id = 6 -taskbar_name_active_background_id = 9 -taskbar_name_font = sans Bold 9 -taskbar_name_font_color = #ffffff 100 -taskbar_name_active_font_color = #ffffff 100 -taskbar_distribute_size = 1 -taskbar_sort_order = none -task_align = left - -#------------------------------------- -# Task -task_text = 1 -task_icon = 1 -task_centered = 1 -urgent_nb_of_blink = 100000 -task_maximum_size = 180 40 -task_padding = 4 4 4 -task_font = Sans 9 -task_tooltip = 1 -task_font_color = #eeeeee 100 -task_active_font_color = #ffffff 100 -task_iconified_font_color = #ffffff 60 -task_icon_asb = 100 0 -15 -task_active_icon_asb = 100 0 0 -task_iconified_icon_asb = 70 -50 -50 -task_background_id = 9 -task_active_background_id = 3 -task_urgent_background_id = 4 -task_iconified_background_id = 9 -mouse_left = toggle_iconify -mouse_middle = none -mouse_right = none -mouse_scroll_up = none -mouse_scroll_down = none - -#------------------------------------- -# System tray (notification area) -systray_padding = 4 0 2 -systray_background_id = 0 -systray_sort = ascending -systray_icon_size = 22 -systray_icon_asb = 100 0 0 -systray_monitor = 2 - -#------------------------------------- -# Launcher -launcher_padding = 0 0 2 -launcher_background_id = 0 -launcher_icon_background_id = 0 -launcher_icon_size = 22 -launcher_icon_asb = 100 0 0 -launcher_icon_theme_override = 0 -startup_notifications = 1 -launcher_tooltip = 1 -launcher_item_app = /usr/share/applications/pcmanfm.desktop -launcher_item_app = /usr/share/applications/com.alacritty.Alacritty.desktop -launcher_item_app = /usr/share/applications/emacs.desktop -launcher_item_app = /usr/share/applications/ario.desktop -launcher_item_app = firefox.desktop -launcher_item_app = /usr/share/applications/thunderbird.desktop - -#------------------------------------- -# Clock -time1_format = %H:%M -time2_format = %A %d %B -time1_font = sans Bold 10 -time1_timezone = -time2_timezone = -time2_font = sans 7 -clock_font_color = #ffffff 100 -clock_padding = 1 0 -clock_background_id = 0 -clock_tooltip = -clock_tooltip_timezone = -clock_lclick_command = zenity --calendar --text "" -clock_rclick_command = thunderbird -calendar -clock_mclick_command = -clock_uwheel_command = -clock_dwheel_command = - -#------------------------------------- -# Battery -battery_tooltip = 1 -battery_low_status = 10 -battery_low_cmd = notify-send -u critical 'battery' "You're low, partner!" -bat1_font = Sans Bold 10 -bat2_font = sans 6 -battery_font_color = #ffffff 100 -battery_padding = 1 0 -battery_background_id = 0 -battery_hide = 101 -battery_lclick_command = -battery_rclick_command = -battery_mclick_command = -battery_uwheel_command = -battery_dwheel_command = -ac_connected_cmd = -ac_disconnected_cmd = - -#------------------------------------- -# Tooltip -tooltip_show_timeout = 0.5 -tooltip_hide_timeout = 0.1 -tooltip_padding = 2 2 -tooltip_background_id = 5 -tooltip_font_color = #222222 100 -tooltip_font = sans 9 - diff --git a/.config/transmission-daemon/settings.json b/.config/transmission-daemon/settings.json deleted file mode 100644 index 357ef31..0000000 --- a/.config/transmission-daemon/settings.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "alt-speed-down": 50, - "alt-speed-enabled": false, - "alt-speed-time-begin": 540, - "alt-speed-time-day": 127, - "alt-speed-time-enabled": false, - "alt-speed-time-end": 1020, - "alt-speed-up": 50, - "bind-address-ipv4": "0.0.0.0", - "bind-address-ipv6": "::", - "blocklist-enabled": false, - "blocklist-url": "http://www.example.com/blocklist", - "cache-size-mb": 4, - "dht-enabled": true, - "download-dir": "/home/jozan/dl/torrents", - "download-queue-enabled": true, - "download-queue-size": 5, - "encryption": 1, - "idle-seeding-limit": 30, - "idle-seeding-limit-enabled": false, - "incomplete-dir": "/home/jozan/dl", - "incomplete-dir-enabled": false, - "lpd-enabled": false, - "message-level": 2, - "peer-congestion-algorithm": "", - "peer-id-ttl-hours": 6, - "peer-limit-global": 200, - "peer-limit-per-torrent": 50, - "peer-port": 51413, - "peer-port-random-high": 65535, - "peer-port-random-low": 49152, - "peer-port-random-on-start": false, - "peer-socket-tos": "default", - "pex-enabled": true, - "port-forwarding-enabled": true, - "preallocation": 1, - "prefetch-enabled": true, - "queue-stalled-enabled": true, - "queue-stalled-minutes": 30, - "ratio-limit": 2, - "ratio-limit-enabled": false, - "rename-partial-files": true, - "rpc-authentication-required": false, - "rpc-bind-address": "0.0.0.0", - "rpc-enabled": true, - "rpc-host-whitelist": "", - "rpc-host-whitelist-enabled": true, - "rpc-password": "{e1d6a56beeae6e1981161ffac9dd03cc13ff335cgHQInMhA", - "rpc-port": 9091, - "rpc-url": "/transmission/", - "rpc-username": "", - "rpc-whitelist": "127.0.0.1,::1", - "rpc-whitelist-enabled": true, - "scrape-paused-torrents-enabled": true, - "script-torrent-done-enabled": true, - "script-torrent-done-filename": "/home/jozan/.local/bin/tsm-done.sh", - "seed-queue-enabled": false, - "seed-queue-size": 10, - "speed-limit-down": 10, - "speed-limit-down-enabled": false, - "speed-limit-up": 5, - "speed-limit-up-enabled": false, - "start-added-torrents": true, - "trash-original-torrent-files": false, - "umask": 18, - "upload-slots-per-torrent": 14, - "utp-enabled": true -} diff --git a/.config/wayland/init.sh b/.config/wayland/init.sh deleted file mode 100755 index b86db41..0000000 --- a/.config/wayland/init.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh - -source "$HOME"/.config/env - -case $(hostname -s) in - mother) - icon=" " - mpd="mpd" - xscr="xscreensaver --no-splash" - sleep="sleep 1" - ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" - host="mother" - doas mkdir /var/run/jozan && doas chown -v jozan: /var/run/jozan - wlr-randr --output DP-3 --off - setwp "$HOME"/pics/wp.png - ;; - po-rbo) - icon=" " - mpd="mpd" - xscr="xscreensaver" - sleep="sleep 0.1" - ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" - host="po-rbo" - doas mkdir /var/run/r_bousset && doas chown -v r_bousset: /var/run/r_bousset - setwp "$HOME"/pics/wp/liminal - ;; - mars) - icon=" " - mpd="musicpd" - xscr="xscreensaver --no-splash" - sleep="gsleep 1" - ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1" - host="mars" - doas mkdir /var/run/jozan && doas chown -v jozan: /var/run/jozan - setwp "$HOME"/pics/wp - ;; -esac - -startif() { - pidof "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & -} - -startif ydotoold -startif dunst -pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1 -pkill wireplumber -pkill pipewire-pulse -pkill pipewire -sleep 1 -startif pipewire -sleep 1 -startif pipewire-pulse -sleep 1 -startif wireplumber -export QT_QPA_PLATFORM=xcb -startif copyq -startif nextcloud -startif stalonetray -notify-send -u normal 'welcome' "$icon welcome back, partner!" diff --git a/.config/wtf/config.yml b/.config/wtf/config.yml deleted file mode 100644 index 5853ddb..0000000 --- a/.config/wtf/config.yml +++ /dev/null @@ -1,88 +0,0 @@ -wtf: - colors: - border: - focusable: darkslateblue - focused: orange - normal: gray - grid: - columns: [50, 50, 50, 50, 90] - rows: [8, 10, 12, 3, 4, 90] - refreshInterval: 1 - mods: - digitalclock: - color: orange - enabled: true - font: digitalfont - hourFormat: 24 - position: - top: 0 - left: 1 - height: 1 - width: 1 - refreshInterval: 1 - title: "big clock" - type: "digitalclock" - ipinfo: - colors: - name: "lightblue" - value: "white" - enabled: true - position: - top: 1 - left: 1 - height: 1 - width: 1 - refreshInterval: 150 - power: - enabled: true - position: - top: 1 - left: 2 - height: 1 - width: 1 - refreshInterval: 15 - title: "⚡️" - feedreader: - enabled: true - feeds: - - http://feeds.bbci.co.uk/news/rss.xml - feedLimit: 10 - position: - top: 2 - left: 0 - width: 2 - height: 1 - refreshInterval: 900 - hackernews: - enabled: true - numberOfStories: 10 - position: - top: 2 - left: 2 - width: 2 - height: 1 - storyType: top - refreshInterval: 900 - uptime: - args: [""] - cmd: "uptime" - enabled: true - position: - top: 3 - left: 0 - height: 1 - width: 2 - refreshInterval: 30 - type: cmdrunner - resourceusage: - cpuCombined: false - enabled: true - position: - top: 0 - left: 0 - height: 2 - width: 1 - refreshInterval: 1 - showCPU: true - showMem: true - showSwp: true diff --git a/.config/x11/xresources b/.config/x11/xresources index a1ea2f5..91a3b6f 100644 --- a/.config/x11/xresources +++ b/.config/x11/xresources @@ -1,4 +1,4 @@ -Xft.dpi: 120 +Xft.dpi: 96 Xft.antialias: true Xft.hinting: true Xft.rgba: rgb @@ -9,6 +9,6 @@ Xcursor.theme: "Simp1e-Gruvbox-Dark" Xcursor.size: 18 Nsxiv.window.background: #1d2021 Nsxiv.window.foreground: #ebdbb2 -Nsxiv.bar.font: Terminess Nerd Font-12 +Nsxiv.bar.font: BlexMono Nerd Font-13 Vncviewer.grabKeyboard: true Vncviewer.FullScreen: 1 |