diff options
| author | krolyxon <krolyxon@tutanota.com> | 2022-06-01 22:55:52 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2022-06-01 22:55:52 +0530 |
| commit | 723220028038a3c6e155259e28d07e867e2d45c9 (patch) | |
| tree | f07e13aaf23e820c6da71ec02466e5831502b0e2 /.config | |
first commit
Diffstat (limited to '.config')
26 files changed, 1128 insertions, 0 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..ff01e9b --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,132 @@ +# Window Customization +window: + #opacity: 0.95 + dimensions: + columns: 122 + lines: 50 + # padding: + # x: 10 + # y: 10 + dynamic_padding: true + decorations: none +scrolling: + history: 10000 + multiplier: 11 +window.dynamic_title: false + +env: + WINIT_X11_SCALE_FACTOR: "1.0" + +# Font configuration (changes require restart) +font: + # The normal (roman) font face to use. + normal: + family: Hack Nerd Font + # Style can be specified to pick a specific face. + style: Regular + + # The bold font face + bold: + family: Hack Nerd Font + # Style can be specified to pick a specific face. + style: Bold + + # The italic font face + italic: + family: Hack Nerd Font + # Style can be specified to pick a specific face. + style: italic + +colors: + # Default colors + primary: + background: '0x1e2127' + foreground: '0xabb2bf' + + # Bright and dim foreground colors + # + # The dimmed foreground color is calculated automatically if it is not present. + # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` + # is `false`, the normal foreground color will be used. + #dim_foreground: '0x9a9a9a' + bright_foreground: '0xe6efff' + + # Cursor colors + # + # Colors which should be used to draw the terminal cursor. If these are unset, + # the cursor color will be the inverse of the cell color. + #cursor: + # text: '0x000000' + # cursor: '0xffffff' + + # Normal colors + normal: + black: '0x1e2127' + red: '0xe06c75' + green: '0x98c379' + yellow: '0xd19a66' + blue: '0x61afef' + magenta: '0xc678dd' + cyan: '0x56b6c2' + white: '0x828791' + + # Bright colors + bright: + black: '0x5c6370' + red: '0xe06c75' + green: '0x98c379' + yellow: '0xd19a66' + blue: '0x61afef' + magenta: '0xc678dd' + cyan: '0x56b6c2' + white: '0xe6efff' + + # Dim colors + # + # If the dim colors are not set, they will be calculated automatically based + # on the `normal` colors. + dim: + black: '0x1e2127' + red: '0xe06c75' + green: '0x98c379' + yellow: '0xd19a66' + blue: '0x61afef' + magenta: '0xc678dd' + cyan: '0x56b6c2' + white: '0x828791' + + # Indexed Colors + # + # The indexed colors include all colors from 16 to 256. + # When these are not set, they're filled with sensible defaults. + #indexed_colors: + # - { index: 16, color: '0x000000' } + +# Extras +hide_cursor_when_typing: true + +cursor: + style: Block + #blinking: Always + #blink_interval: 750 + unfocused_hollow: true + + +key_bindings: + # (Windows, Linux, and BSD only) + - { key: V, mods: Control|Shift, action: Paste } + - { key: C, mods: Control|Shift, action: Copy } + - { key: Insert, mods: Shift, action: PasteSelection } + - { key: Key0, mods: Control, action: ResetFontSize } + - { key: Equals, mods: Control, action: IncreaseFontSize } + - { key: Plus, mods: Control, action: IncreaseFontSize } + - { key: Minus, mods: Control, action: DecreaseFontSize } + - { key: F11, mods: None, action: ToggleFullscreen } + - { key: Paste, mods: None, action: Paste } + - { key: Copy, mods: None, action: Copy } + - { key: L, mods: Control, action: ClearLogNotice } + - { key: L, mods: Control, chars: "\x0c" } + - { key: PageUp, mods: None, action: ScrollPageUp, mode: ~Alt } + - { key: PageDown, mods: None, action: ScrollPageDown, mode: ~Alt } + - { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt } + - { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt } diff --git a/.config/cava/config b/.config/cava/config new file mode 100644 index 0000000..77575bd --- /dev/null +++ b/.config/cava/config @@ -0,0 +1,168 @@ +## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting. + + +[general] + +# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 +mode = 0 + +# Accepts only non-negative values. +; framerate = 60 + +# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off +# new as of 0.6.0 autosens of low values (dynamic range) +# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 +; autosens = 1 +; overshoot = 20 + +# Manual sensitivity in %. If autosens is enabled, this will only be the initial value. +# 200 means double height. Accepts only non-negative values. +; sensitivity = 100 + +# The number of bars (0-200). 0 sets it to auto (fill up console). +# Bars' width and space between bars in number of characters. +; bars = 0 +; bar_width = 2 +; bar_spacing = 1 + + +# Lower and higher cutoff frequencies for lowest and highest bars +# the bandwidth of the visualizer. +# Note: there is a minimum total bandwidth of 43Mhz x number of bars. +# Cava will automatically increase the higher cutoff if a too low band is specified. +; lower_cutoff_freq = 50 +; higher_cutoff_freq = 10000 + + +# Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and +# only check for input once per second. Cava will wake up once input is detected. 0 = disable. +; sleep_timer = 0 + + +[input] + +# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem' +# Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with. +# +# All input methods uses the same config variable 'source' +# to define where it should get the audio. +# +# For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink +# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). +# +# For alsa 'source' will be the capture device. +# For fifo 'source' will be the path to fifo-file. +# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address +; method = pulse +; source = auto + +; method = alsa +; source = hw:Loopback,1 + +; method = fifo +; source = /tmp/mpd.fifo +; sample_rate = 44100 +; sample_bits = 16 + +; method = shmem +; source = /squeezelite-AA:BB:CC:DD:EE:FF + +; method = portaudio +; source = auto + + +[output] + +# Output method. Can be 'ncurses', 'noncurses' or 'raw'. +# 'noncurses' uses a custom framebuffer technique and draws only changes +# from frame to frame. 'ncurses' is default if supported +# +# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data +# stream of the bar heights that can be used to send to other applications. +# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. +; method = ncurses + +# Visual channels. Can be 'stereo' or 'mono'. +# 'stereo' mirrors both channels with low frequencies in center. +# 'mono' outputs left to right lowest to highest frequencies. +# 'mono_option' set mono to either take input from 'left', 'right' or 'average'. +; channels = stereo +; mono_option = average + +# Raw output target. A fifo will be created if target does not exist. +; raw_target = /dev/stdout + +# Raw data format. Can be 'binary' or 'ascii'. +; data_format = binary + +# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530). +; bit_format = 16bit + +# Ascii max value. In 'ascii' mode range will run from 0 to value specified here +; ascii_max_range = 1000 + +# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters. +# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)). +; bar_delimiter = 59 +; frame_delimiter = 10 + + + +[color] + +# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. +# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires +# ncurses output method and a terminal that can change color definitions such as Gnome-terminal or rxvt. +# if supported, ncurses mode will be forced on if user defined colors are used. +# default is to keep current terminal color +; background = #ff6c6b +; foreground = #ff6c6b + +# Gradient mode, only hex defined colors (and thereby ncurses mode) are supported, +# background must also be defined in hex or remain commented out. 1 = on, 0 = off. +# You can define as many as 8 different colors. They range from bottom to top of screen +# gradient = 1 +# gradient_count = 2 +# gradient_color_1 = '#E1FFAF' +# gradient_color_2 = '#E1FFAF' +# gradient_color_3 = '#a6cc33' +# gradient_color_4 = '#cccc33' +# gradient_color_5 = '#cca633' +# gradient_color_6 = '#cc8033' +# gradient_color_7 = '#cc5933' +# gradient_color_8 = '#c792ea' + + + +[smoothing] + +# Percentage value for integral smoothing. Takes values from 0 - 100. +# Higher values means smoother, but less precise. 0 to disable. +; integral = 77 + +# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. +; monstercat = 0 +; waves = 0 + +# Set gravity percentage for "drop off". Higher values means bars will drop faster. +# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". +; gravity = 100 + + +# In bar height, bars that would have been lower that this will not be drawn. +; ignore = 0 + + +[eq] + +# This one is tricky. You can have as much keys as you want. +# Remember to uncomment more then one key! More keys = more precision. +# Look at readme.md on github for further explanations and examples. + 1 = 1 # bass + 2 = 1 + 3 = 1 # midtone + 4 = 1 + 5 = 1 # treble + + + diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 120000 index 0000000..ff68f1c --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1 @@ +/home/krolyxon/.cache/wal/dunstrc
\ No newline at end of file diff --git a/.config/gtk-2.0/gtkfilechooser.ini b/.config/gtk-2.0/gtkfilechooser.ini new file mode 100644 index 0000000..00ae93b --- /dev/null +++ b/.config/gtk-2.0/gtkfilechooser.ini @@ -0,0 +1,11 @@ +[Filechooser Settings] +LocationMode=path-bar +ShowHidden=true +ShowSizeColumn=true +GeometryX=0 +GeometryY=0 +GeometryWidth=780 +GeometryHeight=585 +SortColumn=name +SortOrder=ascending +StartupMode=recent diff --git a/.config/gtk-2.0/gtkrc-2.0 b/.config/gtk-2.0/gtkrc-2.0 new file mode 100644 index 0000000..9d288ab --- /dev/null +++ b/.config/gtk-2.0/gtkrc-2.0 @@ -0,0 +1,18 @@ +# DO NOT EDIT! This file will be overwritten by LXAppearance. +# Any customization should be done in ~/.gtkrc-2.0.mine instead. + +include "/home/glizzster/.gtkrc-2.0.mine" +gtk-theme-name="Arc-Dark" +gtk-icon-theme-name="Papirus-Dark" +gtk-font-name="Cantarell 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=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle="hintfull" diff --git a/.config/gtk-3.0/bookmarks b/.config/gtk-3.0/bookmarks new file mode 100644 index 0000000..cd36ca4 --- /dev/null +++ b/.config/gtk-3.0/bookmarks @@ -0,0 +1,7 @@ +file:///home/krolyxon/media/dl dl +file:///home/krolyxon/media/dox dox +file:///home/krolyxon/media/pix pix +file:///home/krolyxon/media/vids vids +file:///home/krolyxon/media/music music +file:///home/krolyxon/media media +file:///home/krolyxon/code code diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..0318e32 --- /dev/null +++ b/.config/gtk-3.0/settings.ini @@ -0,0 +1,15 @@ +[Settings] +gtk-theme-name=Arc-Dark +gtk-icon-theme-name=Papirus-Dark +gtk-font-name=Cantarell 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=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintfull diff --git a/.config/mimeapps.list b/.config/mimeapps.list new file mode 100644 index 0000000..c8410f4 --- /dev/null +++ b/.config/mimeapps.list @@ -0,0 +1,14 @@ +[Default Applications] +text/x-shellscript=text.desktop; +x-scheme-handler/magnet=torrent.desktop; +application/x-bittorrent=torrent.desktop; +text/plain=nvim.desktop +application/postscript=pdf.desktop; +application/pdf=pdf.desktop; +image/png=img.desktop; +image/jpeg=img.desktop; +image/gif=img.desktop; +application/rss+xml=rss.desktop +video/x-matroska=video.desktop +x-scheme-handler/lbry=lbry.desktop +inode/directory=file.desktop diff --git a/.config/paru/paru.conf b/.config/paru/paru.conf new file mode 100644 index 0000000..fb8db4c --- /dev/null +++ b/.config/paru/paru.conf @@ -0,0 +1,38 @@ +# +# $PARU_CONF +# /etc/paru.conf +# ~/.config/paru/paru.conf +# +# See the paru.conf(5) manpage for options + +# +# GENERAL OPTIONS +# +[options] +PgpFetch +Devel +Provides +DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg +#AurOnly +#BottomUp +RemoveMake +#SudoLoop +#UseAsk +#SaveChanges +#CombinedUpgrade +#CleanAfter +#UpgradeMenu +#NewsOnUpgrade + +#LocalRepo +#Chroot +#Sign +#SignDb + +# +# Binary OPTIONS +# +#[bin] +#FileManager = vifm +#MFlags = --skippgpcheck +#Sudo = doas diff --git a/.config/pcmanfm/default/pcmanfm.conf b/.config/pcmanfm/default/pcmanfm.conf new file mode 100644 index 0000000..8f13c74 --- /dev/null +++ b/.config/pcmanfm/default/pcmanfm.conf @@ -0,0 +1,26 @@ +[config] +bm_open_method=0 + +[volume] +mount_on_startup=1 +mount_removable=1 +autorun=1 + +[ui] +always_show_tabs=0 +max_tab_chars=32 +win_width=1049 +win_height=1053 +splitter_pos=147 +media_in_new_tab=0 +desktop_folder_new_win=0 +change_tab_on_drop=1 +close_on_unmount=1 +focus_previous=0 +side_pane_mode=places +view_mode=icon +show_hidden=1 +sort=name;ascending; +toolbar=newtab;navigation;home; +show_statusbar=1 +pathbar_mode_buttons=0 diff --git a/.config/ranger/plugins/__init__.py b/.config/ranger/plugins/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/ranger/plugins/__init__.py diff --git a/.config/ranger/plugins/__pycache__/__init__.cpython-310.opt-1.pyc b/.config/ranger/plugins/__pycache__/__init__.cpython-310.opt-1.pyc Binary files differnew file mode 100644 index 0000000..ac1fed7 --- /dev/null +++ b/.config/ranger/plugins/__pycache__/__init__.cpython-310.opt-1.pyc diff --git a/.config/ranger/plugins/ranger_devicons/__init__.py b/.config/ranger/plugins/ranger_devicons/__init__.py new file mode 100644 index 0000000..664b276 --- /dev/null +++ b/.config/ranger/plugins/ranger_devicons/__init__.py @@ -0,0 +1,15 @@ +import os +import ranger.api +from ranger.core.linemode import LinemodeBase +from .devicons import * + +SEPARATOR = os.getenv('RANGER_DEVICONS_SEPARATOR', ' ') + +@ranger.api.register_linemode +class DevIconsLinemode(LinemodeBase): + name = "devicons" + + uses_metadata = False + + def filetitle(self, file, metadata): + return devicon(file) + SEPARATOR + file.relative_path diff --git a/.config/ranger/plugins/ranger_devicons/__pycache__/__init__.cpython-310.opt-1.pyc b/.config/ranger/plugins/ranger_devicons/__pycache__/__init__.cpython-310.opt-1.pyc Binary files differnew file mode 100644 index 0000000..7217fe6 --- /dev/null +++ b/.config/ranger/plugins/ranger_devicons/__pycache__/__init__.cpython-310.opt-1.pyc diff --git a/.config/ranger/plugins/ranger_devicons/__pycache__/devicons.cpython-310.opt-1.pyc b/.config/ranger/plugins/ranger_devicons/__pycache__/devicons.cpython-310.opt-1.pyc Binary files differnew file mode 100644 index 0000000..2e46d80 --- /dev/null +++ b/.config/ranger/plugins/ranger_devicons/__pycache__/devicons.cpython-310.opt-1.pyc diff --git a/.config/ranger/plugins/ranger_devicons/devicons.py b/.config/ranger/plugins/ranger_devicons/devicons.py new file mode 100644 index 0000000..ba67667 --- /dev/null +++ b/.config/ranger/plugins/ranger_devicons/devicons.py @@ -0,0 +1,381 @@ +#!/usr/bin/python +# coding=UTF-8 +# These glyphs, and the mapping of file extensions to glyphs +# has been copied from the vimscript code that is present in +# https://github.com/ryanoasis/vim-devicons +import re; +import os; + +# Get the XDG_USER_DIRS directory names from enviromental variables + +xdgs_dirs = {path.split('/')[-2]: icon for key, icon in [ + ('XDG_DOCUMENTS_DIR' , ''), + ('XDG_DOWNLOAD_DIR' , ''), + ('XDG_CONFIG_DIR' , ''), + ('XDG_MUSIC_DIR' , ''), + ('XDG_PICTURES_DIR' , ''), + ('XDG_PUBLICSHARE_DIR', ''), + ('XDG_TEMPLATES_DIR' , ''), + ('XDG_VIDEOS_DIR' , ''), +] if (path := os.getenv(key))} + + +# all those glyphs will show as weird squares if you don't have the correct patched font +# My advice is to use NerdFonts which can be found here: +# https://github.com/ryanoasis/nerd-fonts +file_node_extensions = { + '7z' : '', + 'a' : '', + 'ai' : '', + 'apk' : '', + 'asm' : '', + 'asp' : '', + 'aup' : '', + 'avi' : '', + 'awk' : '', + 'bash' : '', + 'bat' : '', + 'bmp' : '', + 'bz2' : '', + 'c' : '', + 'c++' : '', + 'cab' : '', + 'cbr' : '', + 'cbz' : '', + 'cc' : '', + 'class' : '', + 'clj' : '', + 'cljc' : '', + 'cljs' : '', + 'cmake' : '', + 'coffee' : '', + 'conf' : '', + 'cp' : '', + 'cpio' : '', + 'cpp' : '', + 'cs' : '', + 'csh' : '', + 'css' : '', + 'cue' : '', + 'cvs' : '', + 'cxx' : '', + 'd' : '', + 'dart' : '', + 'db' : '', + 'deb' : '', + 'diff' : '', + 'dll' : '', + 'doc' : '', + 'docx' : '', + 'dump' : '', + 'edn' : '', + 'eex' : '', + 'efi' : '', + 'ejs' : '', + 'elf' : '', + 'elm' : '', + 'epub' : '', + 'erl' : '', + 'ex' : '', + 'exe' : '', + 'exs' : '', + 'f#' : '', + 'fifo' : 'ﳣ', + 'fish' : '', + 'flac' : '', + 'flv' : '', + 'fs' : '', + 'fsi' : '', + 'fsscript' : '', + 'fsx' : '', + 'gem' : '', + 'gemspec' : '', + 'gif' : '', + 'go' : '', + 'gz' : '', + 'gzip' : '', + 'h' : '', + 'haml' : '', + 'hbs' : '', + 'hh' : '', + 'hpp' : '', + 'hrl' : '', + 'hs' : '', + 'htaccess' : '', + 'htm' : '', + 'html' : '', + 'htpasswd' : '', + 'hxx' : '', + 'ico' : '', + 'img' : '', + 'ini' : '', + 'iso' : '', + 'jar' : '', + 'java' : '', + 'jl' : '', + 'jpeg' : '', + 'jpg' : '', + 'js' : '', + 'json' : '', + 'jsx' : '', + 'key' : '', + 'ksh' : '', + 'leex' : '', + 'less' : '', + 'lha' : '', + 'lhs' : '', + 'log' : '', + 'lua' : '', + 'lzh' : '', + 'lzma' : '', + 'm4a' : '', + 'm4v' : '', + 'markdown' : '', + 'md' : '', + 'mdx' : '', + 'mjs' : '', + 'mkv' : '', + 'ml' : 'λ', + 'mli' : 'λ', + 'mov' : '', + 'mp3' : '', + 'mp4' : '', + 'mpeg' : '', + 'mpg' : '', + 'msi' : '', + 'mustache' : '', + 'nix' : '', + 'o' : '', + 'ogg' : '', + 'part' : '', + 'pdf' : '', + 'php' : '', + 'pl' : '', + 'pm' : '', + 'png' : '', + 'pp' : '', + 'ppt' : '', + 'pptx' : '', + 'ps1' : '', + 'psb' : '', + 'psd' : '', + 'pub' : '', + 'py' : '', + 'pyc' : '', + 'pyd' : '', + 'pyo' : '', + 'r' : 'ﳒ', + 'rake' : '', + 'rar' : '', + 'rb' : '', + 'rc' : '', + 'rlib' : '', + 'rmd' : '', + 'rom' : '', + 'rpm' : '', + 'rproj' : '鉶', + 'rs' : '', + 'rss' : '', + 'rtf' : '', + 's' : '', + 'sass' : '', + 'scala' : '', + 'scss' : '', + 'sh' : '', + 'slim' : '', + 'sln' : '', + 'so' : '', + 'sql' : '', + 'styl' : '', + 'suo' : '', + 'swift' : '', + 't' : '', + 'tar' : '', + 'tex' : 'ﭨ', + 'tgz' : '', + 'toml' : '', + 'torrent' : '', + 'ts' : '', + 'tsx' : '', + 'twig' : '', + 'vim' : '', + 'vimrc' : '', + 'vue' : '﵂', + 'wav' : '', + 'webm' : '', + 'webmanifest' : '', + 'webp' : '', + 'xbps' : '', + 'xcplayground' : '', + 'xhtml' : '', + 'xls' : '', + 'xlsx' : '', + 'xml' : '', + 'xul' : '', + 'xz' : '', + 'yaml' : '', + 'yml' : '', + 'zip' : '', + 'zsh' : '', +} + +dir_node_exact_matches = { +# English + '.git' : '', + 'Desktop' : '', + 'Documents' : '', + 'Downloads' : '', + 'Dotfiles' : '', + 'Dropbox' : '', + 'Music' : '', + 'Pictures' : '', + 'Public' : '', + 'Templates' : '', + 'Videos' : '', +# Spanish + 'Escritorio' : '', + 'Documentos' : '', + 'Descargas' : '', + 'Música' : '', + 'Imágenes' : '', + 'Público' : '', + 'Plantillas' : '', + 'Vídeos' : '', +# French + 'Bureau' : '', + 'Documents' : '', + 'Images' : '', + 'Musique' : '', + 'Publique' : '', + 'Téléchargements' : '', + 'Vidéos' : '', +# Portuguese + 'Documentos' : '', + 'Imagens' : '', + 'Modelos' : '', + 'Música' : '', + 'Público' : '', + 'Vídeos' : '', + 'Área de trabalho' : '', +# Italian + 'Documenti' : '', + 'Immagini' : '', + 'Modelli' : '', + 'Musica' : '', + 'Pubblici' : '', + 'Scaricati' : '', + 'Scrivania' : '', + 'Video' : '', +# German + 'Bilder' : '', + 'Dokumente' : '', + 'Musik' : '', + 'Schreibtisch' : '', + 'Vorlagen' : '', + 'Öffentlich' : '', +# Hungarian + 'Dokumentumok' : '', + 'Képek' : '', + 'Modelli' : '', + 'Zene' : '', + 'Letöltések' : '', + 'Számítógép' : '', + 'Videók' : '', +# XDG_USER_DIRS + **xdgs_dirs +} + +file_node_exact_matches = { + '.bash_aliases' : '', + '.bash_history' : '', + '.bash_logout' : '', + '.bash_profile' : '', + '.bashprofile' : '', + '.bashrc' : '', + '.dmrc' : '', + '.DS_Store' : '', + '.fasd' : '', + '.fehbg' : '', + '.gitattributes' : '', + '.gitconfig' : '', + '.gitignore' : '', + '.gitlab-ci.yml' : '', + '.gvimrc' : '', + '.inputrc' : '', + '.jack-settings' : '', + '.mime.types' : '', + '.ncmpcpp' : '', + '.nvidia-settings-rc' : '', + '.pam_environment' : '', + '.profile' : '', + '.recently-used' : '', + '.selected_editor' : '', + '.vim' : '', + '.viminfo' : '', + '.vimrc' : '', + '.Xauthority' : '', + '.Xdefaults' : '', + '.xinitrc' : '', + '.xinputrc' : '', + '.Xresources' : '', + '.zshrc' : '', + '_gvimrc' : '', + '_vimrc' : '', + 'a.out' : '', + 'authorized_keys' : '', + 'bspwmrc' : '', + 'cmakelists.txt' : '', + 'config' : '', + 'config.ac' : '', + 'config.m4' : '', + 'config.mk' : '', + 'config.ru' : '', + 'configure' : '', + 'docker-compose.yml' : '', + 'dockerfile' : '', + 'Dockerfile' : '', + 'dropbox' : '', + 'exact-match-case-sensitive-1.txt' : 'X1', + 'exact-match-case-sensitive-2' : 'X2', + 'favicon.ico' : '', + 'gemfile' : '', + 'gruntfile.coffee' : '', + 'gruntfile.js' : '', + 'gruntfile.ls' : '', + 'gulpfile.coffee' : '', + 'gulpfile.js' : '', + 'gulpfile.ls' : '', + 'ini' : '', + 'known_hosts' : '', + 'ledger' : '', + 'license' : '', + 'LICENSE' : '', + 'LICENSE.md' : '', + 'LICENSE.txt' : '', + 'Makefile' : '', + 'makefile' : '', + 'Makefile.ac' : '', + 'Makefile.in' : '', + 'mimeapps.list' : '', + 'mix.lock' : '', + 'node_modules' : '', + 'package-lock.json' : '', + 'package.json' : '', + 'playlists' : '', + 'procfile' : '', + 'Rakefile' : '', + 'rakefile' : '', + 'react.jsx' : '', + 'README' : '', + 'README.markdown' : '', + 'README.md' : '', + 'README.rst' : '', + 'README.txt' : '', + 'sxhkdrc' : '', + 'user-dirs.dirs' : '', + 'webpack.config.js' : '', +} + +def devicon(file): + if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '') + return file_node_exact_matches.get(os.path.basename(file.relative_path), file_node_extensions.get(file.extension, '')) diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf new file mode 100644 index 0000000..103fc56 --- /dev/null +++ b/.config/ranger/rc.conf @@ -0,0 +1,25 @@ +# How many columns are there, and what are their relative widths? +set column_ratios 1,3,5 + +# Ask for a confirmation when running the "delete" command? +# Valid values are "always", "never", "multiple" (default) +# With "multiple", ranger will ask only if you delete multiple files at once. +#Always confirm delete. +#set confirm_on_delete always + +# Which colorscheme to use? These colorschemes are available by default: +# default, jungle, snow, solarized +set colorscheme jungle + +#The files preview is a nice feature but it slowing down ranger, so can be preferable to turn it off. Look for: +# Preview files on the rightmost column? +# And collapse (shrink) the last column if there is nothing to preview? +# set preview_files true +# set preview_directories true +# set collapse_preview true + +set show_hidden true +set draw_borders both +set preview_images true +set preview_images_method ueberzug +default_linemode devicons diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc new file mode 100644 index 0000000..0458438 --- /dev/null +++ b/.config/shell/aliasrc @@ -0,0 +1,31 @@ +#!/bin/sh + +# Use neovim for vim if present +[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" + +alias \ + zconf='nvim ~/.config/zsh/.zshrc' \ + ls='exa -a --group-directories-first --icons' \ + lsa='exa -la --group-directories-first --icons' \ + ytdl='yt-dlp' \ + ytdlv='yt-dlp -f "(mp4)"' \ + ytdlm='yt-dlp -f "(mp3)"' \ + cl='clear' \ + dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' \ + fm='ranger' \ + +# Verbosity and settings that you pretty much just always are going to want. +alias \ + cp="cp -iv" \ + mv="mv -iv" \ + rm="rm -vI" \ + +# Colorize commands when possible. +alias \ + grep="grep --color=auto" \ + diff="diff --color=auto" \ + ip="ip -color=auto" + +ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;} +es() {find ~/.local/bin -type f | fzf | xargs -r $EDITOR ;} +ef() {fzf | xargs -r -I % $EDITOR % ;} diff --git a/.config/shell/profile b/.config/shell/profile new file mode 100644 index 0000000..bee277a --- /dev/null +++ b/.config/shell/profile @@ -0,0 +1,34 @@ +#!/bin/sh + +export EDITOR="nvim" +export TERMINAL="st" +export BROWSER="firefox" + +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" + +export XAUTHORITY=/tmp/Xauthority # This causes other window managers to break, who cares anyways? +export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" +export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc" +# export GNUPGHOME="$XDG_DATA_HOME/gnupg" +export KODI_DATA="$XDG_DATA_HOME/kodi" +export CARGO_HOME="$XDG_DATA_HOME/cargo" +export RUSTUP_HOME="$XDG_DATA_HOME/rustup" +export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0" +#export LESSHISTFILE="-" +export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc" +# export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. +export __GL_SHADER_DISK_CACHE_PATH=~/.cache/ + +# Other program settings +export FZF_DEFAULT_OPTS="--layout=reverse --height 40%" + +export PATH=$PATH:$HOME/.local/bin + +# Starting X +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx +fi + diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc new file mode 100755 index 0000000..ca4dc11 --- /dev/null +++ b/.config/sxhkd/sxhkdrc @@ -0,0 +1,30 @@ +# +# wm independent hotkeys +# +#emoji menu +# super + period +super + grave + unicode_emoji + +# swap cap if stops working +super + c + setxkbmap -option caps:swapescape +# Screenshot tool +Print + maimshot + +# file explorer +super + shift + f + pcmanfm + +# web browser +super + shift + b + firefox + +# make sxhkd reload its configuration files: +super + Escape + pkill -USR1 -x sxhkd + +# Volume +XF86Audio{RaiseVolume,LowerVolume,Mute} + pamixer -{i,d,t} 2; kill -34 $(cat ~/.cache/pidofbar) diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler new file mode 100755 index 0000000..303ea63 --- /dev/null +++ b/.config/sxiv/exec/key-handler @@ -0,0 +1,11 @@ +#!/bin/sh + +while read file +do + case "$1" in + "d") + [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;; + "w") + genwall $file + esac +done diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..b530e7e --- /dev/null +++ b/.config/user-dirs.dirs @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME/" +XDG_DOWNLOAD_DIR="$HOME/dl" +XDG_TEMPLATES_DIR="$HOME/" +XDG_PUBLICSHARE_DIR="$HOME/" +XDG_DOCUMENTS_DIR="$HOME/dox" +XDG_MUSIC_DIR="$HOME/" +XDG_PICTURES_DIR="$HOME/pix" +XDG_VIDEOS_DIR="$HOME/vids" diff --git a/.config/wal/templates/dunstrc b/.config/wal/templates/dunstrc new file mode 100644 index 0000000..2bcddd4 --- /dev/null +++ b/.config/wal/templates/dunstrc @@ -0,0 +1,60 @@ +# New Start: A modern Arch workflow built with an emphasis on functionality. +# Copyright (C) 2018 Donovan Glover + +# NOTE: This file is automatically generated by pywal. Do not edit it by hand. + +[global] + # Make the width 3740 (3840 - 100), have 50 left margin and 95 above + # geometry = "3740x5-50+95" + offset = 3x20 + + # Show multiple notifications in the same box + separator_height = 0 + + # Add vertical padding to the inside of the notification + padding = 8 + + # Add horizontal padding for when the text gets long enough + horizontal_padding = 8 + + # The frame color and width of the notification + frame_color = "{color6}" + frame_width = 2 + + # How long a user needs to be idle for sticky notifications + idle_threshold = 120 + + # Font and typography settings + font = Hack Nerd Font 10 + alignment = left + word_wrap = yes + + # Format for how notifications will be displayed + # Usage: `notify-send 'Title' 'Summary'` + format = "<b>%s</b>\n%b" + + # Allow some HTML tags like <i> and <u> in notifications + markup = full + max_icon_size = 120 + transparency = 5 + +# These are the keybindings used to control dunst notifications +[shortcuts] + close = ctrl+space + close_all = ctrl+shift+space + history = ctrl+grave + +# Set the background and foreground (text) color for all notifications +[urgency_low] + background = "{background}" + foreground = "{foreground}" + +[urgency_normal] + background = "{background}" + foreground = "{foreground}" + +[urgency_critical] + background = "{background}" + foreground = "{foreground}" + +# vim:ft=cfg diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc new file mode 100644 index 0000000..4d3d62f --- /dev/null +++ b/.config/x11/xinitrc @@ -0,0 +1,13 @@ +#!/bin/sh + +slstatus & +setwall & +xcompmgr & +dunst & +sxhkd & +# xmodmap ~/.config/xmodmap/Xmodmap & +setxkbmap -option caps:swapescape +# exec dwm > /dev/null 2>&1 + +while type dwm > /dev/null ; do dwm && continue || break ; done +exec dwm diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc new file mode 100755 index 0000000..115489a --- /dev/null +++ b/.config/zathura/zathurarc @@ -0,0 +1,56 @@ +set sandbox none +set statusbar-h-padding 0 +set statusbar-v-padding 0 +set page-padding 1 +set selection-clipboard clipboard +map u scroll half-up +map d scroll half-down +map D toggle_page_mode +map r reload +map R rotate +map K zoom in +map J zoom out +map i recolor +map p print +map g goto top + +/* set notification-error-bg "#282828" # bg */ +/* set notification-error-fg "#fb4934" # bright:red */ +/* set notification-warning-bg "#282828" # bg */ +/* set notification-warning-fg "#fabd2f" # bright:yellow */ +/* set notification-bg "#282828" # bg */ +/* set notification-fg "#b8bb26" # bright:green */ + +/* set completion-bg "#504945" # bg2 */ +/* set completion-fg "#ebdbb2" # fg */ +/* set completion-group-bg "#3c3836" # bg1 */ +/* set completion-group-fg "#928374" # gray */ +/* set completion-highlight-bg "#83a598" # bright:blue */ +/* set completion-highlight-fg "#504945" # bg2 */ + +/* # Define the color in index mode */ +/* set index-bg "#504945" # bg2 */ +/* set index-fg "#ebdbb2" # fg */ +/* set index-active-bg "#83a598" # bright:blue */ +/* set index-active-fg "#504945" # bg2 */ + +/* set inputbar-bg "#282828" # bg */ +/* set inputbar-fg "#ebdbb2" # fg */ + +/* set statusbar-bg "#504945" # bg2 */ +/* set statusbar-fg "#ebdbb2" # fg */ + +/* set highlight-color "#fabd2f" # bright:yellow */ +/* set highlight-active-color "#fe8019" # bright:orange */ + +/* set default-bg "#282828" # bg */ +/* set default-fg "#D4BE98" # fg */ +/* set render-loading true */ +/* set render-loading-bg "#282828" # bg */ +/* set render-loading-fg "#ebdbb2" # fg */ + +/* # Recolor book content's color */ +/* set recolor-lightcolor "#282828" # bg */ +/* set recolor-darkcolor "#ebdbb2" # fg */ +/* set recolor "true" */ +/* # set recolor-keephue true # keep original color */ diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..016aae1 --- /dev/null +++ b/.config/zsh/.zshrc @@ -0,0 +1,27 @@ +autoload -U colors && colors # Load colors +PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " +setopt autocd # Automatically cd into typed directory. +stty stop undef # Disable ctrl-s to freeze terminal. + +# History in cache directory: +HISTSIZE=1000 +SAVEHIST=1000 +HISTFILE=~/.cache/history + +source "$XDG_CONFIG_HOME/shell/aliasrc" + +# Basic auto/tab complete: +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) # Include hidden files. + +# Enable searching through history +bindkey '^R' history-incremental-pattern-search-backward + +cowsay "$(shuf -n 1 ~/.local/share/vocab/words.txt)" + +#should be last. +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh |
