diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2023-12-04 03:04:27 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2023-12-04 03:04:27 -0300 |
commit | 959f43ea74e1c9a92a07697c5cd8e5cd1d4d1bac (patch) | |
tree | 493894f6684bdd5443e8afc9a2fad4bfcd244769 | |
parent | 8ccd55d605476824ba8ebd8354d23b54e31623b0 (diff) | |
download | dots-959f43ea74e1c9a92a07697c5cd8e5cd1d4d1bac.tar.gz |
restarting from scratch
-rw-r--r-- | .chezmoiignore | 3 | ||||
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | dot_config/amfora/config.toml | 403 | ||||
-rw-r--r-- | dot_config/amfora/newtab.gmi | 20 | ||||
-rw-r--r-- | dot_config/bash/aliases | 18 | ||||
-rw-r--r-- | dot_config/bash/functions | 13 | ||||
-rw-r--r-- | dot_config/bash/prompt | 51 | ||||
-rw-r--r-- | dot_config/bash/rc | 13 | ||||
-rw-r--r-- | dot_config/fontconfig/fonts.conf | 69 | ||||
-rw-r--r-- | dot_config/git/config | 14 | ||||
-rw-r--r-- | dot_config/nvim/init.vim | 56 | ||||
-rw-r--r-- | dot_config/pulse/default.pa | 2 | ||||
-rw-r--r-- | dot_config/sx/executable_sxrc | 5 | ||||
-rw-r--r-- | dot_config/user-dirs.dirs | 17 | ||||
-rw-r--r-- | dot_local/bin/executable_0 | 174 | ||||
-rw-r--r-- | dot_local/bin/executable_gg | 6 | ||||
-rw-r--r-- | dot_local/bin/executable_mail | 3 | ||||
-rw-r--r-- | dot_local/bin/executable_s | 44 | ||||
-rw-r--r-- | dot_local/bin/executable_screenshotit | 4 | ||||
-rw-r--r-- | dot_local/bin/executable_shorten-clipb | 3 | ||||
-rw-r--r-- | dot_local/bin/executable_wal | 13 | ||||
-rw-r--r-- | dot_local/bin/executable_xb | 28 | ||||
-rw-r--r-- | dot_profile | 18 |
23 files changed, 3 insertions, 982 deletions
diff --git a/.chezmoiignore b/.chezmoiignore deleted file mode 100644 index 2cb95b7..0000000 --- a/.chezmoiignore +++ /dev/null @@ -1,3 +0,0 @@ -.config/qtile/__pycache__ -README.md -LICENSE diff --git a/README.md b/README.md index 39a6de2..b15794b 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,7 @@ Hello, and welcome! This is the place that i store my dotfiles. Here you can find: -* A nicely configured Qtile window manager, with the greatest colorscheme (gruvbox ofc) -* Terminal configurations -* Gemini-related configuration -* Some nice scripts +* A customization of Sway (using i3status for now, may switch to waybar) +* Small config for foot -I'm still to post screenshots. Feel free to contribute! +It's still WIP! If you have any suggestions, feel free to email me [here](mailto:vitorg@tilde.team), or to contact me via Matrix [here](https://mto.vern.cc/#/@vitorg:vern.cc). diff --git a/dot_config/amfora/config.toml b/dot_config/amfora/config.toml deleted file mode 100644 index 3369b92..0000000 --- a/dot_config/amfora/config.toml +++ /dev/null @@ -1,403 +0,0 @@ -# This is the default config file. -# It also shows all the default values, if you don't create the file. -# You can edit this file to set your own configuration for Amfora. - -# When Amfora updates, defaults may change, but this file on your drive will not. -# You can always get the latest defaults on GitHub. -# https://github.com/makeworld-the-better-one/amfora/blob/master/default-config.toml - -# Please also check out the Amfora Wiki for more help -# https://github.com/makeworld-the-better-one/amfora/wiki -# gemini://makeworld.space/amfora-wiki/ - - - -# 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://gemini.circumlunar.space" - -# 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 way 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 = 'default' - -# Any URL that will accept a query string can be put here -search = "gemini://geminispace.info/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.15 - -# The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped. -max_width = 100 - -# '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 = '' - -# 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 - -# When a scrollbar appears. "never", "auto", and "always" are the only valid values. -# "auto" means the scrollbar only appears when the page is longer than the window. -scrollbar = "auto" - -# Underline non-gemini URLs -# This is done to help color blind users -underline = 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] -# If you have a non-US keyboard, use bind_tab1 through bind_tab0 to -# setup the shift-number bindings: Eg, for US keyboards (the default): -# bind_tab1 = "!" -# bind_tab2 = "@" -# bind_tab3 = "#" -# bind_tab4 = "$" -# bind_tab5 = "%" -# bind_tab6 = "^" -# bind_tab7 = "&" -# bind_tab8 = "*" -# bind_tab9 = "(" -# bind_tab0 = ")" - -# Whitespace is not allowed in any of the keybindings! Use 'Space' and 'Tab' to bind to those keys. -# Multiple keys can be bound to one command, just use a TOML array. -# To add the Alt modifier, the binding must start with Alt-, should be reasonably universal -# Ctrl- won't work on all keys, see this for a list: -# https://github.com/gdamore/tcell/blob/cb1e5d6fa606/key.go#L83 - -# An example of a TOML array for multiple keys being bound to one command is the default -# binding for reload: -# bind_reload = ["R","Ctrl-R"] -# One thing to note here is that "R" is capitalization sensitive, so it means shift-r. -# "Ctrl-R" means both ctrl-r and ctrl-shift-R (this is a quirk of what ctrl-r means on -# an ANSI terminal) - -# The default binding for opening the bottom bar for entering a URL or link number is: -# bind_bottom = "Space" -# This is how to get the Spacebar as a keybinding, if you try to use " ", it won't work. -# And, finally, an example of a simple, unmodified character is: -# bind_edit = "e" -# This binds the "e" key to the command to edit the current URL. - -# The bind_link[1-90] options are for the commands to go to the first 10 links on a page, -# typically these are bound to the number keys: -# bind_link1 = "1" -# bind_link2 = "2" -# bind_link3 = "3" -# bind_link4 = "4" -# bind_link5 = "5" -# bind_link6 = "6" -# bind_link7 = "7" -# bind_link8 = "8" -# bind_link9 = "9" -# bind_link0 = "0" - -# All keybindings: -# -# bind_bottom -# bind_edit -# bind_home -# bind_bookmarks -# bind_add_bookmark -# bind_save -# bind_reload -# bind_back -# bind_forward -# bind_moveup -# bind_movedown -# bind_moveleft -# bind_moveright -# bind_pgup -# bind_pgdn -# bind_new_tab -# bind_close_tab -# bind_next_tab -# bind_prev_tab -# bind_quit -# bind_help -# bind_sub: for viewing the subscriptions page -# bind_add_sub -# bind_copy_page_url -# bind_copy_target_url -# bind_beginning: moving to beginning of page (top left) -# bind_end: same but the for the end (bottom left) - -[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. -# -# The best way to define a command is using a string array. -# Examples: -# magnet = ['transmission'] -# foo = ['custom-browser', '--flag', '--option=2'] -# tel = ['/path/with spaces/in it/telephone'] -# -# 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. - -# This is a special key that defines the handler for all URL schemes for which -# no handler is defined. -# It uses the special value 'default', which will try and use the default -# application on your computer for opening this kind of URI. -other = 'default' - - -# [[mediatype-handlers]] section -# --------------------------------- -# -# Specify what applications will open certain media types. -# By default your default application will be used to open the file when you select "Open". -# You only need to configure this section if you want to override your default application, -# or do special things like streaming. -# -# Note the use of single quotes for commands, so that backslashes will not be escaped. -# -# -# To open jpeg files with the feh command: -# -# [[mediatype-handlers]] -# cmd = ['feh'] -# types = ["image/jpeg"] -# -# Each command that you specify must come under its own [[mediatype-handlers]]. You may -# specify as many [[mediatype-handlers]] as you want to setup multiple commands. -# -# If the subtype is omitted then the specified command will be used for the -# entire type: -# -# [[mediatype-handlers]] -# command = ['vlc', '--flag'] -# types = ["audio", "video"] -# -# A catch-all handler can by specified with "*". -# Note that there are already catch-all handlers in place for all OSes, -# that open the file using your default application. This is only if you -# want to override that. -# -# [[mediatype-handlers]] -# cmd = ['some-command'] -# types = [ -# "application/pdf", -# "*", -# ] -# -# You can also choose to stream the data instead of downloading it all before -# opening it. This is especially useful for large video or audio files, as -# well as radio streams, which will never complete. You can do this like so: -# -# [[mediatype-handlers]] -# cmd = ['vlc', '-'] -# types = ["audio", "video"] -# stream = true -# -# This uses vlc to stream all video and audio content. -# By default stream is set to off for all handlers -# -# -# If you want to always open a type in its viewer without the download or open -# prompt appearing, you can add no_prompt = true -# -# [[mediatype-handlers]] -# cmd = ['feh'] -# types = ["image"] -# no_prompt = true -# -# Note: Multiple handlers cannot be defined for the same full media type, but -# still there needs to be an order for which handlers are used. The following -# order applies regardless of the order written in the config: -# -# 1. Full media type: "image/jpeg" -# 2. Just type: "image" -# 3. Catch-all: "*" - - -[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". -# Setting a background to "default" keeps the terminal default -# If your terminal has transparency, set any background to "default" to keep it transparent -# The key "bg" is already set to "default", but this can be used on other backgrounds, -# like for modals. - -# 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" -# bg = "default" - -# 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 -# scrollbar: The scrollbar that appears on the right for long pages - -# 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/dot_config/amfora/newtab.gmi b/dot_config/amfora/newtab.gmi deleted file mode 100644 index 874ab45..0000000 --- a/dot_config/amfora/newtab.gmi +++ /dev/null @@ -1,20 +0,0 @@ - _ - _ __ __ _(_)_ _ - | ' \/ _` | | ' \ - |_|_|_\__,_|_|_||_| - -=> gemini://vitorg.vern.cc my capsule -=> gemini://vern.cc ~vern capsule - -=> gemini://geminispace.info search engine - -=> about:bookmarks bookmarks -=> about:subscriptions subs - - _ _ _ _ - _ _ (_)__ ___ | (_)_ _ | |__ ___ - | ' \| / _/ -_) | | | ' \| / /(_-< - |_||_|_\__\___| |_|_|_||_|_\_\/__/ - -=> gemini://tilde.pink/~emily emily's capsule - diff --git a/dot_config/bash/aliases b/dot_config/bash/aliases deleted file mode 100644 index 86a4872..0000000 --- a/dot_config/bash/aliases +++ /dev/null @@ -1,18 +0,0 @@ -# vim: ft=sh - -alias ls="exa -laH --group-directories-first" -alias la="exa -aH --group-directories-first" -alias l="exa -H --group-directories-first" - -alias c="chezmoi" -alias ce="chezmoi edit" -alias ca="chezmoi apply" -alias ccd="cd ~/.local/share/chezmoi" - -# git aliases -alias g="git" -alias gs="git status" -alias gc="git commit" -alias gd="git diff" - -alias monerod="monerod --data-dir "$XDG_DATA_HOME"/bitmonero" diff --git a/dot_config/bash/functions b/dot_config/bash/functions deleted file mode 100644 index 2835c92..0000000 --- a/dot_config/bash/functions +++ /dev/null @@ -1,13 +0,0 @@ -# vim: ft=sh - -wbp() { - blogdir="$HOME/docs/src/web/blog" - - read -rp "What is your title? " title - - path="$blogdir/content/$(date '+%Y-%m-%d')-${title,,}.md" - path=${path// /-} - - "$EDITOR" "$path" - printf "Your blogpost is saved at %s\n" "$path" -} diff --git a/dot_config/bash/prompt b/dot_config/bash/prompt deleted file mode 100644 index f65f096..0000000 --- a/dot_config/bash/prompt +++ /dev/null @@ -1,51 +0,0 @@ -# vim: ft=sh - -# get current branch in git repo -function parse_git_branch() { - BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` - if [ ! "${BRANCH}" == "" ] - then - STAT=`parse_git_dirty` - echo "- [${BRANCH}${STAT}] " - else - echo "" - fi -} - -# get current status of git repo -function parse_git_dirty { - status=`git status 2>&1 | tee` - dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"` - untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"` - ahead=`echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?"` - newfile=`echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?"` - renamed=`echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?"` - deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"` - bits='' - if [ "${renamed}" == "0" ]; then - bits=">${bits}" - fi - if [ "${ahead}" == "0" ]; then - bits="*${bits}" - fi - if [ "${newfile}" == "0" ]; then - bits="+${bits}" - fi - if [ "${untracked}" == "0" ]; then - bits="?${bits}" - fi - if [ "${deleted}" == "0" ]; then - bits="x${bits}" - fi - if [ "${dirty}" == "0" ]; then - bits="!${bits}" - fi - if [ ! "${bits}" == "" ]; then - echo " ${bits}" - else - echo "" - fi -} - -export PS1="\[\e[34m\]\u\[\e[m\]\[\e[34m\]@\[\e[m\]\[\e[34m\]\h\[\e[m\] \[\e[31m\]\w\[\e[m\] \[\e[35m\]\`parse_git_branch\`\[\e[m\]\[\e[32m\]\\$\[\e[m\] " - diff --git a/dot_config/bash/rc b/dot_config/bash/rc deleted file mode 100644 index f8f7b01..0000000 --- a/dot_config/bash/rc +++ /dev/null @@ -1,13 +0,0 @@ -# vim: ft=sh - -shopt -s autocd -shopt -s histappend - -# pinentry and stuff -export GPG_TTY=$(tty) - -export EDITOR="nvim" VISUAL="nvim" - -source "$HOME/.config/bash/aliases" -source "$HOME/.config/bash/functions" -source "$HOME/.config/bash/prompt" diff --git a/dot_config/fontconfig/fonts.conf b/dot_config/fontconfig/fonts.conf deleted file mode 100644 index 69cb093..0000000 --- a/dot_config/fontconfig/fonts.conf +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> -<fontconfig> - <match target="font" > - <edit mode="assign" name="lcdfilter" > - <const>lcdlight</const> - </edit> - </match> - <match target="font" > - <edit mode="assign" name="hinting" > - <bool>true</bool> - </edit> - </match> - <match target="font" > - <edit mode="assign" name="hintstyle" > - <const>hintmedium</const> - </edit> - </match> - <match target="font" > - <edit mode="assign" name="rgba" > - <const>rgb</const> - </edit> - </match> - - <alias> - <family>serif</family> - <prefer> - <family>Vollkorn</family> - <family>HanaMinB</family> - <family>Alef</family> - <family>Scheherazade</family> - <family>Twitter Color Emoji</family> - <family>JoyPixels</family> - </prefer> - </alias> - <alias> - <family>sans</family> - <prefer> - <family>Source Sans Pro</family> - <family>HanaMinB</family> - <family>Alef</family> - <family>Scheherazade</family> - <family>Twitter Color Emoji</family> - <family>JoyPixels</family> - </prefer> - </alias> - <alias> - <family>sans-serif</family> - <prefer> - <family>Source Sans Pro</family> - <family>HanaMinB</family> - <family>Alef</family> - <family>Scheherazade</family> - <family>Twitter Color Emoji</family> - <family>JoyPixels</family> - </prefer> - </alias> - <alias> - <family>monospace</family> - <prefer> - <family>envypn</family> - <family>HanaMinB</family> - <family>Alef</family> - <family>Scheherazade</family> - <family>Twitter Color Emoji</family> - <family>JoyPixels</family> - </prefer> - </alias> -</fontconfig> diff --git a/dot_config/git/config b/dot_config/git/config deleted file mode 100644 index 8523d06..0000000 --- a/dot_config/git/config +++ /dev/null @@ -1,14 +0,0 @@ -[user] - email = vitorg@tilde.team - name = Vitor Gonçalves - signingKey = 65DA8300A1A5E18AE6EB0DEBB90BF113DF56EB41 -[init] - defaultBranch = master -[core] - sshCommand = ssh -i ~/.ssh/id_codeberg -[commit] - gpgsign = true -[push] - autoSetupRemote = true -[pull] - rebase = false diff --git a/dot_config/nvim/init.vim b/dot_config/nvim/init.vim deleted file mode 100644 index 105bdbb..0000000 --- a/dot_config/nvim/init.vim +++ /dev/null @@ -1,56 +0,0 @@ -" *init.vim* - -" removes annoying swap, improves performance and asks for confirmation before write -set noswapfile lazyredraw confirm - -" indentation -filetype plugin indent on -set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smartindent " tab setting -set showmatch ignorecase smartcase - - -set undofile " persist undo -set clipboard=unnamedplus " X clipboard to nvim - -" plugins -call plug#begin() -Plug 'morhetz/gruvbox' " best theme -Plug 'mattn/emmet-vim' " html and css easing -call plug#end() - -" styling -syntax on -set termguicolors - -set number relativenumber numberwidth=2 cursorline -set conceallevel=3 - -set background=dark -colo gruvbox - -" emmet -let g:user_emmet_mode='n' " only on normal mode, thx -let g:user_emmet_install_global = 0 -autocmd FileType html,css EmmetInstall - -let g:user_emmet_leader_key=',' - -"" bindings -" leader mapping -nnoremap <SPACE> <Nop> -let mapleader=" " -let localleader=" " - -" easy splits -nnoremap <leader>h <C-w>h -nnoremap <leader>j <C-w>j -nnoremap <leader>k <C-w>k -nnoremap <leader>l <C-w>l -nnoremap <silent> <Esc><Esc> :nohlsearch<CR> -set splitright splitbelow - -" easy write -nmap <leader>w :w!<CR> -nmap <leader>W :w!<CR> - - diff --git a/dot_config/pulse/default.pa b/dot_config/pulse/default.pa deleted file mode 100644 index 8a946db..0000000 --- a/dot_config/pulse/default.pa +++ /dev/null @@ -1,2 +0,0 @@ -.include /etc/pulse/default.pa -load-module module-native-protocol-unix socket=/tmp/pulse-socket diff --git a/dot_config/sx/executable_sxrc b/dot_config/sx/executable_sxrc deleted file mode 100644 index 8ec06a8..0000000 --- a/dot_config/sx/executable_sxrc +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -dunst & -while true; do - exec dbus-run-session dwm 2> /tmp/dwm.log -done diff --git a/dot_config/user-dirs.dirs b/dot_config/user-dirs.dirs deleted file mode 100644 index 3d2b632..0000000 --- a/dot_config/user-dirs.dirs +++ /dev/null @@ -1,17 +0,0 @@ -# Default settings for user directories -# -# The values are relative pathnames from the home directory and -# will be translated on a per-path-element basis into the users locale -DESKTOP=~/docs -DOWNLOAD=~/dl -TEMPLATES=~/docs -PUBLICSHARE=~/docs -DOCUMENTS=~/docs -MUSIC=~/media/music -PICTURES=~/media/img -VIDEOS=~/media/video -# Another alternative is: -#MUSIC=Documents/Music -#PICTURES=Documents/Pictures -#VIDEOS=Documents/Videos - diff --git a/dot_local/bin/executable_0 b/dot_local/bin/executable_0 deleted file mode 100644 index 95cab51..0000000 --- a/dot_local/bin/executable_0 +++ /dev/null @@ -1,174 +0,0 @@ -#!/bin/sh - -# init variables -version="v2022.11.03" -ENDPOINT="https://0.vern.cc" -flag_options=":hvcfe:s:" -long_flag_options="help,version,color,file,extension:,server:" -flag_version=0 -flag_help=0 -flag_file=0 -flag_colors=0 -flag_ext=0 -data="" -EXT="" - -# help message available via func -show_help() { - cat > /dev/stdout << END -pb [options] filename -or -(command-with-stdout) | pb - -Uploads a file or data to the tilde 0x0 paste bin - -OPTIONAL FLAGS: - -h | --help) Show this help - -v | --version) Show current version number - -f | --file) Explicitly interpret stdin as filename - -c | --color) Pretty color output - -s | --server server_address) Use alternative pastebin server address - -e | --extension bin_extension) Specify file extension used in the upload -END -} - -show_usage() { - cat > /dev/stdout << END -usage: pb [-hfvcux] [-s server_address] filename -END -} - -# helper for program exit, supports error codes and messages -die () { - msg="$1" - code="$2" - # exit code defaults to 1 - if printf "%s" "${code}" | grep -q '^[0-9]+$'; then - code=1 - fi - # output message to stdout or stderr based on code - if [ -n "${msg}" ]; then - if [ "${code}" -eq 0 ]; then - printf "%s\\n" "${msg}" - else - printf "%s%s%s\\n" "$ERROR" "${msg}" "$RESET" >&2 - fi - fi - exit "${code}" -} - -# attempt to parse options or die -if ! PARSED_ARGUMENTS=$(getopt -a -n pb -o ${flag_options} --long ${long_flag_options} -- "$@"); then - printf "pb: unknown option\\n" - show_usage - exit 2 -fi - -# For debugging: echo "PARSED_ARGUMENTS is $PARSED_ARGUMENTS" -eval set -- "$PARSED_ARGUMENTS" -while : -do - case "$1" in - -h | --help) flag_help=1 ; shift ;; - -v | --version) flag_version=1 ; shift ;; - -c | --color) flag_color=1 ; shift ;; - -f | --file) flag_file=1 ; shift ;; - -e | --extension) flag_ext=1; EXT="$2" ; shift 2 ;; - -s | --server) ENDPOINT="$2" ; shift 2 ;; - --) shift; break ;; - *) echo "Unexpected option: $1 - this should not happen." - show_usage ; die 3 ;; - esac -done - -# display current version -if [ ${flag_version} -gt 0 ]; then - printf "%s\\n" "${version}" - die "" 0 -fi - -# display help -if [ ${flag_help} -gt 0 ]; then - show_help - die "" 0 -fi - -# is not interactive shell, use stdin -if [ -t 0 ]; then - flag_file=1 -else - if [ ${flag_ext} -gt 0 ]; then - # short-circuit stdin access to ensure binary data is transferred to curl - curl -sF"file=@-;filename=null.${EXT}" "${ENDPOINT}" < /dev/stdin - exit 0 - else - data="$(cat < /dev/stdin )" - fi -fi - -# if data variable is empty (not a pipe) use params as fallback -if [ -z "$data" ]; then - data="$*" -fi - -# Colors -if [ ${flag_colors} -gt 0 ]; then - SUCCESS=$(tput setaf 190) - ERROR=$(tput setaf 196) - RESET=$(tput sgr0) -else - SUCCESS="" - ERROR="" - RESET="" -fi - -if [ ${flag_file} -gt 0 ]; then - # file mode - if [ -z "${data}" ]; then - # if no data - # print error message - printf "%sProvide data to upload%s\\n" "$ERROR" "$RESET" - elif [ ! -f "${data}" ]; then - # file not found with name provided - # print error messagse - printf "%s%s%s\\tFile not found.%s\\n" "$RESET" "${data}" "$ERROR" "$RESET" - # attempt to split data string (multi-line?) and upload each string as file - for f in ${data}; do - # if there's nothing to parse, skip this loop - if [ "$f" = "$data" ]; then - break; - fi - # check if file exists - if [ -f "${f}" ]; then - if [ ${flag_ext} -gt 0 ]; then - # send file to endpoint masked with new extension - result=$(curl -sF"file=@${f};filename=null.${EXT}" "${ENDPOINT}") - else - # send file to endpoint - result=$(curl -sF"file=@${f}" "${ENDPOINT}") - fi - printf "%s%s%s\\n" "$SUCCESS" "$result" "$RESET" - else - # print error message - printf "%sFile not found.%s\\n" "$ERROR" "$RESET" - fi - done - else - # data available in file - # send file to endpoint - result=$(curl -sF"file=@${data}" "${ENDPOINT}") - printf "%s%s%s\\n" "$SUCCESS" "$result" "$RESET" - fi -else - # non-file mode - if [ -z "${data}" ]; then - # if no data - # print error message - printf "%sNo data found for upload. Please try again.%s\\n" "$ERROR" "$RESET" - else - # data available - # send data to endpoint - result=$(printf "%s" "${data}" | curl -sF"file=@-;filename=null.txt" "${ENDPOINT}") - printf "%s%s%s\\n" "$SUCCESS" "$result" "$RESET" - fi -fi diff --git a/dot_local/bin/executable_gg b/dot_local/bin/executable_gg deleted file mode 100644 index a8a2150..0000000 --- a/dot_local/bin/executable_gg +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -POSTDATE="$(date '+%Y-%m-%d %H:%M %:::z')\n\n" - -$EDITOR /tmp/gemlog-post.txt && sed -i "2s\`^.*$\`\n## $POSTDATE$(cat /tmp/gemlog-post.txt)\n\n-----\n\`" "$HOME/docs/src/gmi/tinylog.gmi" -cd "$HOME"/docs/src/gmi/; git diff diff --git a/dot_local/bin/executable_mail b/dot_local/bin/executable_mail deleted file mode 100644 index d06c220..0000000 --- a/dot_local/bin/executable_mail +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -claws-mail --alternate-config-dir $XDG_DATA_HOME/claws-mail - diff --git a/dot_local/bin/executable_s b/dot_local/bin/executable_s deleted file mode 100644 index e222ea7..0000000 --- a/dot_local/bin/executable_s +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash -case $1 in - cf) - filename="$(date '+%d_%m_%Y-%H_%M_%s').png" - maim -s > "$HOME/media/screenshots/$filename" - xclip -sel clipb -t image/png "$HOME/media/screenshots/$filename" - ;; - cl) - filename="$(date '+%d_%m_%Y-%H_%M_%s').png" - maim -s > $HOME/media/screenshots/$filename - curl -F"file=@$HOME/media/screenshots/$filename" -Fsecret= "https://0.vern.cc/" | xclip -sel clipb - ;; - wf) - filename="$(date '+%d_%m_%Y-%H_%M_%s').png" - maim -i $(xdotool getactivewindow) > "$HOME/media/screenshots/$filename" - xclip -sel clipb -t image/png "$HOME/media/screenshots/$filename" - ;; - wl) - filename="$(date '+%d_%m_%Y-%H_%M_%s').png" - maim -i $(xdotool getactivewindow) > $HOME/media/screenshots/$filename - curl -F"file=@$HOME/media/screenshots/$filename" -Fsecret= "https://0.vern.cc/" | xclip -sel clipb - ;; - ff) - filename="$(date '+%d_%m_%Y-%H_%M_%s').png" - maim > "$HOME/media/screenshots/$filename" - xclip -sel clipb -t image/png "$HOME/media/screenshots/$filename" - ;; - fl) - filename="$(date '+%d_%m_%Y-%H_%M_%s').png" - maim > $HOME/media/screenshots/$filename - curl -F"file=@$HOME/media/screenshots/$filename" -Fsecret= "https://0.vern.cc/" | xclip -sel clipb - ;; - *) - echo "Usage info:" - echo - echo "s cf - Takes a screenshot from a region and then copies the file to the clipboard selection" - echo "s cl - Takes a screenshot from a region and then uploads it to 0.vern.cc, and automatically copies the link" - echo "s wf - Takes a screenshot from the active window and then copies the file to the clipboard selection" - echo "s wl - Takes a screenshot from the active window and then uploads it to 0.vern.cc, and automatically copies the link" - echo "s ff - Takes a screenshot of the full screen and then copies the file to the clipboard selection" - echo "s fl - Takes a screenshot of the full screen and then uploads it to 0.vern.cc, and automatically copies the link" - echo - echo "Notice: all of these commands output it's screenshots to \`~/media/screenshots/\`." -esac diff --git a/dot_local/bin/executable_screenshotit b/dot_local/bin/executable_screenshotit deleted file mode 100644 index 5808b4a..0000000 --- a/dot_local/bin/executable_screenshotit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -printf "Fullscreen, copy file (ff)\nFullscreen, copy link (fl)\nWindow, copy file (wf)\nWindow, copy link (wl)\nRegion, copy file (rf)\nRegion, copy link (rl)" | dmenu -l 6 |\ - sed "s/Fullscreen/f/;s/Window/w/;s/Region/c/;s/copy file/f/;s/copy link/l/;s/, //" | xargs "s" diff --git a/dot_local/bin/executable_shorten-clipb b/dot_local/bin/executable_shorten-clipb deleted file mode 100644 index c17abab..0000000 --- a/dot_local/bin/executable_shorten-clipb +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -curl -F"shorten=$(xclip -o)" -Fsecret= https://0.vern.cc/ | xclip -sel clipb diff --git a/dot_local/bin/executable_wal b/dot_local/bin/executable_wal deleted file mode 100644 index 628f81f..0000000 --- a/dot_local/bin/executable_wal +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -WALLPAPER_DIR="$HOME/media/wallpapers" - -case $1 in - r) - find $WALLPAPER_DIR -iname "*.jpg" | shuf -n 1 | xargs xwallpaper --stretch - ;; - *) - echo "Usage info:" - ;; -esac - diff --git a/dot_local/bin/executable_xb b/dot_local/bin/executable_xb deleted file mode 100644 index c83e670..0000000 --- a/dot_local/bin/executable_xb +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -case $1 in - install | i | add) - sudo xbps-install ${@:2} - ;; - remove | r | del | delete) - sudo xbps-remove ${@:2} - ;; - query | q | search | s) - sudo xbps-query ${@:2} - ;; - upgrade | u) - sudo xbps-install -Su - ;; - locate | l | find | f) - xlocate ${@:2} - ;; - *) - echo "Usage info:" - echo - echo "xb i - Calls 'sudo xbps-install' with the following arguments" - echo "xb q - Calls 'sudo xbps-query' with the following arguments" - echo "xb r - Calls 'sudo xbps-remove' with the following arguments" - echo "xb u - Upgrades the system packages with 'sudo xbps-install -Su'" - echo "xb l - Pass following arguments to xlocate" - echo "xb h - Displays help" - ;; -esac diff --git a/dot_profile b/dot_profile deleted file mode 100644 index 292f80e..0000000 --- a/dot_profile +++ /dev/null @@ -1,18 +0,0 @@ -# vim: ft=sh - -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_DATA_HOME="$HOME/.local/share" -export XDG_STATE_HOME="$HOME/.local/state" - -export PATH="$PATH:$HOME/.local/bin:$XDG_DATA_HOME/bin" - -# remove some junk from the homedir -export GNUPGHOME="$XDG_DATA_HOME/gnupg" -export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" -export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" -export HISTFILE="$XDG_STATE_HOME/bash/history" - -export GOPATH="$XDG_DATA_HOME/go" -export GOMODCACHE="$XDG_CACHE_HOME/go/mod" - -[[ -z $(pidof Xorg) ]] && [[ $(tty) = "/dev/tty1" ]] && sx |