From 4c9f9bcd945919ec678d489fd6e8532d24f7c15e Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 29 Mar 2020 19:12:00 +0200 Subject: [PATCH] Cleaned up dotfiles at /home/alrayyes where possible --- README.org | 9 +- bspwm/{.xinitrc => .config/X11/xinitrc} | 0 dmenu/.local/bin/pass-dmenu | 2 +- fish/.config/omf/init.fish | 29 +- .../fontconfig/fonts.conf} | 0 .../git/gitignore_global} | 0 gnupg/.gnupg/gpg-agent.conf | 2 - gnupg/.gnupg/gpg.conf | 3 - gnupg/.gnupg/scdaemon.conf | 3 - gnupg/.pam_environment | 2 - gtk/.config/gtk-3.0/gtk.css | 8 - gtk/.config/gtk-3.0/settings.ini | 17 - gtk/.gtkrc-2.0 | 19 - install | 8 +- ncmpcpp/.config/ncmpcpp/config | 544 ++++++++++++++++++ .../.config/mutt/accounts/1-ryankes.muttrc | 6 +- neomutt/.config/mutt/accounts/2-gmail.muttrc | 6 +- .../mutt/accounts/3-andthensome.muttrc | 6 +- neomutt/.config/mutt/muttrc | 12 +- neomutt/.config/systemd/user/mailsync.service | 2 +- neomutt/.local/bin/mailsync | 4 +- neomutt/.mbsyncrc | 136 ----- npm/.config/npm/npmrc | 4 + polybar/.config/polybar/config | 2 +- tmux/{.tmux.conf => .config/tmux/tmux.conf} | 2 +- 25 files changed, 607 insertions(+), 219 deletions(-) rename bspwm/{.xinitrc => .config/X11/xinitrc} (100%) rename fonts/{.fonts.conf => .config/fontconfig/fonts.conf} (100%) rename git/{.gitignore_global => .config/git/gitignore_global} (100%) delete mode 100644 gnupg/.gnupg/gpg-agent.conf delete mode 100644 gnupg/.gnupg/gpg.conf delete mode 100644 gnupg/.gnupg/scdaemon.conf delete mode 100644 gnupg/.pam_environment delete mode 100644 gtk/.config/gtk-3.0/gtk.css delete mode 100644 gtk/.config/gtk-3.0/settings.ini delete mode 100644 gtk/.gtkrc-2.0 create mode 100644 ncmpcpp/.config/ncmpcpp/config delete mode 100644 neomutt/.mbsyncrc create mode 100644 npm/.config/npm/npmrc rename tmux/{.tmux.conf => .config/tmux/tmux.conf} (98%) diff --git a/README.org b/README.org index 93b206e..fb8a264 100644 --- a/README.org +++ b/README.org @@ -11,7 +11,7 @@ - [[#applications][Applications]] - [[#fonts][Fonts]] - [[#lsp-backends][LSP Backends]] -- [[#configured-applications][Configured Applications]] +- [[#configured-applications-also-installed-by-script][Configured Applications (also installed by script)]] - [[#configured-locales][Configured Locales]] - [[#fish][Fish]] - [[#theme][Theme]] @@ -50,8 +50,10 @@ A repository of my personal configuration files. - [[https://github.com/caffeine-ng/caffeine-ng][caffeine-ng]] - [[https://the.exa.website/][exa]] - [[https://github.com/junegunn/fzf][fzf]] +- [[https://gnupg.org/][gnupg]] - [[https://golang.org/][golang]] - [[https://imagemagick.org/index.php][ImageMagick]] +- [[http://isync.sourceforge.net/mbsync.html][isync]] - [[https://github.com/canonical/lightdm][LightDM]] - [[https://github.com/internalfx/mailcap][mailcap]] - [[https://mpv.io/][mpv]] @@ -82,7 +84,7 @@ A repository of my personal configuration files. - [[https://github.com/vscode-langservers/vscode-html-languageserver][vscode-html-languageserver]] - [[https://github.com/bmewburn/vscode-intelephense][vscode-intelephense]] -* Configured Applications +* Configured Applications (also installed by script) - [[https://github.com/alacritty/][alacritty]] - [[https://github.com/baskerville/bspwm][bspwm]] - [[https://github.com/xgi/castero][castero]] @@ -90,11 +92,10 @@ A repository of my personal configuration files. - [[https://firejail.wordpress.com/][firejail]] - [[https://fishshell.com/][fish]] - [[https://git-scm.com/][git]] -- [[https://gnupg.org/][gnupg]] -- [[https://www.gtk.org/][gtk]] - [[https://github.com/gokcehan/lf][lf]] - [[https://github.com/phuhl/linux_notification_center][Lintux Notification Center]] - [[https://www.musicpd.org/][mpd]] +- [[https://rybczak.net/ncmpcpp/][ncmpcpp]] - [[https://neomutt.org/][neomutt]] - [[https://neovim.io/][neovim]] - [[https://github.com/yshui/picom][picom]] diff --git a/bspwm/.xinitrc b/bspwm/.config/X11/xinitrc similarity index 100% rename from bspwm/.xinitrc rename to bspwm/.config/X11/xinitrc diff --git a/dmenu/.local/bin/pass-dmenu b/dmenu/.local/bin/pass-dmenu index 064b5a6..4f07ebd 100755 --- a/dmenu/.local/bin/pass-dmenu +++ b/dmenu/.local/bin/pass-dmenu @@ -1,4 +1,4 @@ #!/usr/bin/env fish . ~/.cache/wal/colors.fish -passmenu -p Password: -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" +PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR passmenu -p Password: -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" diff --git a/fish/.config/omf/init.fish b/fish/.config/omf/init.fish index f6d72ba..4d92d97 100644 --- a/fish/.config/omf/init.fish +++ b/fish/.config/omf/init.fish @@ -61,8 +61,20 @@ set -g EDITOR "nvim" # Enable password store extensions set -g PASSWORD_STORE_ENABLE_EXTENSIONS "true" +# Make sure pass uses the proper directory +set -g PASSWORD_STORE_DIR ~/.local/share/pass + # Use alternative muhome -set -g MU_HOME "/home/alrayyes/.cache/mu" +set -g MU_HOME ~/.cache/mu + +# Load xinit from the proper directory +set -g XINITRC ~/X11/xinitrc + +# Make sure rust uses the proper directory +set -g RUSTUP_HOME ~/.local/share/rustup + +# Set custom nprmrc path +set -g NPM_CONFIG_USERCONFIG ~/.config/npm/npmrc # bobthefish set -g theme_nerd_fonts yes @@ -71,6 +83,9 @@ set -g theme_color_scheme gruvbox # sudope set -g sudope_sequence \e\e +# Set tmux tmpdir to proper directory +set -g TMUX_TMPDIR "$XDG_RUNTIME_DIR" + # nvim alias alias v="nvim" alias sv="sudo nvim" @@ -82,6 +97,18 @@ alias l="exa -al" # vifm alias alias vifm="vifmrun" +# wget alias +alias wget='wget --hsts-file="~/.config/wget-hsts"' + +# weechat +alias weechat="weechat -d ~/.config/weechat" + +# tmux +alias tmux="tmux -f ~/.config/tmux/tmux.conf" + +# pass +alias pass="PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR /usr/bin/pass" + # pacman aliases alias pacrmorphans="sudo pacman -Rs (pacman -Qtdq)" alias pacrem="sudo pacman -Rns" diff --git a/fonts/.fonts.conf b/fonts/.config/fontconfig/fonts.conf similarity index 100% rename from fonts/.fonts.conf rename to fonts/.config/fontconfig/fonts.conf diff --git a/git/.gitignore_global b/git/.config/git/gitignore_global similarity index 100% rename from git/.gitignore_global rename to git/.config/git/gitignore_global diff --git a/gnupg/.gnupg/gpg-agent.conf b/gnupg/.gnupg/gpg-agent.conf deleted file mode 100644 index 81d3a50..0000000 --- a/gnupg/.gnupg/gpg-agent.conf +++ /dev/null @@ -1,2 +0,0 @@ -pinentry-program /usr/bin/pinentry-dmenu -enable-ssh-support diff --git a/gnupg/.gnupg/gpg.conf b/gnupg/.gnupg/gpg.conf deleted file mode 100644 index cda3656..0000000 --- a/gnupg/.gnupg/gpg.conf +++ /dev/null @@ -1,3 +0,0 @@ -no-emit-version -default-key 4C1B5348 -use-agent diff --git a/gnupg/.gnupg/scdaemon.conf b/gnupg/.gnupg/scdaemon.conf deleted file mode 100644 index e429ba2..0000000 --- a/gnupg/.gnupg/scdaemon.conf +++ /dev/null @@ -1,3 +0,0 @@ -reader-port "Yubico Yubikey NEO OTP+CCID 01 00" -log-file /tmp/scdaemon.log -debug-level guru diff --git a/gnupg/.pam_environment b/gnupg/.pam_environment deleted file mode 100644 index b55fba7..0000000 --- a/gnupg/.pam_environment +++ /dev/null @@ -1,2 +0,0 @@ -SSH_AGENT_PID DEFAULT= -SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh" diff --git a/gtk/.config/gtk-3.0/gtk.css b/gtk/.config/gtk-3.0/gtk.css deleted file mode 100644 index b1e003d..0000000 --- a/gtk/.config/gtk-3.0/gtk.css +++ /dev/null @@ -1,8 +0,0 @@ -.deadd-noti-center { - font-family: JetBrains Mono Medium; -} -image.deadd-noti-center.notification.image { - margin-left: 1em; - margin-bottom: 1em; - margin-top: 1em; -} diff --git a/gtk/.config/gtk-3.0/settings.ini b/gtk/.config/gtk-3.0/settings.ini deleted file mode 100644 index 8570c42..0000000 --- a/gtk/.config/gtk-3.0/settings.ini +++ /dev/null @@ -1,17 +0,0 @@ -[Settings] -gtk-application-prefer-dark-theme=1 -gtk-theme-name=Adwaita-dark -gtk-icon-theme-name=Papirus-Dark -gtk-font-name=Cantarell Thin 11 -gtk-cursor-theme-name=Adwaita -gtk-cursor-theme-size=0 -gtk-toolbar-style=GTK_TOOLBAR_BOTH -gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=1 -gtk-enable-input-feedback-sounds=1 -gtk-xft-antialias=0 -gtk-xft-hinting=1 -gtk-xft-hintstyle=hintslight -gtk-xft-rgba=rgb diff --git a/gtk/.gtkrc-2.0 b/gtk/.gtkrc-2.0 deleted file mode 100644 index b88276d..0000000 --- a/gtk/.gtkrc-2.0 +++ /dev/null @@ -1,19 +0,0 @@ -# DO NOT EDIT! This file will be overwritten by LXAppearance. -# Any customization should be done in ~/.gtkrc-2.0.mine instead. - -include "/home/alrayyes/.gtkrc-2.0.mine" -gtk-theme-name="Adwaita-dark" -gtk-icon-theme-name="Papirus-Dark" -gtk-font-name="Cantarell Thin 11" -gtk-cursor-theme-name="Adwaita" -gtk-cursor-theme-size=0 -gtk-toolbar-style=GTK_TOOLBAR_BOTH -gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=1 -gtk-enable-input-feedback-sounds=1 -gtk-xft-antialias=0 -gtk-xft-hinting=1 -gtk-xft-hintstyle="hintslight" -gtk-xft-rgba="rgb" diff --git a/install b/install index ea1132c..354095e 100755 --- a/install +++ b/install @@ -1,10 +1,10 @@ #!/usr/bin/env fish # Prerequisite & inistalled apps -set prerequisiteApps bat broot brave caffeine-ng exa fzf go imagemagick lightdm-gtk-greeter mailcap mpv deadd-notification-center-bin npm pamixer pfetch pulseaudio pulsemixer python pywal stow sxiv tldr udisks xwallpaper zathura +set prerequisiteApps bat broot brave caffeine-ng exa fzf go isync imagemagick lightdm-gtk-greeter mailcap mpv deadd-notification-center-bin npm pamixer pfetch pulseaudio pulsemixer python pywal stow sxiv tldr udisks xwallpaper zathura set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server vscode-css-languageserver vscode-html-languageserver nodejs-intelephense -set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd neomutt neovim picom redshift sxhkd tmux tuir weechat +set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd ncmpcpp neomutt neovim picom redshift sxhkd tmux tuir weechat set locales aspell-en hunspell-en_GB hunspell-en_US hunspell-nl function mkdir_if_not_exist @@ -60,12 +60,14 @@ mkdir_if_not_exist ~/.cache/mpd mkdir_if_not_exist ~/.config/alacritty mkdir_if_not_exist ~/.config/nvim mkdir_if_not_exist ~/.config/fish +mkdir_if_not_exist ~/.config/git mkdir_if_not_exist ~/.config/omf mkdir_if_not_exist ~/.config/polybar/bin mkdir_if_not_exist ~/.config/mpd mkdir_if_not_exist ~/.config/wal +mkdir_if_not_exist ~/.config/weechat mkdir_if_not_exist ~/.config/X11 -mkdir_if_not_exist ~/.weechat +mkdir_if_not_exist ~/.gnupg for d in (find -- */ -maxdepth 0 -type d | cut -f1 -d '/') echo "Linking $d..." diff --git a/ncmpcpp/.config/ncmpcpp/config b/ncmpcpp/.config/ncmpcpp/config new file mode 100644 index 0000000..7358e79 --- /dev/null +++ b/ncmpcpp/.config/ncmpcpp/config @@ -0,0 +1,544 @@ +############################################################################## +## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ## +## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences. ## +############################################################################## +# +##### directories ###### +## +## Directory for storing ncmpcpp related files. Changing it is useful if you +## want to store everything somewhere else and provide command line setting for +## alternative location to config file which defines that while launching +## ncmpcpp. +## +# +ncmpcpp_directory = ~/.cache/ncmpcpp +# +## +## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other +## MPD clients (eg. ncmpc) also use that location. +## +# +lyrics_directory = ~/.cache/lyrics +# +##### connection settings ##### +# +#mpd_host = localhost +# +#mpd_port = 6600 +# +#mpd_connection_timeout = 5 +# +## Needed for tag editor and file operations to work. +## +#mpd_music_dir = ~/music +# +#mpd_crossfade_time = 5 +# +##### music visualizer ##### +## +## Note: In order to make music visualizer work you'll need to use mpd fifo +## output, whose format parameter has to be set to 44100:16:1 for mono +## visualization or 44100:16:2 for stereo visualization. Example configuration +## (it has to be put into mpd.conf): +## +## audio_output { +## type "fifo" +## name "Visualizer feed" +## path "/tmp/mpd.fifo" +## format "44100:16:2" +## } +## +# +#visualizer_fifo_path = /tmp/mpd.fifo +# +## +## Note: Below parameter is needed for ncmpcpp to determine which output +## provides data for visualizer and thus allow syncing between visualization and +## sound as currently there are some problems with it. +## +# +#visualizer_output_name = Visualizer feed +# +## +## If you set format to 44100:16:2, make it 'yes'. +## +#visualizer_in_stereo = yes +# +## +## Note: Below parameter defines how often ncmpcpp has to "synchronize" +## visualizer and audio outputs. 30 seconds is optimal value, but if you +## experience synchronization problems, set it to lower value. Keep in mind +## that sane values start with >=10. +## +# +#visualizer_sync_interval = 30 +# +## +## Note: To enable spectrum frequency visualization you need to compile ncmpcpp +## with fftw3 support. +## +# +## Available values: spectrum, wave, wave_filled, ellipse. +## +#visualizer_type = wave +# +#visualizer_look = ●▮ +# +#visualizer_color = blue, cyan, green, yellow, magenta, red +# +## Alternative subset of 256 colors for terminals that support it. +## +#visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161 +# +##### system encoding ##### +## +## ncmpcpp should detect your charset encoding but if it failed to do so, you +## can specify charset encoding you are using here. +## +## Note: You can see whether your ncmpcpp build supports charset detection by +## checking output of `ncmpcpp --version`. +## +## Note: Since MPD uses UTF-8 by default, setting this option makes sense only +## if your encoding is different. +## +# +#system_encoding = "" +# +##### delays ##### +# +## Time of inactivity (in seconds) after playlist highlighting will be disabled +## (0 = always on). +## +#playlist_disable_highlight_delay = 5 +# +## Defines how long messages are supposed to be visible. +## +#message_delay_time = 5 +# +##### song format ##### +## +## For a song format you can use: +## +## %l - length +## %f - filename +## %D - directory +## %a - artist +## %A - album artist +## %t - title +## %b - album +## %y - date +## %n - track number (01/12 -> 01) +## %N - full track info (01/12 -> 01/12) +## %g - genre +## %c - composer +## %p - performer +## %d - disc +## %C - comment +## %P - priority +## $R - begin right alignment +## +## If you want to make sure that a part of the format is displayed only when +## certain tags are present, you can archieve it by grouping them with brackets, +## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are +## present or '' otherwise. It is also possible to define a list of +## alternatives by providing several groups and separating them with '|', +## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is +## not present. +## +## Note: If you want to set limit on maximal length of a tag, just put the +## appropriate number between % and character that defines tag type, e.g. to +## make album take max. 20 terminal cells, use '%20b'. +## +## In addition, formats support markers used for text attributes. They are +## followed by character '$'. After that you can put: +## +## - 0 - default window color (discards all other colors) +## - 1 - black +## - 2 - red +## - 3 - green +## - 4 - yellow +## - 5 - blue +## - 6 - magenta +## - 7 - cyan +## - 8 - white +## - 9 - end of current color +## - b - bold text +## - u - underline text +## - r - reverse colors +## - a - use alternative character set +## +## If you don't want to use a non-color attribute anymore, just put it again, +## but this time insert character '/' between '$' and attribute character, +## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with +## reversed colors. +## +## If you want to use 256 colors and/or background colors in formats (the naming +## scheme is described below in section about color definitions), it can be done +## with the syntax $(COLOR), e.g. to set the artist tag to one of the +## non-standard colors and make it have yellow background, you need to write +## $(197_yellow)%a$(end). Note that for standard colors this is interchangable +## with attributes listed above. +## +## Note: colors can be nested. +## +# +#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9} +# +#song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f} +# +#song_library_format = {%n - }{%t}|{%f} +# +#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b +# +#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} +# +#current_item_prefix = $(yellow)$r +# +#current_item_suffix = $/r$(end) +# +#current_item_inactive_column_prefix = $(white)$r +# +#current_item_inactive_column_suffix = $/r$(end) +# +#now_playing_prefix = $b +# +#now_playing_suffix = $/b +# +#browser_playlist_prefix = "$2playlist$9 " +# +#selected_item_prefix = $6 +# +#selected_item_suffix = $9 +# +#modified_item_prefix = $3> $9 +# +## +## Note: attributes are not supported for the following variables. +## +#song_window_title_format = {%a - }{%t}|{%f} +## +## Note: Below variables are used for sorting songs in browser. The sort mode +## determines how songs are sorted, and can be used in combination with a sort +## format to specify a custom sorting format. Available values for +## browser_sort_mode are "name", "mtime", "format" and "noop". +## +# +#browser_sort_mode = name +# +#browser_sort_format = {%a - }{%t}|{%f} {(%l)} +# +##### columns settings ##### +## +## syntax of song columns list format is "column column etc." +## +## - syntax for each column is: +## +## (width of the column)[color of the column]{displayed tag} +## +## Note: Width is by default in %, if you want a column to have fixed size, add +## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of +## screen (so the real width will depend on actual screen size), whereas +## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen +## is. +## +## - color is optional (if you want the default one, leave the field empty). +## +## Note: You can give a column additional attributes by putting appropriate +## character after displayed tag character. Available attributes are: +## +## - r - column will be right aligned +## - E - if tag is empty, empty tag marker won't be displayed +## +## You can also: +## +## - give a column custom name by putting it after attributes, separated with +## character ':', e.g. {lr:Length} gives you right aligned column of lengths +## named "Length". +## +## - define sequence of tags, that have to be displayed in case predecessor is +## empty in a way similar to the one in classic song format, i.e. using '|' +## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to +## display artist tag and then composer and performer if previous ones are not +## available. +## +# +#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l} +# +##### various settings ##### +# +## +## Note: Custom command that will be executed each time song changes. Useful for +## notifications etc. +## +#execute_on_song_change = "" +# +## +## Note: Custom command that will be executed each time player state +## changes. The environment variable MPD_PLAYER_STATE is set to the current +## state (either unknown, play, pause, or stop) for its duration. +## +# +#execute_on_player_state_change = "" +# +#playlist_show_mpd_host = no +# +#playlist_show_remaining_time = no +# +#playlist_shorten_total_times = no +# +#playlist_separate_albums = no +# +## +## Note: Possible display modes: classic, columns. +## +#playlist_display_mode = columns +# +#browser_display_mode = classic +# +#search_engine_display_mode = classic +# +#playlist_editor_display_mode = classic +# +#discard_colors_if_item_is_selected = yes +# +#show_duplicate_tags = yes +# +#incremental_seeking = yes +# +#seek_time = 1 +# +#volume_change_step = 2 +# +#autocenter_mode = no +# +#centered_cursor = no +# +## +## Note: You can specify third character which will be used to build 'empty' +## part of progressbar. +## +#progressbar_look = => +# +## Available values: database, playlist. +## +#default_place_to_search_in = database +# +## Available values: classic, alternative. +## +#user_interface = classic +# +#data_fetching_delay = yes +# +## Available values: artist, album_artist, date, genre, composer, performer. +## +#media_library_primary_tag = artist +# +#media_library_albums_split_by_date = yes +# +## Available values: wrapped, normal. +## +#default_find_mode = wrapped +# +#default_tag_editor_pattern = %n - %t +# +#header_visibility = yes +# +#statusbar_visibility = yes +# +#titles_visibility = yes +# +#header_text_scrolling = yes +# +#cyclic_scrolling = no +# +#lines_scrolled = 2 +# +#lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet +# +#follow_now_playing_lyrics = no +# +#fetch_lyrics_for_current_song_in_background = no +# +#store_lyrics_in_song_dir = no +# +#generate_win32_compatible_filenames = yes +# +#allow_for_physical_item_deletion = no +# +## +## Note: If you set this variable, ncmpcpp will try to get info from last.fm in +## language you set and if it fails, it will fall back to english. Otherwise it +## will use english the first time. +## +## Note: Language has to be expressed as an ISO 639 alpha-2 code. +## +#lastfm_preferred_language = en +# +#space_add_mode = add_remove +# +#show_hidden_files_in_local_browser = no +# +## +## How shall screen switcher work? +## +## - "previous" - switch between the current and previous screen. +## - "screen1,...,screenN" - switch between given sequence of screens. +## +## Screens available for use: help, playlist, browser, search_engine, +## media_library, playlist_editor, tag_editor, outputs, visualizer, clock, +## lyrics, last_fm. +## +#screen_switcher_mode = playlist, browser +# +## +## Note: You can define startup screen by choosing screen from the list above. +## +#startup_screen = playlist +# +## +## Note: You can define startup slave screen by choosing screen from the list +## above or an empty value for no slave screen. +## +#startup_slave_screen = "" +# +#startup_slave_screen_focus = no +# +## +## Default width of locked screen (in %). Acceptable values are from 20 to 80. +## +# +#locked_screen_width_part = 50 +# +#ask_for_locked_screen_width_part = yes +# +#jump_to_now_playing_song_at_start = yes +# +#ask_before_clearing_playlists = yes +# +#clock_display_seconds = no +# +#display_volume_level = yes +# +#display_bitrate = no +# +#display_remaining_time = no +# +## Available values: none, basic, extended, perl. +## +#regular_expressions = perl +# +## +## Note: if below is enabled, ncmpcpp will ignore leading "The" word while +## sorting items in browser, tags in media library, etc. +## +#ignore_leading_the = no +# +## +## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and +## filtering lists. This takes an effect only if boost was compiled with ICU +## support. +## +#ignore_diacritics = no +# +#block_search_constraints_change_if_items_found = yes +# +#mouse_support = yes +# +#mouse_list_scroll_whole_page = yes +# +#empty_tag_marker = +# +#tags_separator = " | " +# +#tag_editor_extended_numeration = no +# +#media_library_sort_by_mtime = no +# +#enable_window_title = yes +# +## +## Note: You can choose default search mode for search engine. Available modes +## are: +## +## - 1 - use mpd built-in searching (no regexes, pattern matching) +## +## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but +## if your mpd is on a remote machine, downloading big database to process +## it can take a while +## +## - 3 - match only exact values (this mode uses mpd function for searching in +## database and local one for searching in current playlist) +## +# +#search_engine_default_search_mode = 1 +# +#external_editor = nano +# +## Note: set to yes if external editor is a console application. +## +#use_console_editor = yes +# +##### colors definitions ##### +## +## It is possible to set a background color by setting a color value +## "_", e.g. red_black will set foregound color to red +## and background color to black. +## +## In addition, for terminals that support 256 colors it is possible to set one +## of them by using a number in range [1, 256] instead of color name, +## e.g. numerical value corresponding to red_black is 2_1. To find out if the +## terminal supports 256 colors, run ncmpcpp and check out the bottom of the +## help screen for list of available colors and their numerical values. +## +## What is more, there are two special values for the background color: +## "transparent" and "current". The first one explicitly sets the background to +## be transparent, while the second one allows you to preserve current +## background color and change only the foreground one. It's used implicitly +## when background color is not specified. +## +## Moreover, it is possible to attach format information to selected color +## variables by appending to their end a colon followed by one or more format +## flags, e.g. black:b or red:ur. The following variables support this syntax: +## visualizer_color, color1, color2, empty_tag_color, volume_color, +## state_line_color, state_flags_color, progressbar_color, +## progressbar_elapsed_color, player_state_color, statusbar_time_color, +## alternative_ui_separator_color. +## +## Note: due to technical limitations of older ncurses version, if 256 colors +## are used there is a possibility that you'll be able to use only colors with +## transparent background. +# +#colors_enabled = yes +# +#empty_tag_color = cyan +# +#header_window_color = default +# +#volume_color = default +# +#state_line_color = default +# +#state_flags_color = default:b +# +#main_window_color = yellow +# +#color1 = white +# +#color2 = green +# +#progressbar_color = black:b +# +#progressbar_elapsed_color = green:b +# +#statusbar_color = default +# +#statusbar_time_color = default:b +# +#player_state_color = default:b +# +#alternative_ui_separator_color = black:b +# +#window_border_color = green +# +#active_window_border = red +# diff --git a/neomutt/.config/mutt/accounts/1-ryankes.muttrc b/neomutt/.config/mutt/accounts/1-ryankes.muttrc index d9ab351..c2e7ef9 100644 --- a/neomutt/.config/mutt/accounts/1-ryankes.muttrc +++ b/neomutt/.config/mutt/accounts/1-ryankes.muttrc @@ -4,9 +4,9 @@ set realname = "Ryan" set from = "ryan@ryankes.eu" set sendmail = "msmtp -a ryankes" alias me Ryan -set folder = "/home/alrayyes/.local/share/mail/ryankes" -set header_cache = /home/alrayyes/.cache/mutt/ryankes/headers -set message_cachedir = /home/alrayyes/.cache/mutt/ryankes/bodies +set folder = ~/.local/share/mail/ryankes +set header_cache = ~/.cache/mutt/ryankes/headers +set message_cachedir = ~/.cache/mutt/ryankes/bodies set mbox_type = Maildir bind index,pager gg noop diff --git a/neomutt/.config/mutt/accounts/2-gmail.muttrc b/neomutt/.config/mutt/accounts/2-gmail.muttrc index ed1c830..3e6ff82 100644 --- a/neomutt/.config/mutt/accounts/2-gmail.muttrc +++ b/neomutt/.config/mutt/accounts/2-gmail.muttrc @@ -4,9 +4,9 @@ set realname = "Ryan" set from = "alrayyes@gmail.com" set sendmail = "msmtp -a gmail" alias me Ryan -set folder = "/home/alrayyes/.local/share/mail/gmail" -set header_cache = /home/alrayyes/.cache/mutt/gmail/headers -set message_cachedir = /home/alrayyes/.cache/mutt/gmail/bodies +set folder = ~/.local/share/mail/gmail +set header_cache = ~/.cache/mutt/gmail/headers +set message_cachedir = ~/.cache/mutt/gmail/bodies set mbox_type = Maildir bind index,pager gg noop diff --git a/neomutt/.config/mutt/accounts/3-andthensome.muttrc b/neomutt/.config/mutt/accounts/3-andthensome.muttrc index f4c0d77..b628348 100644 --- a/neomutt/.config/mutt/accounts/3-andthensome.muttrc +++ b/neomutt/.config/mutt/accounts/3-andthensome.muttrc @@ -4,9 +4,9 @@ set realname = "Ryan Kes" set from = "ryan@andthensome.nl" set sendmail = "msmtp -a andthensome" alias me Ryan Kes -set folder = "/home/alrayyes/.local/share/mail/andthensome" -set header_cache = /home/alrayyes/.cache/mutt/andthensome/headers -set message_cachedir = /home/alrayyes/.cache/mutt/andthensome/bodies +set folder = ~/.local/share/mail/andthensome +set header_cache = ~/.cache/mutt/andthensome/headers +set message_cachedir = ~/.cache/mutt/andthensome/bodies set mbox_type = Maildir bind index,pager gg noop diff --git a/neomutt/.config/mutt/muttrc b/neomutt/.config/mutt/muttrc index 6bb8b69..062a1cb 100644 --- a/neomutt/.config/mutt/muttrc +++ b/neomutt/.config/mutt/muttrc @@ -80,9 +80,9 @@ bind index,pager \Cp sidebar-prev-new bind index,pager \Cn sidebar-next-new bind index,pager B sidebar-toggle-visible -source /home/alrayyes/.config/mutt/muttcol -source /home/alrayyes/.config/mutt/gpg.rc -source /home/alrayyes/.config/mutt/accounts/1-ryankes.muttrc -macro index,pager i1 'source /home/alrayyes/.config/mutt/accounts/1-ryankes.muttrc!;' "switch to ryan@ryankes.eu" # mw-autogenerated -macro index,pager i2 'source /home/alrayyes/.config/mutt/accounts/2-gmail.muttrc!;' "switch to alrayyes@gmail.com" # mw-autogenerated -macro index,pager i3 'source /home/alrayyes/.config/mutt/accounts/3-andthensome.muttrc!;' "switch to ryan@andthensome.nl" # mw-autogenerated +source ~/.config/mutt/muttcol +source ~/.config/mutt/gpg.rc +source ~/.config/mutt/accounts/1-ryankes.muttrc +macro index,pager i1 'source ~/.config/mutt/accounts/1-ryankes.muttrc!;' "switch to ryan@ryankes.eu" # mw-autogenerated +macro index,pager i2 'source ~/.config/mutt/accounts/2-gmail.muttrc!;' "switch to alrayyes@gmail.com" # mw-autogenerated +macro index,pager i3 'source ~/.config/mutt/accounts/3-andthensome.muttrc!;' "switch to ryan@andthensome.nl" # mw-autogenerated diff --git a/neomutt/.config/systemd/user/mailsync.service b/neomutt/.config/systemd/user/mailsync.service index a05bdf7..239b11f 100644 --- a/neomutt/.config/systemd/user/mailsync.service +++ b/neomutt/.config/systemd/user/mailsync.service @@ -3,4 +3,4 @@ Description=Mailbox synchronization service [Service] Type=oneshot -ExecStart=/home/alrayyes/.local/bin/mailsync +ExecStart=%h/.local/bin/mailsync diff --git a/neomutt/.local/bin/mailsync b/neomutt/.local/bin/mailsync index 4d3de5e..3afa567 100755 --- a/neomutt/.local/bin/mailsync +++ b/neomutt/.local/bin/mailsync @@ -13,14 +13,14 @@ set -x DISPLAY ":0.0" if count $argv >/dev/null set accounts $argv[1] else - set accounts (awk '/^Group/ {print $2}' "$HOME/.mbsyncrc") + set accounts (awk '/^Group/ {print $2}' "$HOME/.config/mbsync/mbsyncrc") end # Parallelize multiple accounts for account in $accounts # Check account for new mail. Notify if there is new content. set acc (echo "$account" | sed "s/.*\///") - mbsync "$acc" + mbsync -c ~/.config/mbsync/mbsyncrc "$acc" set new (find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "/tmp/.mailsynclastrun" 2> /dev/null) set newcount (echo "$new" | sed '/^\s*$/d' | wc -l) if [ $newcount -gt "0" ] diff --git a/neomutt/.mbsyncrc b/neomutt/.mbsyncrc deleted file mode 100644 index 10bf3b4..0000000 --- a/neomutt/.mbsyncrc +++ /dev/null @@ -1,136 +0,0 @@ -Create Both -Expunge Both -SyncState * - -IMAPStore ryankes-remote -Host imap.mailbox.org -Port 993 -User ryan@ryankes.eu -PassCmd "~/.local/bin/getpassword ryankes" -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -MaildirStore ryankes-local -Subfolders Verbatim -Path ~/.local/share/mail/ryankes/ -Inbox ~/.local/share/mail/ryankes/INBOX -Flatten . - -Channel ryankes-all -Master :ryankes-remote: -Slave :ryankes-local: -Patterns INBOX* Trash Drafts Sent Archive Archive/quicknet Spam -Sync All - -Group ryankes -Channel ryankes-all - -IMAPStore gmail-remote -Host imap.gmail.com -Port 993 -User alrayyes@gmail.com -PassCmd "~/.local/bin/getpassword gmail" -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -MaildirStore gmail-local -Subfolders Verbatim -Path ~/.local/share/mail/gmail/ -Inbox ~/.local/share/mail/gmail/INBOX -Flatten . - -Channel gmail-inbox -Master :gmail-remote: -Slave :gmail-local: -Patterns "INBOX" -Sync All - -Channel gmail-sent -Master :gmail-remote:"[Gmail]/Sent Mail" -Slave :gmail-local:Sent -Sync All - -Channel gmail-drafts -Master :gmail-remote:"[Gmail]/Drafts" -Slave :gmail-local:Drafts -Sync All - -Channel gmail-spam -Master :gmail-remote:"[Gmail]/Spam" -Slave :gmail-local:Spam -Sync All - -Channel gmail-trash -Master :gmail-remote:"[Gmail]/Trash" -Slave :gmail-local:Trash -Sync All - -Channel gmail-archive -Master :gmail-remote:"[Gmail]/All Mail" -Slave :gmail-local:Archive -Sync All - -# Get all the channels together into a group. -Group gmail -Channel gmail-inbox -Channel gmail-sent -Channel gmail-drafts -Channel gmail-spam -Channel gmail-trash -Channel gmail-archive -# End profile - -IMAPStore andthensome-remote -Host imap.gmail.com -Port 993 -User ryan@andthensome.nl -PassCmd "~/.local/bin/getpassword andthensome" -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -MaildirStore andthensome-local -Subfolders Verbatim -Path ~/.local/share/mail/andthensome/ -Inbox ~/.local/share/mail/andthensome/INBOX -Flatten . - -Channel andthensome-inbox -Master :andthensome-remote: -Slave :andthensome-local: -Patterns "INBOX" -Sync All - -Channel andthensome-sent -Master :andthensome-remote:"[Gmail]/Sent Mail" -Slave :andthensome-local:Sent -Sync All - -Channel andthensome-drafts -Master :andthensome-remote:"[Gmail]/Drafts" -Slave :andthensome-local:Drafts -Sync All - -Channel andthensome-spam -Master :andthensome-remote:"[Gmail]/Spam" -Slave :andthensome-local:Spam -Sync All - -Channel andthensome-trash -Master :andthensome-remote:"[Gmail]/Trash" -Slave :andthensome-local:Trash -Sync All - -Channel andthensome-archive -Master :andthensome-remote:"[Gmail]/All Mail" -Slave :andthensome-local:Archive -Sync All - -# Get all the channels together into a group. -Group andthensome -Channel andthensome-inbox -Channel andthensome-sent -Channel andthensome-drafts -Channel andthensome-spam -Channel andthensome-trash -Channel andthensome-archive -# End profile diff --git a/npm/.config/npm/npmrc b/npm/.config/npm/npmrc new file mode 100644 index 0000000..53d6bfc --- /dev/null +++ b/npm/.config/npm/npmrc @@ -0,0 +1,4 @@ +prefix=${HOME}/.local/share/npm +cache=${HOME}/.cache/npm +tmp=${XDG_RUNTIME_DIR}/npm +init-module=${HOME}/.config/npm/config/npm-init.js diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index b2217c1..15cf45a 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -305,7 +305,7 @@ label-warn-foreground = ${colors.alert} [module/github] type = internal/github -token = ${file:~/.github-access-token} +token = ${file:~/.local/share/github/github-access-token} empty-notificaitons = false interval = 300 diff --git a/tmux/.tmux.conf b/tmux/.config/tmux/tmux.conf similarity index 98% rename from tmux/.tmux.conf rename to tmux/.config/tmux/tmux.conf index 89f804d..0dee4c4 100644 --- a/tmux/.tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -20,7 +20,7 @@ set-option -g default-command fish # set -g @plugin 'git@bitbucket.com/user/plugin' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -run '~/.tmux/plugins/tpm/tpm' +run '~/.cache/tmux/plugins/tpm/tpm' ## COLORSCHEME: gruvbox dark set-option -g status "on"