├── .gitignore ├── Arch Installation ├── Arch After Installation │ └── README.md └── README.md ├── README.md └── config ├── alacritty └── alacritty.yml ├── cava ├── config └── shaders │ ├── bar_spectrum.frag │ ├── northern_lights.frag │ └── pass_through.vert ├── conky ├── Sidebar ├── conky-mpd │ ├── case.png │ ├── cover.sh │ └── nocover.png ├── conky.conf └── conkyrc-mpd ├── dunst ├── alert.png ├── alt_bell.png ├── bell.png ├── critical.png ├── dunstrc ├── dunstrc.bak └── wal_dunst.sh ├── glava ├── bars.glsl ├── circle.glsl ├── env_KWin.glsl ├── env_Openbox.glsl ├── env_Xfwm4.glsl ├── env_awesome.glsl ├── env_default.glsl ├── env_i3.glsl ├── graph.glsl ├── radial.glsl ├── rc.glsl ├── rc_flip.glsl ├── smooth_parameters.glsl └── wave.glsl ├── i3 └── config ├── kitty ├── kitty.conf └── kitty_detailed ├── lf ├── cleaner ├── icons ├── lfrc ├── scope └── shortcutrc ├── mpd ├── database ├── log ├── mpd.conf ├── pid ├── state └── sticker.sql ├── mpv └── mpv.conf ├── ncmpcpp ├── config ├── error.log ├── lyrics │ ├── AaRON - Magnetic Road.txt │ ├── Coldplay - Viva la Vida.txt │ ├── Damon Albarn - Hollow Ponds.txt │ ├── Men I Trust - I Hope to Be Around.txt │ ├── Muse - Animals.txt │ ├── Muse - Save Me.txt │ └── Tame Impala - Eventually.txt └── scripts │ ├── album-art │ ├── music.png │ └── ncmpcpp-art ├── neofetch ├── acenoster.conf ├── arch-small ├── axylfetch.conf ├── blockfetch.conf ├── boxes.conf ├── config.conf ├── config2.conf ├── dotfetch.conf ├── eldfetch.conf ├── hybridfetch.conf ├── idlifetch.conf ├── onrefetch.conf ├── ozozFetch ├── ozozPredatorFetch.conf ├── ozozfetch ├── ozozfetch.conf ├── ozozfetch2.conf ├── papirus ├── papirus.conf ├── penguinfetch.conf ├── simplefetch.conf ├── smallfetch.conf └── talljoe.conf ├── newsboat ├── config └── urls ├── nvim ├── .github │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.yaml │ │ ├── config.yml │ │ └── feature_request.yaml │ ├── PULL_REQUEST_TEMPLATE │ │ ├── chore.md │ │ ├── feature.md │ │ └── fix.md │ ├── README.md │ └── workflows │ │ ├── conventional_commit.yml │ │ ├── docs.yml │ │ ├── luacheck.yml │ │ ├── spell.yml │ │ ├── stale.yml │ │ ├── style.yml │ │ └── updater.yml ├── .gitignore ├── .luacheckrc ├── .neoconf.json ├── .stylua.toml ├── .styluaignore ├── .typos.toml ├── LICENSE ├── config.ld ├── init.lua ├── lua │ ├── astronvim │ │ ├── autocmds.lua │ │ ├── bootstrap.lua │ │ ├── health.lua │ │ ├── icons │ │ │ ├── nerd_font.lua │ │ │ └── text.lua │ │ ├── lazy.lua │ │ ├── mappings.lua │ │ ├── options.lua │ │ └── utils │ │ │ ├── buffer.lua │ │ │ ├── ffi.lua │ │ │ ├── git.lua │ │ │ ├── init.lua │ │ │ ├── lsp.lua │ │ │ ├── mason.lua │ │ │ ├── status.lua │ │ │ ├── status │ │ │ ├── component.lua │ │ │ ├── condition.lua │ │ │ ├── env.lua │ │ │ ├── heirline.lua │ │ │ ├── hl.lua │ │ │ ├── init.lua │ │ │ ├── provider.lua │ │ │ └── utils.lua │ │ │ ├── ui.lua │ │ │ └── updater.lua │ ├── lazy_snapshot.lua │ ├── plugins │ │ ├── alpha.lua │ │ ├── cmp.lua │ │ ├── configs │ │ │ ├── alpha.lua │ │ │ ├── cmp-dap.lua │ │ │ ├── guess-indent.lua │ │ │ ├── heirline.lua │ │ │ ├── lspconfig.lua │ │ │ ├── lspkind.lua │ │ │ ├── luasnip.lua │ │ │ ├── mason-lspconfig.lua │ │ │ ├── mason-null-ls.lua │ │ │ ├── mason-nvim-dap.lua │ │ │ ├── mason.lua │ │ │ ├── notify.lua │ │ │ ├── nvim-autopairs.lua │ │ │ ├── nvim-dap-ui.lua │ │ │ ├── nvim-treesitter.lua │ │ │ ├── nvim-web-devicons.lua │ │ │ ├── telescope.lua │ │ │ └── which-key.lua │ │ ├── core.lua │ │ ├── dap.lua │ │ ├── git.lua │ │ ├── heirline.lua │ │ ├── lsp.lua │ │ ├── mason.lua │ │ ├── neo-tree.lua │ │ ├── telescope.lua │ │ ├── treesitter.lua │ │ └── ui.lua │ ├── resession │ │ └── extensions │ │ │ └── astronvim.lua │ └── user │ │ ├── alpha.lua │ │ ├── autocommands.lua │ │ ├── autopairs.lua │ │ ├── bufferline.lua │ │ ├── cmp.lua │ │ ├── colorscheme.lua │ │ ├── comment.lua │ │ ├── dracula.lua │ │ ├── feline.lua │ │ ├── gitsigns.lua │ │ ├── goyo.lua │ │ ├── impatient.lua │ │ ├── indentline.lua │ │ ├── keymaps.lua │ │ ├── latexpr.lua │ │ ├── lsp │ │ ├── handlers.lua │ │ ├── init.lua │ │ ├── mason.lua │ │ ├── null-ls.lua │ │ └── settings │ │ │ ├── jsonls.lua │ │ │ ├── pyright.lua │ │ │ └── sumneko_lua.lua │ │ ├── lualine.lua │ │ ├── lualine_old.lua │ │ ├── markpre.lua │ │ ├── monokai.lua │ │ ├── nvim-tree.lua │ │ ├── options.lua │ │ ├── plugins.lua │ │ ├── project.lua │ │ ├── pywal.lua │ │ ├── rlang.lua │ │ ├── telescope.lua │ │ ├── texlab.lua │ │ ├── toggleterm.lua │ │ ├── treesitter.lua │ │ ├── vimtex.lua │ │ ├── wal.lua │ │ └── whichkey.lua └── spell │ ├── en.utf-8.add │ └── en.utf-8.add.spl ├── nvim_not_lua ├── airline.vim ├── coc.vim ├── codi.vim ├── dashboard.vim ├── embark.vim ├── fzf.vim ├── goyo.vim ├── indent.vim ├── init.vim ├── latexpr.vim ├── limelight.vim ├── markpreview.vim ├── nerdtree.vim ├── plugin-configs │ ├── airline.vim │ ├── coc.vim │ ├── codi.vim │ ├── dashboard.vim │ ├── embark.vim │ ├── fzf.vim │ ├── goyo.vim │ ├── indent.vim │ ├── latexpr.vim │ ├── limelight.vim │ ├── markpreview.vim │ ├── nerdtree.vim │ ├── rainbow.vim │ ├── rooter.vim │ ├── spell.vim │ ├── ultisnips.vim │ ├── vimtex.vim │ └── vimwiki.vim ├── plugins.vim ├── rooter.vim ├── spell.vim └── vimtex.vim ├── picom ├── launch.sh └── picom.conf ├── polybar ├── cava ├── config.ini ├── custom_modules.ini ├── glava_toggle ├── launch.sh ├── modules.ini ├── multibar.ini ├── music ├── pac.sh ├── polybar │ ├── blocks │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ ├── style-switch.sh │ │ │ ├── styles.sh │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── colorblocks │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── cuts │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ ├── style-switch.sh │ │ │ ├── styles.sh │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── docky │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── forest │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ ├── style-switch.sh │ │ │ ├── styles.sh │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── grayblocks │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── hack │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── check-network │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── launch.sh │ ├── material │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ └── updates.sh │ │ └── user_modules.ini │ ├── shades │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ │ ├── checkupdates │ │ │ ├── color-switch.sh │ │ │ ├── colors-dark.sh │ │ │ ├── colors-light.sh │ │ │ ├── launcher.sh │ │ │ ├── powermenu.sh │ │ │ ├── pywal.sh │ │ │ ├── random.sh │ │ │ ├── rofi │ │ │ │ ├── colors.rasi │ │ │ │ ├── confirm.rasi │ │ │ │ ├── launcher.rasi │ │ │ │ ├── message.rasi │ │ │ │ ├── networkmenu.rasi │ │ │ │ ├── powermenu.rasi │ │ │ │ └── styles.rasi │ │ │ └── updates.sh │ │ └── user_modules.ini │ └── shapes │ │ ├── bars.ini │ │ ├── colors.ini │ │ ├── config.ini │ │ ├── glyphs.ini │ │ ├── launch.sh │ │ ├── modules.ini │ │ ├── preview.ini │ │ ├── preview.sh │ │ ├── scripts │ │ ├── checkupdates │ │ ├── color-switch.sh │ │ ├── colors-dark.sh │ │ ├── colors-light.sh │ │ ├── launcher.sh │ │ ├── powermenu.sh │ │ ├── pywal.sh │ │ ├── random.sh │ │ ├── rofi │ │ │ ├── colors.rasi │ │ │ ├── confirm.rasi │ │ │ ├── launcher.rasi │ │ │ ├── message.rasi │ │ │ ├── networkmenu.rasi │ │ │ ├── powermenu.rasi │ │ │ └── styles.rasi │ │ ├── style-switch.sh │ │ └── updates.sh │ │ └── user_modules.ini ├── polypomo ├── pywal.sh ├── spotify_status.py ├── temperature ├── update ├── workspaces └── wttr.sh ├── ranger └── rc.conf ├── retroarch └── retroarch.cfg ├── rofi └── config.rasi ├── scripts ├── GPT-3 ├── Pywal │ ├── Cached Theme.pak │ ├── images │ │ └── theme_ntp_background_norepeat.png │ └── manifest.json ├── SGPT-3 ├── alac ├── axurl ├── battery_2 ├── brightdown ├── brightup ├── changevolume ├── chromeTheme.sh ├── conf_locations ├── conf_selector ├── dator ├── dayplan ├── e-rater ├── flash ├── house ├── lang ├── lfub ├── lock ├── main_options.md ├── manpdf ├── mic_tog ├── microp ├── noter ├── noti-temp ├── notify-pipe ├── obs-pic ├── pdfconv ├── post ├── ray ├── record_vid ├── rofi-noter ├── rofi_noter ├── setbg ├── songinfo ├── temp_options.md ├── theme ├── theme.md ├── todos ├── touchpad_toggle ├── updates ├── url.txt └── wttr ├── sway ├── config └── waybar │ ├── config.jsonc │ └── style.css ├── taskell ├── bindings.ini ├── config.ini ├── template.md └── theme.ini ├── tspreed └── tspreed.rc ├── zathura └── zathurarc └── zsh ├── .zprofile ├── .zshenv ├── .zshrc ├── zprofile ├── zshenv └── zshrc /.gitignore: -------------------------------------------------------------------------------- 1 | dotupdate 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | GitHub Repo stars 4 | 5 | 6 |

7 | 8 | # My Arch Linux RICE 9 | ## Preview 10 | 11 | ![prev](https://user-images.githubusercontent.com/89016694/207642126-9acaa743-efcc-4982-84d0-2bb9924235fa.png) 12 | ![image](https://user-images.githubusercontent.com/89016694/205252524-98c5e128-2ec3-4725-9def-d14c8c65edbc.png) 13 | ![image (1)](https://user-images.githubusercontent.com/89016694/205252536-941b4e54-0987-4356-ad34-eae06465449d.png) 14 | ![combine_images (2)](https://user-images.githubusercontent.com/89016694/205252605-3f7bb8a7-8a89-4a1e-8fed-d4210890fafe.png) 15 | 16 | # Dotfiles 17 | 18 | - Lf (with preview mode) 19 | - Ncmpcpp 20 | - Conky 21 | - Dunst (notify-send ui alternative) 22 | - Markdown, rmarkdown, latex, compiling notes in terminal 23 | - Scripts for extracting audio, reducing pdf size, screen record, and etc 24 | - Cava 25 | - Glava 26 | - Playerctl 27 | - Zathura-Pywal 28 | - Mpd 29 | - Newsboat 30 | - Polybar (Modules) 31 | - Pomodoro 32 | - TODOS 33 | - News 34 | - Redshift (Night) 35 | - Conky Toggle 36 | - Glava Toggle 37 | 38 | # Support 39 | Please give this repo a star and possibly consider buying me a cup of coffee :) 40 | 41 | Buy Me A Coffee 42 | -------------------------------------------------------------------------------- /config/cava/shaders/northern_lights.frag: -------------------------------------------------------------------------------- 1 | #version 330 2 | 3 | in vec2 fragCoord; 4 | out vec4 fragColor; 5 | 6 | // bar values. defaults to left channels first (low to high), then right (high to low). 7 | uniform float bars[512]; 8 | 9 | uniform int bars_count; // number of bars (left + right) (configurable) 10 | 11 | uniform vec3 u_resolution; // window resolution, not used here 12 | 13 | //colors, configurable in cava config file 14 | uniform vec3 bg_color; // background color(r,g,b) (0.0 - 1.0), not used here 15 | uniform vec3 fg_color; // foreground color, not used here 16 | 17 | void main() 18 | { 19 | // find which bar to use based on where we are on the x axis 20 | int bar = int(bars_count * fragCoord.x); 21 | 22 | float bar_y = 1.0 - abs((fragCoord.y - 0.5)) * 2.0; 23 | float y = (bars[bar]) * bar_y; 24 | 25 | float bar_x = (fragCoord.x - float(bar) / float(bars_count)) * bars_count; 26 | float bar_r = 1.0 - abs((bar_x - 0.5)) * 2; 27 | 28 | bar_r = bar_r * bar_r * 2; 29 | 30 | // set color 31 | fragColor.r = fg_color.x * y * bar_r; 32 | fragColor.g = fg_color.y * y * bar_r; 33 | fragColor.b = fg_color.z * y * bar_r; 34 | } 35 | -------------------------------------------------------------------------------- /config/cava/shaders/pass_through.vert: -------------------------------------------------------------------------------- 1 | #version 330 2 | 3 | 4 | // Input vertex data, different for all executions of this shader. 5 | layout(location = 0) in vec3 vertexPosition_modelspace; 6 | 7 | // Output data ; will be interpolated for each fragment. 8 | out vec2 fragCoord; 9 | 10 | void main() 11 | { 12 | gl_Position = vec4(vertexPosition_modelspace,1); 13 | fragCoord = (vertexPosition_modelspace.xy+vec2(1,1))/2.0; 14 | } 15 | -------------------------------------------------------------------------------- /config/conky/conky-mpd/case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/conky/conky-mpd/case.png -------------------------------------------------------------------------------- /config/conky/conky-mpd/nocover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/conky/conky-mpd/nocover.png -------------------------------------------------------------------------------- /config/conky/conky.conf: -------------------------------------------------------------------------------- 1 | background yes 2 | use_xft yes 3 | xftfont Ubuntu:size=10 4 | xftalpha 0.1 5 | update_interval 1 6 | total_run_times 0 7 | 8 | own_window yes 9 | own_window_type override 10 | own_window_transparent no 11 | own_window_class conky-semi 12 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 13 | own_window_argb_visual yes 14 | own_window_argb_value 0 15 | 16 | double_buffer yes 17 | minimum_size 250 5 18 | maximum_width 600 19 | 20 | gap_x 18 21 | gap_y 80 22 | 23 | draw_shades no 24 | draw_outline no 25 | draw_borders no 26 | draw_graph_borders yes 27 | default_color gray 28 | default_shade_color red 29 | default_outline_color green 30 | 31 | alignment top_left 32 | 33 | no_buffers no 34 | uppercase no 35 | cpu_avg_samples 2 36 | net_avg_samples 1 37 | override_utf8_locale yes 38 | use_spacer yes 39 | 40 | TEXT 41 | ${voffset 10}${color EAEAEA}${font Ubuntu:pixelsize=80}${time %I:%M}${font}${voffset -84}${offset 10}${color lightblue}${font Ubuntu:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font Ubuntu:pixelsize=22}${time %B} ${time %Y}${font}${voffset 24}${font Ubuntu:pixelsize=58}${offset -148}${time %A}${font} 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /config/conky/conkyrc-mpd: -------------------------------------------------------------------------------- 1 | # — SETTINGS — # 2 | # background yes 3 | update_interval 1 4 | cpu_avg_samples 2 5 | net_avg_samples 2 6 | double_buffer yes 7 | no_buffers yes 8 | text_buffer_size 1024 9 | imlib_cache_size 0 10 | 11 | # — WINDOW — # 12 | own_window yes 13 | own_window_type normal 14 | own_window_transparent no 15 | own_window_class conky-semi 16 | own_window_type override 17 | own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below 18 | own_window_argb_visual yes 19 | own_window_argb_value 0 20 | 21 | # — BORDER — # 22 | border_inner_margin 1 23 | border_outer_margin 0 24 | 25 | # — SIZE — # 26 | minimum_size 220 8 27 | maximum_width 450 28 | 29 | # — ALIGNMENT — # 30 | alignment top_left 31 | gap_x 22 32 | gap_y 200 33 | 34 | # — GRAPHIC — # 35 | draw_shades yes 36 | draw_outline no 37 | draw_borders no 38 | draw_graph_borders no 39 | #default_bar_size 40 8 40 | default_shade_color 181818 41 | #own_window_colour 292929 42 | 43 | # — TEXT — # 44 | use_xft yes 45 | xftfont Roboto Condensed:size=10 46 | xftalpha 1.0 47 | uppercase no 48 | override_utf8_locale yes 49 | default_color f0f0f0 50 | 51 | # — LUA — # 52 | #lua_load ~/Conky/bgcolor/bg.lua 53 | #lua_draw_hook_pre conky_draw_bg 54 | 55 | # — Colors — # 56 | color1 606060 57 | TEXT 58 | ${voffset 25}${goto 140}${font Roboto:size=10:bold}$mpd_title$font 59 | ${goto 140}$mpd_artist 60 | ${goto 140}$mpd_album 61 | ${goto 140}${mpd_bar 3,100} 62 | ${execi 1 ~/.config/conky/conky-mpd/cover.sh}${image /tmp/conkyCover.png -p 10} 63 | -------------------------------------------------------------------------------- /config/dunst/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/dunst/alert.png -------------------------------------------------------------------------------- /config/dunst/alt_bell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/dunst/alt_bell.png -------------------------------------------------------------------------------- /config/dunst/bell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/dunst/bell.png -------------------------------------------------------------------------------- /config/dunst/critical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/dunst/critical.png -------------------------------------------------------------------------------- /config/dunst/wal_dunst.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | 3 | . "${HOME}/.cache/wal/colors.sh" 4 | 5 | pkill -f dunst 6 | dunst \ 7 | -frame_width 5 \ 8 | -li "${HOME}/.config/dunst/tux.png" \ 9 | -ni "${HOME}/.config/dunst/tux.png" \ 10 | -ci "${HOME}/.config/dunst/this_is_fine.png" \ 11 | -lfr "${color1}" \ 12 | -nfr "${color1}" \ 13 | -cfr "${color1}" \ 14 | -lb "${color1}" \ 15 | -nb "${color1}" \ 16 | -cb "${color1}" \ 17 | -lf "${color7}" \ 18 | -cf "${color7}" \ 19 | -nf "${color7}" & 20 | 21 | 22 | # -lb "${color0}" \ 23 | # -nb "${color0}" \ 24 | # -cb "${color0}" \ 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /config/glava/bars.glsl: -------------------------------------------------------------------------------- 1 | /* Center line thickness (pixels) */ 2 | #define C_LINE 1 3 | /* Width (in pixels) of each bar */ 4 | #define BAR_WIDTH 20 5 | /* Width (in pixels) of each bar gap */ 6 | #define BAR_GAP 5 7 | /* Outline color */ 8 | #define BAR_OUTLINE #0769fc 9 | /* Outline width (in pixels, set to 0 to disable outline drawing) */ 10 | #define BAR_OUTLINE_WIDTH 0 11 | /* Amplify magnitude of the results each bar displays */ 12 | #define AMPLIFY 450 13 | /* Whether the current settings use the alpha channel; 14 | enabling this is required for alpha to function 15 | correctly on X11 with `"native"` transparency. */ 16 | #define USE_ALPHA 1 17 | #define ALPHA 0.5 18 | /* How strong the gradient changes */ 19 | #define GRADIENT_POWER 60 20 | /* Bar color changes with height */ 21 | #define GRADIENT (d / GRADIENT_POWER + 1) 22 | /* Bar color */ 23 | #define COLOR mix(#00ff9d, #00a361, clamp(d / 100, 0, 1)) * (ALPHA) 24 | /* Direction that the bars are facing, 0 for inward, 1 for outward */ 25 | #define DIRECTION 0 26 | /* Whether to switch left/right audio buffers */ 27 | #define INVERT 0 28 | /* Whether to flip the output vertically */ 29 | #define FLIP 0 30 | /* Whether to mirror output along `Y = X`, causing output to render on the left side of the window */ 31 | /* Use with `FLIP 1` to render on the right side */ 32 | #define MIRROR_YX 0 33 | 34 | /* No Gradient */ 35 | /* #define COLOR (#872bff* GRADIENT * ALPHA ) */ 36 | -------------------------------------------------------------------------------- /config/glava/circle.glsl: -------------------------------------------------------------------------------- 1 | /* center radius (pixels) */ 2 | #define C_RADIUS 200 3 | /* center line thickness (pixels) */ 4 | #define C_LINE 3.0 5 | /* Amplify magnitude of the results each bar displays */ 6 | #define AMPLIFY 400 7 | /* Angle (in radians) for how much to rotate the visualizer */ 8 | #define ROTATE (PI / 2) 9 | /* Whether to switch left/right audio buffers */ 10 | #define INVERT 0 11 | /* Whether to fill in the space between the line and inner circle */ 12 | #define C_FILL 0 13 | /* Whether to apply a post-processing image smoothing effect 14 | 1 to enable, 0 to disable. Only works with `xroot` transparency, 15 | and improves performance if disabled. */ 16 | #define C_SMOOTH 1 17 | 18 | /* Gravity step, overrude frin `smooth_parameters.glsl` */ 19 | #request setgravitystep 9.0 20 | 21 | /* Smoothing factor, override from `smooth_parameters.glsl` */ 22 | #request setsmoothfactor 0.015 23 | 24 | #define OUTLINE #009dff 25 | -------------------------------------------------------------------------------- /config/glava/env_KWin.glsl: -------------------------------------------------------------------------------- 1 | #request setdecorated false 2 | #request setxwintype "normal" 3 | #request addxwinstate "below" 4 | #request addxwinstate "skip_taskbar" 5 | #request addxwinstate "skip_pager" 6 | #request addxwinstate "pinned" 7 | #request setclickthrough true 8 | 9 | -------------------------------------------------------------------------------- /config/glava/env_Openbox.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "desktop" 2 | #request addxwinstate "pinned" 3 | -------------------------------------------------------------------------------- /config/glava/env_Xfwm4.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "desktop" 2 | #request addxwinstate "pinned" 3 | #request addxwinstate "below" 4 | -------------------------------------------------------------------------------- /config/glava/env_awesome.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "!-" 2 | -------------------------------------------------------------------------------- /config/glava/env_default.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "desktop" 2 | -------------------------------------------------------------------------------- /config/glava/env_i3.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "!-" 2 | -------------------------------------------------------------------------------- /config/glava/graph.glsl: -------------------------------------------------------------------------------- 1 | 2 | /* Vertical scale, larger values will amplify output */ 3 | #define VSCALE 300 4 | /* Rendering direction, either -1 (outwards) or 1 (inwards). */ 5 | #define DIRECTION 1 6 | 7 | /* Color gradient scale, (optionally) used in `COLOR` macro */ 8 | #define GRADIENT_SCALE 75 9 | /* Color definition. By default this is a gradient formed by mixing two colors. 10 | `pos` represents the pixel position relative to the visualizer baseline. */ 11 | #define COLOR mix(#802A2A, #4F4F92, clamp(pos / GRADIENT_SCALE, 0, 1)) 12 | /* 1 to draw outline, 0 to disable */ 13 | #define DRAW_OUTLINE 0 14 | /* 1 to draw edge highlight, 0 to disable */ 15 | #define DRAW_HIGHLIGHT 1 16 | /* Whether to anti-alias the border of the graph, creating a smoother curve. 17 | This may have a small impact on performance. 18 | Note: requires `xroot` or `none` opacity to be set */ 19 | #define ANTI_ALIAS 0 20 | /* outline color */ 21 | #define OUTLINE #262626 22 | /* 1 to join the two channels together in the middle, 0 to clamp both down to zero */ 23 | #define JOIN_CHANNELS 0 24 | /* 1 to invert (vertically), 0 otherwise */ 25 | #define INVERT 0 26 | 27 | /* Gravity step, overrude from `smooth_parameters.glsl` */ 28 | #request setgravitystep 2.4 29 | 30 | /* Smoothing factor, override from `smooth_parameters.glsl` */ 31 | #request setsmoothfactor 0.015 32 | -------------------------------------------------------------------------------- /config/glava/radial.glsl: -------------------------------------------------------------------------------- 1 | /* center radius (pixels) */ 2 | #define C_RADIUS 100 3 | /* center line thickness (pixels) */ 4 | #define C_LINE 2 5 | /* outline color */ 6 | #define OUTLINE #333333 7 | /* number of bars (use even values for best results) */ 8 | #define NBARS 10 9 | /* width (in pixels) of each bar*/ 10 | #define BAR_WIDTH 3.5 11 | /* outline color */ 12 | #define BAR_OUTLINE OUTLINE 13 | /* outline width (in pixels, set to 0 to disable outline drawing) */ 14 | #define BAR_OUTLINE_WIDTH 0 15 | /* Amplify magnitude of the results each bar displays */ 16 | #define AMPLIFY 300 17 | /* Bar color */ 18 | #define COLOR (#cc3333 * ((d / 40) + 1)) 19 | /* Angle (in radians) for how much to rotate the visualizer */ 20 | #define ROTATE (PI / 2) 21 | /* Whether to switch left/right audio buffers */ 22 | #define INVERT 0 23 | /* Aliasing factors. Higher values mean more defined and jagged lines. 24 | Note: aliasing does not have a notable impact on performance, but requires 25 | `xroot` transparency to be enabled since it relies on alpha blending with 26 | the background. */ 27 | #define BAR_ALIAS_FACTOR 1.2 28 | #define C_ALIAS_FACTOR 1.8 29 | /* Offset (Y) of the visualization */ 30 | #define CENTER_OFFSET_Y 0 31 | /* Offset (X) of the visualization */ 32 | #define CENTER_OFFSET_X 0 33 | 34 | /* Gravity step, override from `smooth_parameters.glsl` */ 35 | #request setgravitystep 5.0 36 | 37 | /* Smoothing factor, override from `smooth_parameters.glsl` */ 38 | #request setsmoothfactor 0.02 39 | -------------------------------------------------------------------------------- /config/glava/wave.glsl: -------------------------------------------------------------------------------- 1 | /* min (vertical) line thickness */ 2 | #define MIN_THICKNESS 1 3 | 4 | /* max (vertical) line thickness */ 5 | #define MAX_THICKNESS 6 6 | 7 | /* base color to use, distance from center will multiply the RGB components */ 8 | #define BASE_COLOR vec4(0.7, 0.2, 0.45, 1) 9 | 10 | /* amplitude */ 11 | #define AMPLIFY 500 12 | 13 | /* outline color */ 14 | #define OUTLINE vec4(0.15, 0.15, 0.15, 1) 15 | -------------------------------------------------------------------------------- /config/lf/cleaner: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -n "$FIFO_UEBERZUG" ]; then 3 | printf '{"action": "remove", "identifier": "PREVIEW"}\n' > "$FIFO_UEBERZUG" 4 | fi 5 | 6 | -------------------------------------------------------------------------------- /config/lf/lfrc: -------------------------------------------------------------------------------- 1 | # Basic vars 2 | set shellopts '-eu' 3 | set ifs "\n" 4 | set scrolloff 10 5 | set icons true 6 | set period 1 7 | set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml" 8 | set cleaner '~/.config/lf/cleaner' 9 | set previewer '~/.config/lf/scope' 10 | # set drawbox true 11 | 12 | cmd trash ${{ 13 | clear; tput cup $(($(tput lines)/3)); tput bold 14 | set -f 15 | printf "%s\n\t" "$fx" 16 | printf "delete?[y/N]" 17 | read ans 18 | [ $ans = "y" ] && mv $fx /home/core/.local/share/Trash/files 19 | }} 20 | 21 | cmd setwallpaper %cp "$f" ~/.config/wall.jpg && wal -i "$f" 22 | cmd bulkrename $vidir 23 | 24 | # Bindings 25 | map gh 26 | map g top 27 | map D trash 28 | map push :mkdir 29 | map reload 30 | map set hidden! 31 | map shell 32 | map x $$f 33 | map X !$f 34 | map o &mimeopen $f 35 | map O $mimeopen --ask $f 36 | map A rename # at the very end 37 | map c push A # new rename 38 | map I push A # at the very beginning 39 | map i push A # before extention 40 | map a push A # after extention 41 | map B bulkrename 42 | map b setwallpaper 43 | map Y $printf "%s" "$fx" | xclip -selection clipboard 44 | 45 | # Folder Mapping 46 | source "~/.config/lf/shortcutrc" 47 | -------------------------------------------------------------------------------- /config/lf/scope: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # File preview handler for lf. 4 | 5 | set -C -f 6 | IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" 7 | 8 | image() { 9 | if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1; then 10 | printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$5" "$(($2-1))" "$(($3-1))" "$1" > "$FIFO_UEBERZUG" 11 | else 12 | mediainfo "$1" 13 | fi 14 | } 15 | 16 | ifub() { 17 | [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1 18 | } 19 | 20 | # Note that the cache file name is a function of file information, meaning if 21 | # an image appears in multiple places across the machine, it will not have to 22 | # be regenerated once seen. 23 | 24 | case "$(file --dereference --brief --mime-type -- "$1")" in 25 | image/*) image "$1" "$2" "$3" "$4" "$5" ;; 26 | text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; 27 | text/troff) man ./ "$1" | col -b ;; 28 | text/* | */xml) bat --terminal-width "$4" -f "$1" ;; 29 | application/zip) atool --list -- "$1" ;; 30 | audio/* | application/octet-stream) mediainfo "$1" || exit 1;; 31 | video/* ) 32 | CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | awk '{print $1}')" 33 | [ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE" -s 0 34 | image "$CACHE" "$2" "$3" "$4" "$5" 35 | ;; 36 | */pdf) 37 | CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | awk '{print $1}')" 38 | [ ! -f "$CACHE.jpg" ] && pdftoppm -jpeg -f 1 -singlefile "$1" "$CACHE" 39 | image "$CACHE.jpg" "$2" "$3" "$4" "$5" 40 | ;; 41 | *opendocument*) odt2txt "$1" ;; 42 | application/pgp-encrypted) gpg -d -- "$1" ;; 43 | esac 44 | exit 1 45 | 46 | -------------------------------------------------------------------------------- /config/lf/shortcutrc: -------------------------------------------------------------------------------- 1 | map za cd ~/Temp/MEGA/Article/ 2 | map zb cd ~/Documents/Books/Left\ Side/ 3 | map zo cd ~/Temp/MEGA/Obsidian/Broadest/ 4 | map zw cd ~/Media/Pictures/Wallpapers/ 5 | map zh cd ~ 6 | -------------------------------------------------------------------------------- /config/mpd/database: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/mpd/database -------------------------------------------------------------------------------- /config/mpd/pid: -------------------------------------------------------------------------------- 1 | 1006 2 | -------------------------------------------------------------------------------- /config/mpd/state: -------------------------------------------------------------------------------- 1 | sw_volume: 100 2 | audio_device_state:1:My Pulse Output 3 | audio_device_state:1:my_fifo 4 | state: stop 5 | current: 1 6 | random: 1 7 | repeat: 1 8 | single: 0 9 | consume: 1 10 | crossfade: 2 11 | mixrampdb: 0.000000 12 | mixrampdelay: -1.000000 13 | playlist_begin 14 | 0:Muse/2012 - The 2nd Law (Deluxe Limited Edition) EU/10. Save Me.mp3 15 | 1:Tame Impala/2015 - Currents/02. Nangs.mp3 16 | 2:Tame Impala/2015 - Currents/03. The Moment.mp3 17 | 3:Tame Impala/2015 - Currents/05. Eventually.mp3 18 | 4:Tame Impala/2015 - Currents/07. The Less I Know The Better.mp3 19 | 5:Tame Impala/2015 - Currents/09. Disciples.mp3 20 | 6:Tame Impala/2015 - Currents/10. 'Cause I'm A Man.mp3 21 | 7:Tame Impala/2015 - Currents/11. Reality In Motion.mp3 22 | 8:Tame Impala/2015 - Currents/12. LoveParanoia.mp3 23 | 9:Tame Impala/2015 - Currents/13. New Person, Same Old Mistakes.mp3 24 | 10:Tame Impala/2020 - The Slow Rush/06. Tomorrow's Dust.mp3 25 | 11:Tame Impala/2020 - The Slow Rush/05. Breathe Deeper.mp3 26 | playlist_end 27 | -------------------------------------------------------------------------------- /config/mpd/sticker.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/mpd/sticker.sql -------------------------------------------------------------------------------- /config/ncmpcpp/error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/ncmpcpp/error.log -------------------------------------------------------------------------------- /config/ncmpcpp/lyrics/AaRON - Magnetic Road.txt: -------------------------------------------------------------------------------- 1 | Magnetic road 2 | I′m an insect hypnotized by your glowing 3 | I drive fast, speechless denuded 4 | 5 | I'm facing this magnetic solitude 6 | 7 | Oh, I′m getting bigger as the sun goes down 8 | My shadow stretches slowly on the ground 9 | 10 | Equal the eagle, the river, the child 11 | Soon each of our shadows will unite as one 12 | In concrete is the world that I am running from 13 | Daylight is gone, I'm coming home 14 | 15 | Magnetic road 16 | Give me shelter to my dreams 17 | Please give me back my self-esteem 18 | Led astray by the moon 19 | I'm riding on the edge of salvation 20 | 21 | Oh, the air is thicker as the sun goes down 22 | I′m watching the shadows growing on the ground 23 | 24 | Equal the eagle, the river, the child 25 | Soon each of their souls will echo in mine 26 | Equal in the silence, revealing that throne 27 | Daylight is gone, I′m going home 28 | 29 | I'm going home -------------------------------------------------------------------------------- /config/ncmpcpp/lyrics/Coldplay - Viva la Vida.txt: -------------------------------------------------------------------------------- 1 | I know, I'm finding it hard to breathe 2 | And I've been drowning in my own sleep 3 | I feel a hate crashing over me 4 | So rescue me 5 | So rescue me 6 | 7 | Everybody need to drive before we break out like hives 8 | Gotta learn to put this s*** we call pride to the side, 9 | I ain't no player, without you I'm not OJ 10 | Viva la vida now she wanna give me Coldplay 11 | Once you find you can't keep it 12 | You broke my heart into million tiny little pieces 13 | And now its purge on you, never put hurt on you 14 | Talkin' to your girlfriends tryna find dirt on you 15 | Damn, is this what we have come to? 16 | When he was cheating I was the person you run to 17 | Guess it's for another time this is what I've come to find 18 | Should've seen this coming but Stevie Wonder 19 | Love is blind 20 | 21 | I know, I'm finding it hard to breathe 22 | And I've been drowning in my own sleep 23 | I feel a hate crashing over me 24 | So rescue me 25 | So rescue me 26 | 27 | She used to be the person of my dreams 28 | And now she's just a a demon of my nightmares 29 | I know this s*** ain't what it seems 30 | Hey, hey you ain't leavin', I'll be right here 31 | Shorty just rescue me, I know you especially 32 | The way I always felt with you 33 | Thinking that true telepathy 34 | Like the age and their games 35 | We used to be blinding 36 | Who would have thought that when you left 37 | The right would become the wrong thing 38 | 39 | I know, I'm finding it hard to breathe 40 | And I've been drowning in my own sleep 41 | I feel, A hate crashing over me 42 | So rescue me 43 | So rescue me 44 | 45 | I know, I'm finding it hard to breathe 46 | And I've been drowning in my own sleep 47 | I feel a hate crashing over me 48 | So rescue me 49 | So rescue me -------------------------------------------------------------------------------- /config/ncmpcpp/lyrics/Damon Albarn - Hollow Ponds.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/ncmpcpp/lyrics/Damon Albarn - Hollow Ponds.txt -------------------------------------------------------------------------------- /config/ncmpcpp/lyrics/Muse - Animals.txt: -------------------------------------------------------------------------------- 1 | 38 ContributorsAnimals LyricsYou might also likeCancel 2 | How to Format Lyrics: 3 | Type out all lyrics, even repeating song parts like the chorusLyrics should be broken down into individual linesUse section headers above different song parts like [Verse], [Chorus], etc.Use italics (lyric) and bold (lyric) to distinguish between different vocalists in the same song partIf you don’t understand a lyric, use [?] 4 | To learn more, check out our transcription guide or visit our transcribers forum -------------------------------------------------------------------------------- /config/ncmpcpp/lyrics/Muse - Save Me.txt: -------------------------------------------------------------------------------- 1 | 20 ContributorsSave Me LyricsYou might also likeCancel 2 | How to Format Lyrics: 3 | Type out all lyrics, even repeating song parts like the chorusLyrics should be broken down into individual linesUse section headers above different song parts like [Verse], [Chorus], etc.Use italics (lyric) and bold (lyric) to distinguish between different vocalists in the same song partIf you don’t understand a lyric, use [?] 4 | To learn more, check out our transcription guide or visit our transcribers forum -------------------------------------------------------------------------------- /config/ncmpcpp/lyrics/Tame Impala - Eventually.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/ncmpcpp/lyrics/Tame Impala - Eventually.txt -------------------------------------------------------------------------------- /config/ncmpcpp/scripts/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/ncmpcpp/scripts/music.png -------------------------------------------------------------------------------- /config/ncmpcpp/scripts/ncmpcpp-art: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | export FIFO_UEBERZUG="/tmp/mpd-ueberzug-${PPID}" 4 | 5 | cleanup() { 6 | rm "$FIFO_UEBERZUG" 2>/dev/null 7 | rm /tmp/mpd_cover.jpg 2>/dev/null 8 | pkill -P $$ 2>/dev/null 9 | pkill album-art 10 | } 11 | 12 | pkill -P $$ 2>/dev/null 13 | rm "$FIFO_UEBERZUG" 2>/dev/null 14 | mkfifo "$FIFO_UEBERZUG" >/dev/null 15 | trap cleanup EXIT 2>/dev/null 16 | tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser simple >/dev/null 2>&1 & 17 | 18 | ncmpcpp -c ~/.config/ncmpcpp/config-art 19 | cleanup 20 | -------------------------------------------------------------------------------- /config/neofetch/papirus: -------------------------------------------------------------------------------- 1 | # See this wiki page for more info: 2 | # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info 3 | print_info() { 4 | prin "\n" 5 | prin "\n" 6 | prin "\n" 7 | info "\n \n \n \n \n \n \n \n \n USER" title 8 | prin "┌───────────────────────────────┐" 9 | info " ​ ​ OS" distro 10 | info " ​ ​ Host" model 11 | info " ​ ​ Kernel" kernel 12 | info " ​ ​ Uptime" uptime 13 | info " ​ ​ Packages" packages 14 | info " ​ ​ Shell" shell 15 | info " ​ ​ DE" de 16 | info " ​ ​ WM" wm 17 | info " ​ ​ Memory" memory 18 | prin "└───────────────────────────────┘" 19 | 20 | prin "\n" 21 | prin "\n \n \n \n \n \n \n \n \n ${cl0}⬤ ${cl7}⬤ ${cl6}⬤ ${cl5}⬤ ${cl4}⬤ ${cl3}⬤ ${cl2}⬤ ${cl1}⬤" 22 | } 23 | 24 | reset="\033[0m" 25 | red="\033[1;31m" 26 | green="\033[1;32m" 27 | yellow="\033[1;33m" 28 | blue="\033[1;34m" 29 | magenta="\033[1;35m" 30 | cyan="\033[1;36m" 31 | white="\033[1;37m" 32 | 33 | cl0="${reset}" 34 | cl1="${red}" 35 | cl2="${green}" 36 | cl3="${yellow}" 37 | cl4="${blue}" 38 | cl5="${magenta}" 39 | cl6="${cyan}" 40 | cl7="${white}" 41 | 42 | image_source="/home/haru/Documents/ASCII Arts/arch.txt" 43 | -------------------------------------------------------------------------------- /config/neofetch/papirus.conf: -------------------------------------------------------------------------------- 1 | # See this wiki page for more info: 2 | # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info 3 | print_info() { 4 | prin "\n" 5 | prin "\n" 6 | prin "\n" 7 | info "\n \n \n \n \n \n \n \n \n USER" title 8 | prin "┌───────────────────────────────┐" 9 | info " ​ ​ OS" distro 10 | info " ​ ​ Host" model 11 | info " ​ ​ Kernel" kernel 12 | info " ​ ​ Uptime" uptime 13 | info " ​ ​ Packages" packages 14 | info " ​ ​ Shell" shell 15 | info " ​ ​ DE" de 16 | info " ​ ​ WM" wm 17 | info " ​ ​ Memory" memory 18 | prin "└───────────────────────────────┘" 19 | 20 | prin "\n" 21 | prin "\n \n \n \n \n \n \n \n \n ${cl0}⬤ ${cl7}⬤ ${cl6}⬤ ${cl5}⬤ ${cl4}⬤ ${cl3}⬤ ${cl2}⬤ ${cl1}⬤" 22 | } 23 | 24 | reset="\033[0m" 25 | red="\033[1;31m" 26 | green="\033[1;32m" 27 | yellow="\033[1;33m" 28 | blue="\033[1;34m" 29 | magenta="\033[1;35m" 30 | cyan="\033[1;36m" 31 | white="\033[1;37m" 32 | 33 | cl0="${reset}" 34 | cl1="${red}" 35 | cl2="${green}" 36 | cl3="${yellow}" 37 | cl4="${blue}" 38 | cl5="${magenta}" 39 | cl6="${cyan}" 40 | cl7="${white}" 41 | 42 | image_source="/home/haru/Documents/ASCII Arts/arch.txt" -------------------------------------------------------------------------------- /config/newsboat/config: -------------------------------------------------------------------------------- 1 | #show-read-feeds no 2 | auto-reload yes 3 | 4 | external-url-viewer "urlscan -dc -r 'linkhandler {}'" 5 | 6 | bind-key j down 7 | bind-key k up 8 | bind-key j next articlelist 9 | bind-key k prev articlelist 10 | bind-key J next-feed articlelist 11 | bind-key K prev-feed articlelist 12 | bind-key G end 13 | bind-key g home 14 | bind-key d pagedown 15 | bind-key u pageup 16 | bind-key l open 17 | bind-key h quit 18 | bind-key a toggle-article-read 19 | bind-key n next-unread 20 | bind-key N prev-unread 21 | bind-key D pb-download 22 | bind-key U show-urls 23 | bind-key x pb-delete 24 | 25 | color listnormal cyan default 26 | color listfocus black yellow standout bold 27 | color listnormal_unread blue default 28 | color listfocus_unread yellow default bold 29 | color info red black bold 30 | color article white default bold 31 | 32 | browser linkhandler 33 | macro , open-in-browser 34 | macro w set browser "brave" ; open-in-browser ; set browser linkhandler 35 | macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best" ; open-in-browser ; set browser linkhandler 36 | macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler 37 | macro d set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler 38 | 39 | highlight all "---.*---" yellow 40 | highlight feedlist ".*(0/0))" black 41 | highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold 42 | highlight article "(^Link:.*|^Date:.*)" default default 43 | highlight article "https?://[^ ]+" green default 44 | highlight article "^(Title):.*$" blue default 45 | highlight article "\\[[0-9][0-9]*\\]" magenta default bold 46 | highlight article "\\[image\\ [0-9]+\\]" green default bold 47 | highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold 48 | highlight article ":.*\\(link\\)$" cyan default 49 | highlight article ":.*\\(image\\)$" blue default 50 | highlight article ":.*\\(embedded flash\\)$" magenta default 51 | -------------------------------------------------------------------------------- /config/newsboat/urls: -------------------------------------------------------------------------------- 1 | https://rss.nytimes.com/services/xml/rss/nyt/Politics.xml "~NYT" 2 | https://www.space.com/feeds/all "~Space" 3 | https://www.archlinux.org/feeds/news/ "~Arch Linux" 4 | https://onlinelibrary.wiley.com/feed/23663987/most-recent "~Advanced Therapeutics" 5 | -------------------------------------------------------------------------------- /config/nvim/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: AstroNvim 2 | ko_fi: mehalter 3 | liberapay: mehalter 4 | custom: https://www.buymeacoffee.com/mehalter 5 | -------------------------------------------------------------------------------- /config/nvim/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: r/AstroNvim (Reddit) 4 | url: https://www.reddit.com/r/AstroNvim 5 | about: Ask questions about AstroNvim on the official Subreddit 6 | - name: Discord Chat 7 | url: https://discord.astronvim.com 8 | about: Ask questions and have discussions about AstroNvim on Discord 9 | -------------------------------------------------------------------------------- /config/nvim/.github/ISSUE_TEMPLATE/feature_request.yaml: -------------------------------------------------------------------------------- 1 | name: Feature request 2 | description: Suggest an idea for this project 3 | labels: [enhancement] 4 | 5 | body: 6 | - type: textarea 7 | id: problem 8 | attributes: 9 | label: Is your feature related to a problem? 10 | placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 11 | - type: textarea 12 | id: solution 13 | attributes: 14 | label: Describe the new feature 15 | placeholder: A clear and concise description of what the new feature is. 16 | validations: 17 | required: true 18 | - type: textarea 19 | id: additional-context 20 | attributes: 21 | label: Additional context 22 | placeholder: Add any other context or screenshots about the feature request here. 23 | -------------------------------------------------------------------------------- /config/nvim/.github/PULL_REQUEST_TEMPLATE/chore.md: -------------------------------------------------------------------------------- 1 | Fixes Issue # (If it doesn't fix an issue then delete this line) 2 | 3 | Description: 4 | Describe the refactor or cleanup that was completed 5 | 6 | Other: 7 | Anything else relevant goes here 8 | -------------------------------------------------------------------------------- /config/nvim/.github/PULL_REQUEST_TEMPLATE/feature.md: -------------------------------------------------------------------------------- 1 | Fixes Issue # (If it doesn't fix an issue then delete this line) 2 | 3 | Features Added: 4 | - Plugin Name (Add links if possible too) 5 | 6 | Reasoning: 7 | List why the feature is needed 8 | 9 | Other: 10 | Anything else relevant goes here 11 | -------------------------------------------------------------------------------- /config/nvim/.github/PULL_REQUEST_TEMPLATE/fix.md: -------------------------------------------------------------------------------- 1 | Fixes Issue # (If it doesn't fix an issue then delete this line) 2 | 3 | Bugs Fixed: 4 | - A bullet for each bug fixed and a description 5 | 6 | Other: 7 | Anything else relevant goes here 8 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/conventional_commit.yml: -------------------------------------------------------------------------------- 1 | name: Conventional Commits 2 | 3 | on: 4 | pull_request: 5 | branches: [main] 6 | 7 | jobs: 8 | build: 9 | name: Conventional Commits 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | - uses: webiny/action-conventional-commits@v1.1.0 14 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/docs.yml: -------------------------------------------------------------------------------- 1 | name: Documentation 2 | 3 | on: 4 | push: 5 | branches: ["main"] 6 | pull_request: 7 | 8 | jobs: 9 | docs: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v3 15 | - name: Setup Lua 16 | uses: leafo/gh-actions-lua@v10 17 | with: 18 | luaVersion: 5.4 19 | - name: Install LDoc 20 | uses: leafo/gh-actions-luarocks@v4 21 | - name: Setup dependencies 22 | run: luarocks install ldoc 23 | - name: Build Docs 24 | run: | 25 | ldoc . 26 | - name: Deploy 27 | uses: nwtgck/actions-netlify@v2.0 28 | env: 29 | NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }} 30 | NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} 31 | with: 32 | github-token: ${{ secrets.GITHUB_TOKEN }} 33 | publish-dir: docs 34 | production-deploy: ${{ github.ref == 'refs/heads/main' }} 35 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/luacheck.yml: -------------------------------------------------------------------------------- 1 | name: Lua Linting 2 | 3 | on: 4 | push: 5 | branches: ["main"] 6 | pull_request: 7 | 8 | jobs: 9 | lint: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | - uses: lunarmodules/luacheck@v1 14 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/spell.yml: -------------------------------------------------------------------------------- 1 | name: Spell Check 2 | 3 | on: 4 | pull_request: 5 | 6 | jobs: 7 | typos-check: 8 | name: Spell Check with Typos 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Checkout Actions Repository 12 | uses: actions/checkout@v3 13 | - name: Check spelling 14 | uses: crate-ci/typos@master 15 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | name: "Close stale issues and PRs" 2 | on: 3 | schedule: 4 | - cron: "30 1 * * *" # run at 0130 UTC 5 | 6 | jobs: 7 | stale: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/stale@v8 11 | with: 12 | # default stale time 13 | days-before-stale: 30 14 | days-before-close: 5 15 | # never stale pull requests 16 | days-before-pr-stale: -1 17 | days-before-pr-close: -1 18 | # exclude issues with certain labels 19 | exempt-issue-labels: pinned,wip,security,notice 20 | # never stale issues attached to a milestone 21 | exempt-all-milestones: true 22 | # write message on stale issues 23 | stale-issue-message: > 24 | This issue has been automatically marked as stale because it has not had 25 | recent activity. It will be closed in 5 days if no further activity occurs. 26 | Thank you for your contributions. 27 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/style.yml: -------------------------------------------------------------------------------- 1 | name: Style Check 2 | 3 | on: 4 | push: 5 | branches: ["main"] 6 | pull_request: 7 | 8 | jobs: 9 | style: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | - uses: JohnnyMorganz/stylua-action@v3 14 | with: 15 | token: ${{ secrets.GITHUB_TOKEN }} 16 | version: latest 17 | # CLI arguments 18 | args: --check . 19 | -------------------------------------------------------------------------------- /config/nvim/.github/workflows/updater.yml: -------------------------------------------------------------------------------- 1 | name: Updater Comment 2 | 3 | on: 4 | pull_request_target: 5 | paths: ["**.lua"] 6 | types: ["opened"] 7 | 8 | jobs: 9 | updater-comment: 10 | name: Comment updater settings 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/github-script@v6 14 | with: 15 | script: | 16 | const src = context.payload.pull_request.head 17 | const user = src.user.login 18 | const tab = " " 19 | let settings = tab + "updater = {\n" + tab + tab + `channel = "nightly",\n` 20 | if (src.ref != "nightly") { 21 | settings += tab + tab + `branch = "${src.ref}",\n` 22 | } 23 | if (user != "AstroNvim") { 24 | settings += tab + tab + `remote = "${user}",\n` 25 | settings += tab + tab + `remotes = {\n` 26 | settings += tab + tab + tab + `["${user}"] = "${user}/${src.repo.name}",\n` 27 | settings += tab + tab + `},\n` 28 | } 29 | settings += tab + "}," 30 | github.rest.issues.createComment({ 31 | issue_number: context.issue.number, 32 | owner: context.repo.owner, 33 | repo: context.repo.repo, 34 | body: "Use the following `updater` settings in your `user/init.lua` file, restart, and run `:AstroUpdate` to test this pull request:\n```\n" + settings + "\n```", 35 | }) 36 | -------------------------------------------------------------------------------- /config/nvim/.gitignore: -------------------------------------------------------------------------------- 1 | # Project gitignore 2 | .luarc.json 3 | after 4 | coc-settings.json 5 | colors 6 | docs 7 | ftplugin 8 | ginit.vim 9 | lua/user 10 | neoconf.json 11 | plugin 12 | queries 13 | spell 14 | 15 | # Global gitignore 16 | # ---------------- 17 | 18 | # Mac OS X 19 | .AppleDouble 20 | .DS_Store 21 | .LSOverride 22 | ._* 23 | 24 | # Windoze 25 | $RECYCLE.BIN/ 26 | Thumbs.db 27 | Thumbs.db:encryptable 28 | ehthumbs.db 29 | ehthumbs_vista.db 30 | 31 | # (Neo)Vim 32 | *~ 33 | .netrwhist 34 | Session.vim 35 | Sessionx.vim 36 | [._]*.s[a-v][a-z] 37 | [._]*.sw[a-p] 38 | [._]s[a-rt-v][a-z] 39 | [._]ss[a-gi-z] 40 | [._]sw[a-p] 41 | [._]*.un~ 42 | tags 43 | 44 | # VS Code 45 | .history 46 | .vscode 47 | 48 | # JetBrains 49 | .idea 50 | -------------------------------------------------------------------------------- /config/nvim/.luacheckrc: -------------------------------------------------------------------------------- 1 | -- Global objects 2 | globals = { 3 | "astronvim", 4 | "astronvim_installation", 5 | "vim", 6 | "bit", 7 | } 8 | 9 | -- Rerun tests only if their modification time changed 10 | cache = true 11 | 12 | -- Don't report unused self arguments of methods 13 | self = false 14 | 15 | ignore = { 16 | "631", -- max_line_length 17 | "212/_.*", -- unused argument, for vars with "_" prefix 18 | } 19 | -------------------------------------------------------------------------------- /config/nvim/.neoconf.json: -------------------------------------------------------------------------------- 1 | { 2 | "neodev": { 3 | "library": { 4 | "enabled": true, 5 | "plugins": true 6 | } 7 | }, 8 | "neoconf": { 9 | "plugins": { 10 | "lua_ls": { 11 | "enabled": true 12 | } 13 | } 14 | }, 15 | "lspconfig": { 16 | "lua_ls": { 17 | "Lua.format.enable": false 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /config/nvim/.stylua.toml: -------------------------------------------------------------------------------- 1 | column_width = 120 2 | line_endings = "Unix" 3 | indent_type = "Spaces" 4 | indent_width = 2 5 | quote_style = "AutoPreferDouble" 6 | call_parentheses = "None" 7 | collapse_simple_statement = "Always" 8 | -------------------------------------------------------------------------------- /config/nvim/.styluaignore: -------------------------------------------------------------------------------- 1 | lua/lazy_snapshot.lua 2 | -------------------------------------------------------------------------------- /config/nvim/.typos.toml: -------------------------------------------------------------------------------- 1 | # See https://github.com/crate-ci/typos/blob/master/docs/reference.md to configure typos 2 | [default.extend-words] 3 | enew = "enew" 4 | fo = "fo" 5 | [files] 6 | extend-exclude = ["LICENSE"] 7 | -------------------------------------------------------------------------------- /config/nvim/config.ld: -------------------------------------------------------------------------------- 1 | project='AstroNvim' 2 | title='AstroNvim API' 3 | description='Documentation of AstroNvim\'s core API' 4 | format = 'markdown' 5 | file='lua' 6 | dir='docs' 7 | no_space_before_args=true 8 | -------------------------------------------------------------------------------- /config/nvim/init.lua: -------------------------------------------------------------------------------- 1 | if vim.loader and vim.fn.has "nvim-0.9.1" == 1 then vim.loader.enable() end 2 | 3 | for _, source in ipairs { 4 | "astronvim.bootstrap", 5 | "astronvim.options", 6 | "astronvim.lazy", 7 | "astronvim.autocmds", 8 | "astronvim.mappings", 9 | } do 10 | local status_ok, fault = pcall(require, source) 11 | if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault) end 12 | end 13 | 14 | if astronvim.default_colorscheme then 15 | if not pcall(vim.cmd.colorscheme, astronvim.default_colorscheme) then 16 | require("astronvim.utils").notify( 17 | ("Error setting up colorscheme: `%s`"):format(astronvim.default_colorscheme), 18 | vim.log.levels.ERROR 19 | ) 20 | end 21 | end 22 | 23 | require("astronvim.utils").conditional_func(astronvim.user_opts("polish", nil, false), true) 24 | -------------------------------------------------------------------------------- /config/nvim/lua/astronvim/icons/nerd_font.lua: -------------------------------------------------------------------------------- 1 | return { 2 | ActiveLSP = "", 3 | ActiveTS = "", 4 | ArrowLeft = "", 5 | ArrowRight = "", 6 | Bookmarks = "", 7 | BufferClose = "󰅖", 8 | DapBreakpoint = "", 9 | DapBreakpointCondition = "", 10 | DapBreakpointRejected = "", 11 | DapLogPoint = ".>", 12 | DapStopped = "󰁕", 13 | Debugger = "", 14 | DefaultFile = "󰈙", 15 | Diagnostic = "󰒡", 16 | DiagnosticError = "", 17 | DiagnosticHint = "󰌵", 18 | DiagnosticInfo = "󰋼", 19 | DiagnosticWarn = "", 20 | Ellipsis = "…", 21 | FileNew = "", 22 | FileModified = "", 23 | FileReadOnly = "", 24 | FoldClosed = "", 25 | FoldOpened = "", 26 | FoldSeparator = " ", 27 | FolderClosed = "", 28 | FolderEmpty = "", 29 | FolderOpen = "", 30 | Git = "󰊢", 31 | GitAdd = "", 32 | GitBranch = "", 33 | GitChange = "", 34 | GitConflict = "", 35 | GitDelete = "", 36 | GitIgnored = "◌", 37 | GitRenamed = "➜", 38 | GitSign = "▎", 39 | GitStaged = "✓", 40 | GitUnstaged = "✗", 41 | GitUntracked = "★", 42 | LSPLoaded = "", -- TODO: Remove unused icon in AstroNvim v4 43 | LSPLoading1 = "", 44 | LSPLoading2 = "󰀚", 45 | LSPLoading3 = "", 46 | MacroRecording = "", 47 | Package = "󰏖", 48 | Paste = "󰅌", 49 | Refresh = "", 50 | Search = "", 51 | Selected = "❯", 52 | Session = "󱂬", 53 | Sort = "󰒺", 54 | Spellcheck = "󰓆", 55 | Tab = "󰓩", 56 | TabClose = "󰅙", 57 | Terminal = "", 58 | Window = "", 59 | WordFile = "󰈭", 60 | } 61 | -------------------------------------------------------------------------------- /config/nvim/lua/astronvim/icons/text.lua: -------------------------------------------------------------------------------- 1 | return { 2 | ActiveLSP = "LSP:", 3 | ArrowLeft = "<", 4 | ArrowRight = ">", 5 | BufferClose = "x", 6 | DapBreakpoint = "B", 7 | DapBreakpointCondition = "C", 8 | DapBreakpointRejected = "R", 9 | DapLogPoint = "L", 10 | DapStopped = ">", 11 | DefaultFile = "[F]", 12 | DiagnosticError = "X", 13 | DiagnosticHint = "?", 14 | DiagnosticInfo = "i", 15 | DiagnosticWarn = "!", 16 | Ellipsis = "...", 17 | FileModified = "*", 18 | FileReadOnly = "[lock]", 19 | FoldClosed = "+", 20 | FoldOpened = "-", 21 | FoldSeparator = " ", 22 | FolderClosed = "[D]", 23 | FolderEmpty = "[E]", 24 | FolderOpen = "[O]", 25 | GitAdd = "[+]", 26 | GitChange = "[/]", 27 | GitConflict = "[!]", 28 | GitDelete = "[-]", 29 | GitIgnored = "[I]", 30 | GitRenamed = "[R]", 31 | GitSign = "|", 32 | GitStaged = "[S]", 33 | GitUnstaged = "[U]", 34 | GitUntracked = "[?]", 35 | MacroRecording = "Recording:", 36 | Paste = "[PASTE]", 37 | Search = "?", 38 | Selected = "*", 39 | Spellcheck = "[SPELL]", 40 | TabClose = "X", 41 | } 42 | -------------------------------------------------------------------------------- /config/nvim/lua/astronvim/utils/ffi.lua: -------------------------------------------------------------------------------- 1 | -- ### AstroNvim C Extensions 2 | 3 | local ffi = require "ffi" 4 | 5 | -- Custom C extension to get direct fold information from Neovim 6 | ffi.cdef [[ 7 | typedef struct {} Error; 8 | typedef struct {} win_T; 9 | typedef struct { 10 | int start; // line number where deepest fold starts 11 | int level; // fold level, when zero other fields are N/A 12 | int llevel; // lowest level that starts in v:lnum 13 | int lines; // number of lines from v:lnum to end of closed fold 14 | } foldinfo_T; 15 | foldinfo_T fold_info(win_T* wp, int lnum); 16 | win_T *find_window_by_handle(int Window, Error *err); 17 | int compute_foldcolumn(win_T *wp, int col); 18 | ]] 19 | 20 | return ffi 21 | -------------------------------------------------------------------------------- /config/nvim/lua/astronvim/utils/status.lua: -------------------------------------------------------------------------------- 1 | return { 2 | component = require "astronvim.utils.status.component", 3 | condition = require "astronvim.utils.status.condition", 4 | env = require "astronvim.utils.status.env", 5 | heirline = require "astronvim.utils.status.heirline", 6 | hl = require "astronvim.utils.status.hl", 7 | init = require "astronvim.utils.status.init", 8 | provider = require "astronvim.utils.status.provider", 9 | utils = require "astronvim.utils.status.utils", 10 | } 11 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/alpha.lua: -------------------------------------------------------------------------------- 1 | return { 2 | "goolord/alpha-nvim", 3 | cmd = "Alpha", 4 | opts = function() 5 | local dashboard = require "alpha.themes.dashboard" 6 | dashboard.section.header.val = { 7 | " █████ ███████ ████████ ██████ ██████", 8 | "██ ██ ██ ██ ██ ██ ██ ██", 9 | "███████ ███████ ██ ██████ ██ ██", 10 | "██ ██ ██ ██ ██ ██ ██ ██", 11 | "██ ██ ███████ ██ ██ ██ ██████", 12 | " ", 13 | " ███ ██ ██ ██ ██ ███ ███", 14 | " ████ ██ ██ ██ ██ ████ ████", 15 | " ██ ██ ██ ██ ██ ██ ██ ████ ██", 16 | " ██ ██ ██ ██ ██ ██ ██ ██ ██", 17 | " ██ ████ ████ ██ ██ ██", 18 | } 19 | dashboard.section.header.opts.hl = "DashboardHeader" 20 | dashboard.section.footer.opts.hl = "DashboardFooter" 21 | 22 | local button, get_icon = require("astronvim.utils").alpha_button, require("astronvim.utils").get_icon 23 | dashboard.section.buttons.val = { 24 | button("LDR n ", get_icon("FileNew", 2, true) .. "New File "), 25 | button("LDR f f", get_icon("Search", 2, true) .. "Find File "), 26 | button("LDR f o", get_icon("DefaultFile", 2, true) .. "Recents "), 27 | button("LDR f w", get_icon("WordFile", 2, true) .. "Find Word "), 28 | button("LDR f '", get_icon("Bookmarks", 2, true) .. "Bookmarks "), 29 | button("LDR S l", get_icon("Refresh", 2, true) .. "Last Session "), 30 | } 31 | 32 | dashboard.config.layout = { 33 | { type = "padding", val = vim.fn.max { 2, vim.fn.floor(vim.fn.winheight(0) * 0.2) } }, 34 | dashboard.section.header, 35 | { type = "padding", val = 5 }, 36 | dashboard.section.buttons, 37 | { type = "padding", val = 3 }, 38 | dashboard.section.footer, 39 | } 40 | dashboard.config.opts.noautocmd = true 41 | return dashboard 42 | end, 43 | config = require "plugins.configs.alpha", 44 | } 45 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/alpha.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | require("alpha").setup(opts.config) 3 | 4 | vim.api.nvim_create_autocmd("User", { 5 | pattern = "LazyVimStarted", 6 | desc = "Add Alpha dashboard footer", 7 | once = true, 8 | callback = function() 9 | local stats = require("lazy").stats() 10 | local ms = math.floor(stats.startuptime * 100 + 0.5) / 100 11 | opts.section.footer.val = { "AstroNvim loaded " .. stats.count .. " plugins  in " .. ms .. "ms" } 12 | pcall(vim.cmd.AlphaRedraw) 13 | end, 14 | }) 15 | end 16 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/cmp-dap.lua: -------------------------------------------------------------------------------- 1 | return function() 2 | require("cmp").setup.filetype({ "dap-repl", "dapui_watches", "dapui_hover" }, { 3 | sources = { 4 | { name = "dap" }, 5 | }, 6 | }) 7 | end 8 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/guess-indent.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | require("guess-indent").setup(opts) 3 | vim.cmd.lua { args = { "require('guess-indent').set_from_buffer('auto_cmd')" }, mods = { silent = true } } 4 | end 5 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/lspkind.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) require("lspkind").init(opts) end 2 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/luasnip.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | if opts then require("luasnip").config.setup(opts) end 3 | vim.tbl_map(function(type) require("luasnip.loaders.from_" .. type).lazy_load() end, { "vscode", "snipmate", "lua" }) 4 | end 5 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/mason-lspconfig.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | require("mason-lspconfig").setup(opts) 3 | require("astronvim.utils").event "MasonLspSetup" 4 | end 5 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/mason-null-ls.lua: -------------------------------------------------------------------------------- 1 | -- TODO: REMOVE THIS UNNECESSARY FILE 2 | return function(_, opts) 3 | local mason_null_ls = require "mason-null-ls" 4 | mason_null_ls.setup(opts) 5 | end 6 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/mason-nvim-dap.lua: -------------------------------------------------------------------------------- 1 | -- TODO: remove unnecessary file in AstroNvim v4 2 | return function(_, opts) 3 | local mason_nvim_dap = require "mason-nvim-dap" 4 | mason_nvim_dap.setup(opts) 5 | end 6 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/mason.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | require("mason").setup(opts) 3 | 4 | -- TODO: AstroNvim v4: change these auto command names to not conflict with core Mason commands 5 | local cmd = vim.api.nvim_create_user_command 6 | cmd("MasonUpdate", function(options) require("astronvim.utils.mason").update(options.fargs) end, { 7 | nargs = "*", 8 | desc = "Update Mason Package", 9 | complete = function(arg_lead) 10 | local _ = require "mason-core.functional" 11 | return _.sort_by( 12 | _.identity, 13 | _.filter(_.starts_with(arg_lead), require("mason-registry").get_installed_package_names()) 14 | ) 15 | end, 16 | }) 17 | cmd( 18 | "MasonUpdateAll", 19 | function() require("astronvim.utils.mason").update_all() end, 20 | { desc = "Update Mason Packages" } 21 | ) 22 | 23 | for _, plugin in ipairs { "mason-lspconfig", "mason-null-ls", "mason-nvim-dap" } do 24 | pcall(require, plugin) 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/notify.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | local notify = require "notify" 3 | notify.setup(opts) 4 | vim.notify = notify 5 | end 6 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/nvim-autopairs.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | local npairs = require "nvim-autopairs" 3 | npairs.setup(opts) 4 | 5 | if not vim.g.autopairs_enabled then npairs.disable() end 6 | local cmp_status_ok, cmp = pcall(require, "cmp") 7 | if cmp_status_ok then 8 | cmp.event:on("confirm_done", require("nvim-autopairs.completion.cmp").on_confirm_done { tex = false }) 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/nvim-dap-ui.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | local dap, dapui = require "dap", require "dapui" 3 | dap.listeners.after.event_initialized["dapui_config"] = function() dapui.open() end 4 | dap.listeners.before.event_terminated["dapui_config"] = function() dapui.close() end 5 | dap.listeners.before.event_exited["dapui_config"] = function() dapui.close() end 6 | dapui.setup(opts) 7 | end 8 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/nvim-treesitter.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | if type(opts.ensure_installed) == "table" then 3 | local added = {} 4 | opts.ensure_installed = vim.tbl_filter(function(parser) 5 | if added[parser] then return false end 6 | added[parser] = true 7 | return true 8 | end, opts.ensure_installed) 9 | end 10 | require("nvim-treesitter.configs").setup(opts) 11 | end 12 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/nvim-web-devicons.lua: -------------------------------------------------------------------------------- 1 | -- TODO: remove unnecessary file in AstroNvim v4 2 | return function(_, opts) 3 | require("nvim-web-devicons").set_default_icon(require("astronvim.utils").get_icon "DefaultFile", "#6d8086", "66") 4 | require("nvim-web-devicons").set_icon(opts) 5 | end 6 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/telescope.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | local telescope = require "telescope" 3 | telescope.setup(opts) 4 | local utils = require "astronvim.utils" 5 | local conditional_func = utils.conditional_func 6 | conditional_func(telescope.load_extension, pcall(require, "notify"), "notify") 7 | conditional_func(telescope.load_extension, pcall(require, "aerial"), "aerial") 8 | conditional_func(telescope.load_extension, utils.is_available "telescope-fzf-native.nvim", "fzf") 9 | end 10 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/configs/which-key.lua: -------------------------------------------------------------------------------- 1 | return function(_, opts) 2 | require("which-key").setup(opts) 3 | require("astronvim.utils").which_key_register() 4 | end 5 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/dap.lua: -------------------------------------------------------------------------------- 1 | return { 2 | "mfussenegger/nvim-dap", 3 | enabled = vim.fn.has "win32" == 0, 4 | dependencies = { 5 | { 6 | "jay-babu/mason-nvim-dap.nvim", 7 | dependencies = { "nvim-dap" }, 8 | cmd = { "DapInstall", "DapUninstall" }, 9 | opts = { handlers = {} }, 10 | }, 11 | { 12 | "rcarriga/nvim-dap-ui", 13 | opts = { floating = { border = "rounded" } }, 14 | config = require "plugins.configs.nvim-dap-ui", 15 | }, 16 | { 17 | "rcarriga/cmp-dap", 18 | dependencies = { "nvim-cmp" }, 19 | config = require "plugins.configs.cmp-dap", 20 | }, 21 | }, 22 | event = "User AstroFile", 23 | } 24 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/git.lua: -------------------------------------------------------------------------------- 1 | local get_icon = require("astronvim.utils").get_icon 2 | return { 3 | "lewis6991/gitsigns.nvim", 4 | enabled = vim.fn.executable "git" == 1, 5 | event = "User AstroGitFile", 6 | opts = { 7 | signs = { 8 | add = { text = get_icon "GitSign" }, 9 | change = { text = get_icon "GitSign" }, 10 | delete = { text = get_icon "GitSign" }, 11 | topdelete = { text = get_icon "GitSign" }, 12 | changedelete = { text = get_icon "GitSign" }, 13 | untracked = { text = get_icon "GitSign" }, 14 | }, 15 | worktrees = vim.g.git_worktrees, 16 | }, 17 | } 18 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/mason.lua: -------------------------------------------------------------------------------- 1 | return { 2 | { 3 | "williamboman/mason.nvim", 4 | cmd = { 5 | "Mason", 6 | "MasonInstall", 7 | "MasonUninstall", 8 | "MasonUninstallAll", 9 | "MasonLog", 10 | "MasonUpdate", -- AstroNvim extension here as well 11 | "MasonUpdateAll", -- AstroNvim specific 12 | }, 13 | opts = { 14 | ui = { 15 | icons = { 16 | package_installed = "✓", 17 | package_uninstalled = "✗", 18 | package_pending = "⟳", 19 | }, 20 | }, 21 | }, 22 | build = ":MasonUpdate", 23 | config = require "plugins.configs.mason", 24 | }, 25 | } 26 | -------------------------------------------------------------------------------- /config/nvim/lua/plugins/telescope.lua: -------------------------------------------------------------------------------- 1 | return { 2 | "nvim-telescope/telescope.nvim", 3 | dependencies = { 4 | { "nvim-telescope/telescope-fzf-native.nvim", enabled = vim.fn.executable "make" == 1, build = "make" }, 5 | }, 6 | cmd = "Telescope", 7 | opts = function() 8 | local actions = require "telescope.actions" 9 | local get_icon = require("astronvim.utils").get_icon 10 | return { 11 | defaults = { 12 | git_worktrees = vim.g.git_worktrees, 13 | prompt_prefix = get_icon("Selected", 1), 14 | selection_caret = get_icon("Selected", 1), 15 | path_display = { "truncate" }, 16 | sorting_strategy = "ascending", 17 | layout_config = { 18 | horizontal = { prompt_position = "top", preview_width = 0.55 }, 19 | vertical = { mirror = false }, 20 | width = 0.87, 21 | height = 0.80, 22 | preview_cutoff = 120, 23 | }, 24 | mappings = { 25 | i = { 26 | [""] = actions.cycle_history_next, 27 | [""] = actions.cycle_history_prev, 28 | [""] = actions.move_selection_next, 29 | [""] = actions.move_selection_previous, 30 | }, 31 | n = { q = actions.close }, 32 | }, 33 | }, 34 | } 35 | end, 36 | config = require "plugins.configs.telescope", 37 | } 38 | -------------------------------------------------------------------------------- /config/nvim/lua/resession/extensions/astronvim.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | M.on_save = function() 4 | -- initiate astronvim data 5 | local data = { bufnrs = {}, tabs = {} } 6 | 7 | local buf_utils = require "astronvim.utils.buffer" 8 | 9 | data.current_buf = buf_utils.current_buf 10 | data.last_buf = buf_utils.last_buf 11 | 12 | -- save tab scoped buffers and buffer numbers from buffer name 13 | for new_tabpage, tabpage in ipairs(vim.api.nvim_list_tabpages()) do 14 | data.tabs[new_tabpage] = vim.t[tabpage].bufs 15 | for _, bufnr in ipairs(data.tabs[new_tabpage]) do 16 | data.bufnrs[vim.api.nvim_buf_get_name(bufnr)] = bufnr 17 | end 18 | end 19 | 20 | return data 21 | end 22 | 23 | M.on_load = function(data) 24 | -- create map from old buffer numbers to new buffer numbers 25 | local new_bufnrs = {} 26 | for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do 27 | local bufname = vim.api.nvim_buf_get_name(bufnr) 28 | if bufname and data.bufnrs[bufname] then new_bufnrs[data.bufnrs[bufname]] = bufnr end 29 | end 30 | -- build new tab scoped buffer lists 31 | for tabpage, tabs in pairs(data.tabs) do 32 | vim.t[tabpage].bufs = vim.tbl_map(function(bufnr) return new_bufnrs[bufnr] end, tabs) 33 | end 34 | 35 | local buf_utils = require "astronvim.utils.buffer" 36 | buf_utils.current_buf = new_bufnrs[data.current_buf] 37 | buf_utils.last_buf = new_bufnrs[data.last_buf] 38 | 39 | require("astronvim.utils").event "BufsUpdated" 40 | 41 | if vim.opt.bufhidden:get() == "wipe" and vim.fn.bufnr() ~= buf_utils.current_buf then 42 | vim.cmd.b(buf_utils.current_buf) 43 | end 44 | end 45 | 46 | return M 47 | -------------------------------------------------------------------------------- /config/nvim/lua/user/autocommands.lua: -------------------------------------------------------------------------------- 1 | vim.cmd [[ 2 | augroup _general_settings 3 | autocmd! 4 | autocmd FileType qf,help,man,lspinfo nnoremap q :close 5 | autocmd TextYankPost * silent!lua require('vim.highlight').on_yank({higroup = 'Visual', timeout = 200}) 6 | autocmd BufWinEnter * :set formatoptions-=cro 7 | autocmd FileType qf set nobuflisted 8 | augroup end 9 | 10 | augroup _git 11 | autocmd! 12 | autocmd FileType gitcommit setlocal wrap 13 | autocmd FileType gitcommit setlocal spell 14 | augroup end 15 | 16 | augroup _markdown 17 | autocmd! 18 | autocmd FileType markdown setlocal wrap 19 | autocmd FileType markdown setlocal spell 20 | augroup end 21 | 22 | augroup _auto_resize 23 | autocmd! 24 | autocmd VimResized * tabdo wincmd = 25 | augroup end 26 | 27 | augroup _alpha 28 | autocmd! 29 | autocmd User AlphaReady set showtabline=0 | autocmd BufUnload set showtabline=2 30 | augroup end 31 | ]] 32 | 33 | -- Autoformat 34 | -- augroup _lsp 35 | -- autocmd! 36 | -- autocmd BufWritePre * lua vim.lsp.buf.formatting() 37 | -- augroup end 38 | -------------------------------------------------------------------------------- /config/nvim/lua/user/autopairs.lua: -------------------------------------------------------------------------------- 1 | -- Setup nvim-cmp. 2 | local status_ok, npairs = pcall(require, "nvim-autopairs") 3 | if not status_ok then 4 | return 5 | end 6 | 7 | npairs.setup { 8 | check_ts = true, 9 | ts_config = { 10 | lua = { "string", "source" }, 11 | javascript = { "string", "template_string" }, 12 | java = false, 13 | }, 14 | disable_filetype = { "TelescopePrompt", "spectre_panel" }, 15 | fast_wrap = { 16 | map = "", 17 | chars = { "{", "[", "(", '"', "'" }, 18 | pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""), 19 | offset = 0, -- Offset from pattern match 20 | end_key = "$", 21 | keys = "qwertyuiopzxcvbnmasdfghjkl", 22 | check_comma = true, 23 | highlight = "PmenuSel", 24 | highlight_grey = "LineNr", 25 | }, 26 | } 27 | 28 | local cmp_autopairs = require "nvim-autopairs.completion.cmp" 29 | local cmp_status_ok, cmp = pcall(require, "cmp") 30 | if not cmp_status_ok then 31 | return 32 | end 33 | cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } }) 34 | -------------------------------------------------------------------------------- /config/nvim/lua/user/colorscheme.lua: -------------------------------------------------------------------------------- 1 | local colorscheme = "vscode" 2 | 3 | local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) 4 | if not status_ok then 5 | return 6 | end 7 | -------------------------------------------------------------------------------- /config/nvim/lua/user/comment.lua: -------------------------------------------------------------------------------- 1 | local status_ok, comment = pcall(require, "Comment") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | comment.setup { 7 | pre_hook = function(ctx) 8 | local U = require "Comment.utils" 9 | 10 | local status_utils_ok, utils = pcall(require, "ts_context_commentstring.utils") 11 | if not status_utils_ok then 12 | return 13 | end 14 | 15 | local location = nil 16 | if ctx.ctype == U.ctype.block then 17 | location = utils.get_cursor_location() 18 | elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then 19 | location = utils.get_visual_start_location() 20 | end 21 | 22 | local status_internals_ok, internals = pcall(require, "ts_context_commentstring.internals") 23 | if not status_internals_ok then 24 | return 25 | end 26 | 27 | return internals.calculate_commentstring { 28 | key = ctx.ctype == U.ctype.line and "__default" or "__multiline", 29 | location = location, 30 | } 31 | end, 32 | } 33 | 34 | -------------------------------------------------------------------------------- /config/nvim/lua/user/dracula.lua: -------------------------------------------------------------------------------- 1 | -- require('dracula').setup{} 2 | local dracula = require("dracula") 3 | dracula.setup({ 4 | -- customize dracula color palette 5 | colors = { 6 | -- bg = "#282A36", 7 | bg = "#11081e", 8 | fg = "#F8F8F2", 9 | selection = "#44475A", 10 | comment = "#6272A4", 11 | red = "#FF5555", 12 | orange = "#FFB86C", 13 | yellow = "#F1FA8C", 14 | green = "#50fa7b", 15 | purple = "#BD93F9", 16 | cyan = "#8BE9FD", 17 | pink = "#FF79C6", 18 | bright_red = "#FF6E6E", 19 | bright_green = "#69FF94", 20 | bright_yellow = "#FFFFA5", 21 | bright_blue = "#D6ACFF", 22 | bright_magenta = "#FF92DF", 23 | bright_cyan = "#A4FFFF", 24 | bright_white = "#FFFFFF", 25 | menu = "#11081e", 26 | visual = "#3E4452", 27 | gutter_fg = "#4B5263", 28 | nontext = "#3B4048", 29 | }, 30 | }) 31 | -------------------------------------------------------------------------------- /config/nvim/lua/user/gitsigns.lua: -------------------------------------------------------------------------------- 1 | local status_ok, gitsigns = pcall(require, "gitsigns") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | gitsigns.setup { 7 | signs = { 8 | add = { hl = "GitSignsAdd", text = "▎", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" }, 9 | change = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" }, 10 | delete = { hl = "GitSignsDelete", text = "契", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" }, 11 | topdelete = { hl = "GitSignsDelete", text = "契", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" }, 12 | changedelete = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" }, 13 | }, 14 | signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` 15 | numhl = false, -- Toggle with `:Gitsigns toggle_numhl` 16 | linehl = false, -- Toggle with `:Gitsigns toggle_linehl` 17 | word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` 18 | watch_gitdir = { 19 | interval = 1000, 20 | follow_files = true, 21 | }, 22 | attach_to_untracked = true, 23 | current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` 24 | current_line_blame_opts = { 25 | virt_text = true, 26 | virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align' 27 | delay = 1000, 28 | ignore_whitespace = false, 29 | }, 30 | current_line_blame_formatter_opts = { 31 | relative_time = false, 32 | }, 33 | sign_priority = 6, 34 | update_debounce = 100, 35 | status_formatter = nil, -- Use default 36 | max_file_length = 40000, 37 | preview_config = { 38 | -- Options passed to nvim_open_win 39 | border = "single", 40 | style = "minimal", 41 | relative = "cursor", 42 | row = 0, 43 | col = 1, 44 | }, 45 | yadm = { 46 | enable = false, 47 | }, 48 | } 49 | -------------------------------------------------------------------------------- /config/nvim/lua/user/goyo.lua: -------------------------------------------------------------------------------- 1 | vim.cmd([[ 2 | autocmd! User GoyoEnter Limelight 3 | autocmd! User GoyoLeave Limelight! 4 | ]]) 5 | -------------------------------------------------------------------------------- /config/nvim/lua/user/impatient.lua: -------------------------------------------------------------------------------- 1 | local status_ok, impatient = pcall(require, "impatient") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | impatient.enable_profile() 7 | -------------------------------------------------------------------------------- /config/nvim/lua/user/latexpr.lua: -------------------------------------------------------------------------------- 1 | vim.cmd([[ 2 | let g:livepreview_previewer = 'zathura' 3 | let g:livepreview_engine = 'xelatex' 4 | let g:livepreview_cursorhold_recompile = 0 5 | ]]) 6 | -------------------------------------------------------------------------------- /config/nvim/lua/user/lsp/init.lua: -------------------------------------------------------------------------------- 1 | local status_ok, _ = pcall(require, "lspconfig") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | require "user.lsp.mason" 7 | require("user.lsp.handlers").setup() 8 | require "user.lsp.null-ls" 9 | -------------------------------------------------------------------------------- /config/nvim/lua/user/lsp/mason.lua: -------------------------------------------------------------------------------- 1 | local servers = { 2 | "lua_ls", 3 | "texlab", 4 | "cssls", 5 | "r_language_server", 6 | "html", 7 | "pyright", 8 | "bashls", 9 | "jsonls", 10 | } 11 | 12 | local settings = { 13 | ui = { 14 | border = "none", 15 | icons = { 16 | package_installed = "◍", 17 | package_pending = "◍", 18 | package_uninstalled = "◍", 19 | }, 20 | }, 21 | log_level = vim.log.levels.INFO, 22 | max_concurrent_installers = 4, 23 | } 24 | 25 | require("mason").setup(settings) 26 | require("mason-lspconfig").setup({ 27 | ensure_installed = servers, 28 | automatic_installation = true, 29 | }) 30 | 31 | local lspconfig_status_ok, lspconfig = pcall(require, "lspconfig") 32 | if not lspconfig_status_ok then 33 | return 34 | end 35 | 36 | local opts = {} 37 | 38 | for _, server in pairs(servers) do 39 | opts = { 40 | on_attach = require("user.lsp.handlers").on_attach, 41 | capabilities = require("user.lsp.handlers").capabilities, 42 | } 43 | 44 | server = vim.split(server, "@")[1] 45 | 46 | local require_ok, conf_opts = pcall(require, "user.lsp.settings." .. server) 47 | if require_ok then 48 | opts = vim.tbl_deep_extend("force", conf_opts, opts) 49 | end 50 | 51 | lspconfig[server].setup(opts) 52 | end 53 | -------------------------------------------------------------------------------- /config/nvim/lua/user/lsp/null-ls.lua: -------------------------------------------------------------------------------- 1 | local null_ls_status_ok, null_ls = pcall(require, "null-ls") 2 | if not null_ls_status_ok then 3 | return 4 | end 5 | 6 | -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting 7 | local formatting = null_ls.builtins.formatting 8 | -- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics 9 | local diagnostics = null_ls.builtins.diagnostics 10 | 11 | null_ls.setup({ 12 | debug = false, 13 | sources = { 14 | formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }), 15 | formatting.black.with({ extra_args = { "--fast" } }), 16 | formatting.stylua, 17 | -- diagnostics.flake8 18 | }, 19 | }) 20 | -------------------------------------------------------------------------------- /config/nvim/lua/user/lsp/settings/pyright.lua: -------------------------------------------------------------------------------- 1 | return { 2 | settings = { 3 | python = { 4 | analysis = { 5 | typeCheckingMode = "off", 6 | }, 7 | }, 8 | }, 9 | } 10 | -------------------------------------------------------------------------------- /config/nvim/lua/user/lsp/settings/sumneko_lua.lua: -------------------------------------------------------------------------------- 1 | return { 2 | settings = { 3 | 4 | Lua = { 5 | diagnostics = { 6 | globals = { "vim" }, 7 | }, 8 | workspace = { 9 | library = { 10 | [vim.fn.expand("$VIMRUNTIME/lua")] = true, 11 | [vim.fn.stdpath("config") .. "/lua"] = true, 12 | }, 13 | }, 14 | }, 15 | }, 16 | } 17 | -------------------------------------------------------------------------------- /config/nvim/lua/user/monokai.lua: -------------------------------------------------------------------------------- 1 | require('monokai').setup {} 2 | require('monokai').setup { palette = require('monokai').pro } 3 | require('monokai').setup { palette = require('monokai').soda } 4 | require('monokai').setup { palette = require('monokai').ristretto } 5 | -------------------------------------------------------------------------------- /config/nvim/lua/user/nvim-tree.lua: -------------------------------------------------------------------------------- 1 | local status_ok, nvim_tree = pcall(require, "nvim-tree") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config") 7 | if not config_status_ok then 8 | return 9 | end 10 | 11 | local tree_cb = nvim_tree_config.nvim_tree_callback 12 | 13 | nvim_tree.setup { 14 | update_focused_file = { 15 | enable = true, 16 | update_cwd = true, 17 | }, 18 | renderer = { 19 | root_folder_modifier = ":t", 20 | icons = { 21 | glyphs = { 22 | default = "", 23 | symlink = "", 24 | folder = { 25 | arrow_open = "", 26 | arrow_closed = "", 27 | default = "", 28 | open = "", 29 | empty = "", 30 | empty_open = "", 31 | symlink = "", 32 | symlink_open = "", 33 | }, 34 | git = { 35 | unstaged = "", 36 | staged = "S", 37 | unmerged = "", 38 | renamed = "➜", 39 | untracked = "U", 40 | deleted = "", 41 | ignored = "◌", 42 | }, 43 | }, 44 | }, 45 | }, 46 | diagnostics = { 47 | enable = true, 48 | show_on_dirs = true, 49 | icons = { 50 | hint = "", 51 | info = "", 52 | warning = "", 53 | error = "", 54 | }, 55 | }, 56 | view = { 57 | width = 20, 58 | side = "left", 59 | mappings = { 60 | list = { 61 | { key = { "l", "", "o" }, cb = tree_cb "edit" }, 62 | { key = "h", cb = tree_cb "close_node" }, 63 | { key = "v", cb = tree_cb "vsplit" }, 64 | }, 65 | }, 66 | }, 67 | } 68 | -------------------------------------------------------------------------------- /config/nvim/lua/user/project.lua: -------------------------------------------------------------------------------- 1 | local status_ok, project = pcall(require, "project_nvim") 2 | if not status_ok then 3 | return 4 | end 5 | project.setup({ 6 | ---@usage set to false to disable project.nvim. 7 | --- This is on by default since it's currently the expected behavior. 8 | active = true, 9 | 10 | on_config_done = nil, 11 | 12 | ---@usage set to true to disable setting the current-woriking directory 13 | --- Manual mode doesn't automatically change your root directory, so you have 14 | --- the option to manually do so using `:ProjectRoot` command. 15 | manual_mode = false, 16 | 17 | ---@usage Methods of detecting the root directory 18 | --- Allowed values: **"lsp"** uses the native neovim lsp 19 | --- **"pattern"** uses vim-rooter like glob pattern matching. Here 20 | --- order matters: if one is not detected, the other is used as fallback. You 21 | --- can also delete or rearangne the detection methods. 22 | -- detection_methods = { "lsp", "pattern" }, -- NOTE: lsp detection will get annoying with multiple langs in one project 23 | detection_methods = { "pattern" }, 24 | 25 | ---@usage patterns used to detect root dir, when **"pattern"** is in detection_methods 26 | patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json" }, 27 | 28 | ---@ Show hidden files in telescope when searching for files in a project 29 | show_hidden = false, 30 | 31 | ---@usage When set to false, you will get a message when project.nvim changes your directory. 32 | -- When set to false, you will get a message when project.nvim changes your directory. 33 | silent_chdir = true, 34 | 35 | ---@usage list of lsp client names to ignore when using **lsp** detection. eg: { "efm", ... } 36 | ignore_lsp = {}, 37 | 38 | ---@type string 39 | ---@usage path to store the project history for use in telescope 40 | datapath = vim.fn.stdpath("data"), 41 | }) 42 | 43 | local tele_status_ok, telescope = pcall(require, "telescope") 44 | if not tele_status_ok then 45 | return 46 | end 47 | 48 | telescope.load_extension('projects') 49 | -------------------------------------------------------------------------------- /config/nvim/lua/user/pywal.lua: -------------------------------------------------------------------------------- 1 | require('pywal').setup {} 2 | -------------------------------------------------------------------------------- /config/nvim/lua/user/rlang.lua: -------------------------------------------------------------------------------- 1 | require'lspconfig'.r_language_server.setup{} 2 | -------------------------------------------------------------------------------- /config/nvim/lua/user/texlab.lua: -------------------------------------------------------------------------------- 1 | require'lspconfig'.texlab.setup{} 2 | -------------------------------------------------------------------------------- /config/nvim/lua/user/toggleterm.lua: -------------------------------------------------------------------------------- 1 | local status_ok, toggleterm = pcall(require, "toggleterm") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | toggleterm.setup({ 7 | size = 20, 8 | open_mapping = [[]], 9 | hide_numbers = true, 10 | shade_filetypes = {}, 11 | shade_terminals = true, 12 | shading_factor = 2, 13 | start_in_insert = true, 14 | insert_mappings = true, 15 | persist_size = true, 16 | direction = "float", 17 | close_on_exit = true, 18 | shell = vim.o.shell, 19 | float_opts = { 20 | border = "curved", 21 | winblend = 0, 22 | highlights = { 23 | border = "Normal", 24 | background = "Normal", 25 | }, 26 | }, 27 | }) 28 | 29 | function _G.set_terminal_keymaps() 30 | local opts = {noremap = true} 31 | vim.api.nvim_buf_set_keymap(0, 't', '', [[]], opts) 32 | vim.api.nvim_buf_set_keymap(0, 't', 'jk', [[]], opts) 33 | vim.api.nvim_buf_set_keymap(0, 't', '', [[h]], opts) 34 | vim.api.nvim_buf_set_keymap(0, 't', '', [[j]], opts) 35 | vim.api.nvim_buf_set_keymap(0, 't', '', [[k]], opts) 36 | vim.api.nvim_buf_set_keymap(0, 't', '', [[l]], opts) 37 | end 38 | 39 | vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') 40 | 41 | local Terminal = require("toggleterm.terminal").Terminal 42 | local lazygit = Terminal:new({ cmd = "lazygit", hidden = true }) 43 | 44 | function _LAZYGIT_TOGGLE() 45 | lazygit:toggle() 46 | end 47 | 48 | local node = Terminal:new({ cmd = "node", hidden = true }) 49 | 50 | function _NODE_TOGGLE() 51 | node:toggle() 52 | end 53 | 54 | local ncdu = Terminal:new({ cmd = "ncdu", hidden = true }) 55 | 56 | function _NCDU_TOGGLE() 57 | ncdu:toggle() 58 | end 59 | 60 | local htop = Terminal:new({ cmd = "htop", hidden = true }) 61 | 62 | function _HTOP_TOGGLE() 63 | htop:toggle() 64 | end 65 | 66 | local python = Terminal:new({ cmd = "python", hidden = true }) 67 | 68 | function _PYTHON_TOGGLE() 69 | python:toggle() 70 | end 71 | -------------------------------------------------------------------------------- /config/nvim/lua/user/treesitter.lua: -------------------------------------------------------------------------------- 1 | local status_ok, configs = pcall(require, "nvim-treesitter.configs") 2 | if not status_ok then 3 | return 4 | end 5 | 6 | configs.setup({ 7 | ensure_installed = { "bash", "c", "javascript", "json", "lua", "python", "typescript", "tsx", "css", "rust", "java", "yaml", "markdown", "markdown_inline" }, -- one of "all" or a list of languages 8 | ignore_install = { "phpdoc" }, -- List of parsers to ignore installing 9 | highlight = { 10 | 11 | enable = true, -- false will disable the whole extension 12 | disable = { "css" }, -- list of language that will be disabled 13 | }, 14 | autopairs = { 15 | enable = true, 16 | }, 17 | indent = { enable = true, disable = { "python", "css" } }, 18 | rainbow = { 19 | enable = true, 20 | -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for 21 | extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean 22 | max_file_lines = nil, -- Do not enable for files with more than n lines, int 23 | -- colors = {}, -- table of hex strings 24 | -- termcolors = {} -- table of colour name strings 25 | } 26 | }) 27 | -------------------------------------------------------------------------------- /config/nvim/lua/user/vimtex.lua: -------------------------------------------------------------------------------- 1 | vim.cmd([[ 2 | let g:tex_flavor='latex' 3 | let g:vimtex_view_method='zathura' 4 | let g:vimtex_quickfix_mode=0 5 | set conceallevel=1 6 | let g:tex_conceal='abdmg' 7 | ]]) 8 | -------------------------------------------------------------------------------- /config/nvim/lua/user/wal.lua: -------------------------------------------------------------------------------- 1 | local pywal = require('pywal') 2 | pywal.setup() 3 | -------------------------------------------------------------------------------- /config/nvim/spell/en.utf-8.add: -------------------------------------------------------------------------------- 1 | Feyerabend 2 | olympiad 3 | Oogenesis 4 | oocytes 5 | oogonia 6 | oocyte 7 | cytokinesis 8 | oogenesis 9 | luteum 10 | estradiol 11 | FSH 12 | Ramin 13 | Zotero 14 | Mindmap 15 | Anki 16 | cloze 17 | IRL 18 | Inkscape 19 | Rouyesh 20 | Neovim 21 | PKM 22 | Kaggle 23 | NCBI 24 | Udemy 25 | photothermal 26 | functionalize 27 | nanocarriers 28 | functionalization 29 | Catppuccin 30 | -------------------------------------------------------------------------------- /config/nvim/spell/en.utf-8.add.spl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/nvim/spell/en.utf-8.add.spl -------------------------------------------------------------------------------- /config/nvim_not_lua/airline.vim: -------------------------------------------------------------------------------- 1 | let g:airline_powerline_fonts = 1 2 | " let g:airline_theme='kolor' 3 | " let g:airline_theme='badwolf' 4 | " let g:airline_theme='powerlineish' 5 | 6 | if !exists('g:airline_symbols') 7 | let g:airline_symbols = {} 8 | endif 9 | 10 | " unicode symbols 11 | let g:airline_left_sep = '»' 12 | let g:airline_left_sep = '▶' 13 | let g:airline_right_sep = '«' 14 | let g:airline_right_sep = '◀' 15 | let g:airline_symbols.linenr = '␊' 16 | let g:airline_symbols.linenr = '␤' 17 | let g:airline_symbols.linenr = '¶' 18 | let g:airline_symbols.branch = '⎇' 19 | let g:airline_symbols.paste = 'ρ' 20 | let g:airline_symbols.paste = 'Þ' 21 | let g:airline_symbols.paste = '∥' 22 | let g:airline_symbols.whitespace = 'Ξ' 23 | 24 | " airline symbols 25 | let g:airline_left_sep = '' 26 | let g:airline_left_alt_sep = '' 27 | let g:airline_right_sep = '' 28 | let g:airline_right_alt_sep = '' 29 | let g:airline_symbols.branch = '' 30 | let g:airline_symbols.readonly = '' 31 | let g:airline_symbols.linenr = '' 32 | let g:airline#extensions#tabline#enabled = 1 33 | let g:airline#extensions#tabline#formatter = 'unique_tail' 34 | -------------------------------------------------------------------------------- /config/nvim_not_lua/coc.vim: -------------------------------------------------------------------------------- 1 | nnoremap :call CocActionAsync('jumpDefinition') 2 | 3 | inoremap 4 | \ coc#pum#visible() ? coc#_select_confirm() : 5 | \ coc#expandableOrJumpable() ? 6 | \ "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : 7 | \ check_back_space() ? "\" : 8 | \ coc#refresh() 9 | 10 | function! s:check_back_space() abort 11 | let col = col('.') - 1 12 | return !col || getline('.')[col - 1] =~# '\s' 13 | endfunction 14 | 15 | let g:coc_snippet_next = '' 16 | -------------------------------------------------------------------------------- /config/nvim_not_lua/codi.vim: -------------------------------------------------------------------------------- 1 | " Change color 2 | highlight CodiVirtualText guifg=green 3 | let g:codi#virtual_text_prefix = ">> " 4 | -------------------------------------------------------------------------------- /config/nvim_not_lua/dashboard.vim: -------------------------------------------------------------------------------- 1 | " Default value is clap 2 | let g:dashboard_default_executive ='clap' 3 | 4 | let g:mapleader="\" 5 | nmap ss :SessionSave 6 | nmap sl :SessionLoad 7 | nmap cn :DashboardNewFile 8 | nnoremap fh :History 9 | nnoremap ff :Files 10 | nnoremap tc :Colors 11 | nnoremap fa :Rg 12 | nnoremap fb :Marks 13 | nnoremap cn :DashboardNewFile 14 | 15 | let g:dashboard_custom_shortcut={ 16 | \ 'last_session' : 'SPC s l', 17 | \ 'find_history' : 'SPC f h', 18 | \ 'find_file' : 'SPC f f', 19 | \ 'new_file' : 'SPC c n', 20 | \ 'change_colorscheme' : 'SPC t c', 21 | \ 'find_word' : 'SPC f a', 22 | \ 'book_marks' : 'SPC f b', 23 | \ } 24 | -------------------------------------------------------------------------------- /config/nvim_not_lua/embark.vim: -------------------------------------------------------------------------------- 1 | let g:embark_terminal_italics = 1 2 | 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/fzf.vim: -------------------------------------------------------------------------------- 1 | let g:fzf_layout = { 'down': '40%' } 2 | let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -l -g ""' 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/goyo.vim: -------------------------------------------------------------------------------- 1 | let g:goyo_width = 60 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/indent.vim: -------------------------------------------------------------------------------- 1 | let g:indentLine_char = ':' 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/latexpr.vim: -------------------------------------------------------------------------------- 1 | let g:livepreview_previewer = 'zathura' 2 | let g:livepreview_engine = 'xelatex' 3 | let g:livepreview_cursorhold_recompile = 0 4 | -------------------------------------------------------------------------------- /config/nvim_not_lua/limelight.vim: -------------------------------------------------------------------------------- 1 | let g:limelight_default_coefficient = 0.7 2 | let g:limelight_conceal_ctermfg = 'gray' 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/nerdtree.vim: -------------------------------------------------------------------------------- 1 | let g:WebDevIconsDisableDefaultFolderSymbolColorFromNERDTreeDir = 1 2 | let g:WebDevIconsDisableDefaultFileSymbolColorFromNERDTreeFile = 1 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/airline.vim: -------------------------------------------------------------------------------- 1 | let g:airline_powerline_fonts = 1 2 | " let g:airline_theme='catppuccin' 3 | " let g:airline_theme='ayu_mirage' 4 | " let g:airline_theme='gruvbox-material' 5 | let g:airline_theme='powerlineish' 6 | 7 | if !exists('g:airline_symbols') 8 | let g:airline_symbols = {} 9 | endif 10 | 11 | " unicode symbols 12 | let g:airline_left_sep = '»' 13 | let g:airline_left_sep = '▶' 14 | let g:airline_right_sep = '«' 15 | let g:airline_right_sep = '◀' 16 | let g:airline_symbols.linenr = '␊' 17 | let g:airline_symbols.linenr = '␤' 18 | let g:airline_symbols.linenr = '¶' 19 | let g:airline_symbols.branch = '⎇' 20 | let g:airline_symbols.paste = 'ρ' 21 | let g:airline_symbols.paste = 'Þ' 22 | let g:airline_symbols.paste = '∥' 23 | let g:airline_symbols.whitespace = 'Ξ' 24 | 25 | " airline symbols 26 | let g:airline_left_sep = '' 27 | let g:airline_left_alt_sep = '' 28 | let g:airline_right_sep = '' 29 | let g:airline_right_alt_sep = '' 30 | let g:airline_symbols.branch = '' 31 | let g:airline_symbols.readonly = '' 32 | let g:airline_symbols.linenr = '' 33 | let g:airline#extensions#tabline#enabled = 1 34 | let g:airline#extensions#tabline#formatter = 'unique_tail' 35 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/coc.vim: -------------------------------------------------------------------------------- 1 | nnoremap :call CocActionAsync('jumpDefinition') 2 | 3 | inoremap 4 | \ coc#pum#visible() ? coc#_select_confirm() : 5 | \ coc#expandableOrJumpable() ? 6 | \ "\=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\" : 7 | \ check_back_space() ? "\" : 8 | \ coc#refresh() 9 | 10 | function! s:check_back_space() abort 11 | let col = col('.') - 1 12 | return !col || getline('.')[col - 1] =~# '\s' 13 | endfunction 14 | 15 | let g:coc_snippet_next = '' 16 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/codi.vim: -------------------------------------------------------------------------------- 1 | " Change color 2 | highlight CodiVirtualText guifg=green 3 | let g:codi#virtual_text_prefix = ">> " 4 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/dashboard.vim: -------------------------------------------------------------------------------- 1 | " Default value is clap 2 | let g:dashboard_default_executive ='clap' 3 | 4 | let g:mapleader="\" 5 | nmap ss :SessionSave 6 | nmap sl :SessionLoad 7 | nmap cn :DashboardNewFile 8 | nnoremap fh :History 9 | nnoremap ff :Files 10 | nnoremap tc :Colors 11 | nnoremap fa :Rg 12 | nnoremap fb :Marks 13 | nnoremap cn :DashboardNewFile 14 | 15 | let g:dashboard_custom_shortcut={ 16 | \ 'last_session' : 'SPC s l', 17 | \ 'find_history' : 'SPC f h', 18 | \ 'find_file' : 'SPC f f', 19 | \ 'new_file' : 'SPC c n', 20 | \ 'change_colorscheme' : 'SPC t c', 21 | \ 'find_word' : 'SPC f a', 22 | \ 'book_marks' : 'SPC f b', 23 | \ } 24 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/embark.vim: -------------------------------------------------------------------------------- 1 | let g:embark_terminal_italics = 1 2 | 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/fzf.vim: -------------------------------------------------------------------------------- 1 | let g:fzf_layout = { 'down': '40%' } 2 | let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -l -g ""' 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/goyo.vim: -------------------------------------------------------------------------------- 1 | let g:goyo_width = 60 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/indent.vim: -------------------------------------------------------------------------------- 1 | let g:indentLine_char = ':' 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/latexpr.vim: -------------------------------------------------------------------------------- 1 | let g:livepreview_previewer = 'zathura' 2 | let g:livepreview_engine = 'xelatex' 3 | let g:livepreview_cursorhold_recompile = 0 4 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/limelight.vim: -------------------------------------------------------------------------------- 1 | let g:limelight_default_coefficient = 0.7 2 | let g:limelight_conceal_ctermfg = 'gray' 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/nerdtree.vim: -------------------------------------------------------------------------------- 1 | let g:WebDevIconsDisableDefaultFolderSymbolColorFromNERDTreeDir = 1 2 | let g:WebDevIconsDisableDefaultFileSymbolColorFromNERDTreeFile = 1 3 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/rainbow.vim: -------------------------------------------------------------------------------- 1 | let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/rooter.vim: -------------------------------------------------------------------------------- 1 | let g:rooter_targets = '/,*' 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/ultisnips.vim: -------------------------------------------------------------------------------- 1 | " Trigger configuration. You need to change this to something other than if you use one of the following: 2 | " - https://github.com/Valloric/YouCompleteMe 3 | " - https://github.com/nvim-lua/completion-nvim 4 | let g:UltiSnipsExpandTrigger="" 5 | let g:UltiSnipsJumpForwardTrigger="" 6 | let g:UltiSnipsJumpBackwardTrigger="" 7 | 8 | " If you want :UltiSnipsEdit to split your window. 9 | let g:UltiSnipsEditSplit="vertical" 10 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/vimtex.vim: -------------------------------------------------------------------------------- 1 | " This is necessary for VimTeX to load properly. The "indent" is optional. 2 | " Note that most plugin managers will do this automatically. 3 | filetype plugin indent on 4 | 5 | " This enables Vim's and neovim's syntax-related features. Without this, some 6 | " VimTeX features will not work (see ":help vimtex-requirements" for more 7 | " info). 8 | syntax enable 9 | 10 | " Viewer options: One may configure the viewer either by specifying a built-in 11 | " viewer method: 12 | let g:vimtex_view_method = 'zathura' 13 | 14 | " Or with a generic interface: 15 | let g:vimtex_view_general_viewer = 'okular' 16 | let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' 17 | 18 | " VimTeX uses latexmk as the default compiler backend. If you use it, which is 19 | " strongly recommended, you probably don't need to configure anything. If you 20 | " want another compiler backend, you can change it as follows. The list of 21 | " supported backends and further explanation is provided in the documentation, 22 | " see ":help vimtex-compiler". 23 | let g:vimtex_compiler_method = 'latexrun' 24 | 25 | " Most VimTeX mappings rely on localleader and this can be changed with the 26 | " following line. The default is usually fine and is the symbol "\". 27 | let maplocalleader = "," 28 | -------------------------------------------------------------------------------- /config/nvim_not_lua/plugin-configs/vimwiki.vim: -------------------------------------------------------------------------------- 1 | " Enable folding. 2 | let g:vim_markdown_folding_disabled = 0 3 | 4 | " Fold heading in with the contents. 5 | let g:vim_markdown_folding_style_pythonic = 1 6 | 7 | " Don't use the shipped key bindings. 8 | let g:vim_markdown_no_default_key_mappings = 1 9 | 10 | " Autoshrink TOCs. 11 | let g:vim_markdown_toc_autofit = 1 12 | 13 | " Indentation for new lists. We don't insert bullets as it doesn't play 14 | " nicely with `gq` formatting. It relies on a hack of treating bullets 15 | " as comment characters. 16 | " See https://github.com/plasticboy/vim-markdown/issues/232 17 | let g:vim_markdown_new_list_item_indent = 0 18 | let g:vim_markdown_auto_insert_bullets = 0 19 | 20 | " Filetype names and aliases for fenced code blocks. 21 | let g:vim_markdown_fenced_languages = ['php', 'py=python', 'js=javascript', 'bash=sh', 'viml=vim'] 22 | 23 | " Highlight front matter (useful for Hugo posts). 24 | let g:vim_markdown_toml_frontmatter = 1 25 | let g:vim_markdown_json_frontmatter = 1 26 | let g:vim_markdown_frontmatter = 1 27 | 28 | " Format strike-through text (wrapped in `~~`). 29 | let g:vim_markdown_strikethrough = 1 30 | -------------------------------------------------------------------------------- /config/nvim_not_lua/rooter.vim: -------------------------------------------------------------------------------- 1 | let g:rooter_targets = '/,*' 2 | -------------------------------------------------------------------------------- /config/nvim_not_lua/vimtex.vim: -------------------------------------------------------------------------------- 1 | " This is necessary for VimTeX to load properly. The "indent" is optional. 2 | " Note that most plugin managers will do this automatically. 3 | filetype plugin indent on 4 | 5 | " This enables Vim's and neovim's syntax-related features. Without this, some 6 | " VimTeX features will not work (see ":help vimtex-requirements" for more 7 | " info). 8 | syntax enable 9 | 10 | " Viewer options: One may configure the viewer either by specifying a built-in 11 | " viewer method: 12 | let g:vimtex_view_method = 'zathura' 13 | 14 | " Or with a generic interface: 15 | let g:vimtex_view_general_viewer = 'okular' 16 | let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' 17 | 18 | " VimTeX uses latexmk as the default compiler backend. If you use it, which is 19 | " strongly recommended, you probably don't need to configure anything. If you 20 | " want another compiler backend, you can change it as follows. The list of 21 | " supported backends and further explanation is provided in the documentation, 22 | " see ":help vimtex-compiler". 23 | let g:vimtex_compiler_method = 'latexrun' 24 | 25 | " Most VimTeX mappings rely on localleader and this can be changed with the 26 | " following line. The default is usually fine and is the symbol "\". 27 | let maplocalleader = "," 28 | -------------------------------------------------------------------------------- /config/picom/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | killall -q picom 4 | 5 | echo "---" | tee -a /tmp/picom.log 6 | 7 | sleep 1 8 | 9 | picom --config .config/picom/picom.conf >> /tmp/picom.log 2>&1 & 10 | 11 | echo "Picom launched..." 12 | -------------------------------------------------------------------------------- /config/polybar/cava: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | bar="▁▂▃▄▅▆▇█" 4 | dict="s/;//g;" 5 | 6 | # creating "dictionary" to replace char with bar 7 | i=0 8 | while [ $i -lt ${#bar} ] 9 | do 10 | dict="${dict}s/$i/${bar:$i:1}/g;" 11 | i=$((i=i+1)) 12 | done 13 | 14 | # make sure to clean pipe 15 | pipe="/tmp/cava.fifo" 16 | if [ -p $pipe ]; then 17 | unlink $pipe 18 | fi 19 | mkfifo $pipe 20 | 21 | # write cava config 22 | config_file="/tmp/polybar_cava_config" 23 | echo " 24 | [general] 25 | bars = 10 26 | 27 | [output] 28 | method = raw 29 | raw_target = $pipe 30 | data_format = ascii 31 | ascii_max_range = 7 32 | " > $config_file 33 | 34 | # run cava in the background 35 | cava -p $config_file & 36 | 37 | # reading data from fifo 38 | while read -r cmd; do 39 | echo $cmd | sed $dict 40 | done < $pipe 41 | -------------------------------------------------------------------------------- /config/polybar/glava_toggle: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | 3 | # glava_toggle.sh - Enable/Disable GLava vu-meter 4 | # Baptiste DELPHIN 2021 - github.com/bdelphin 5 | 6 | ACTIVE_ICON="" 7 | INACTIVE_ICON=" off" 8 | 9 | # return if glava is running 10 | get_glava_status() { STATUS=$(pgrep 'glava' | wc -l); } 11 | 12 | get_glava_status 13 | 14 | if [ $# != 0 ] && [ $1 = "toggle" ] 15 | then 16 | # toggle 17 | if [ $STATUS = "0" ] 18 | then 19 | glava -d >>/dev/null 2>&1 & 20 | echo $ACTIVE_ICON 21 | else 22 | killall -q glava 23 | echo "%{F#555}$INACTIVE_ICON%{F-}" 24 | fi 25 | 26 | elif [ $# != 0 ] && [ $1 = "interactive" ] 27 | then 28 | while true; do 29 | get_glava_status 30 | if [ $STATUS = "0" ] 31 | then 32 | echo "%{F#555}$INACTIVE_ICON%{F-}" 33 | else 34 | echo $ACTIVE_ICON 35 | fi 36 | sleep 1 37 | done 38 | else 39 | # show current status 40 | if [ $STATUS = "0" ] 41 | then 42 | echo "%{F#555}$INACTIVE_ICON%{F-}" 43 | else 44 | echo $ACTIVE_ICON 45 | fi 46 | fi 47 | -------------------------------------------------------------------------------- /config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | # # If all your bars have ipc enabled, you can use 6 | # # polybar-msg cmd quit 7 | wal -R 8 | 9 | # # Wait until the processes have been shut down 10 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 11 | 12 | # # Launch bar1 and bar2 13 | echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log 14 | polybar bar1 >> /tmp/polybar1.log 2>&1 & 15 | 16 | echo "Bars launched..." 17 | -------------------------------------------------------------------------------- /config/polybar/multibar.ini: -------------------------------------------------------------------------------- 1 | [bar/main] 2 | monitor = 3 | monitor-fallback = 4 | monitor-strict = false 5 | override-redirect = true 6 | wm-restack = i3 7 | bottom = false 8 | fixed-center = true 9 | width = 10% 10 | height = 1% 11 | offset-x = 0 12 | offset-y = 0 13 | radius-top = 14 | radius-bottom = 20.0 15 | line-size = 2 16 | border-bottom-size = 0 17 | padding = 2 18 | module-margin-left = 2 19 | module-margin-right = 2 20 | cursor-click = pointer 21 | cursor-scroll = ns-resize 22 | 23 | font-0 = Segoe UI Variable Static Text:pixelsize=13;2 24 | font-1 = Noto Color Emoji:pixelsize=16:style=Regular:scale=10;2 25 | font-2 = Font Awesome 6 Free Solid:pixelsize=12;2 26 | font-3 = Font Awesome 6 Free:pixelsize=12;2 27 | font-4 = Font Awesome 6 Brands Regular:pixelsize=12;2 28 | 29 | [bar/back] 30 | inherit = bar/main 31 | width = 1 32 | override-redirect = false 33 | modules-left = i3 34 | 35 | [bar/topleft] 36 | inherit = bar/main 37 | width = 25% 38 | height = 50 39 | offset-x = 40 | modules-left = i3 xwindow 41 | enable-ipc = true 42 | 43 | [bar/topcenter] 44 | inherit = bar/main 45 | width = 14% 46 | height = 50 47 | offset-x = 43% 48 | modules-center = mpd 49 | enable-ipc = true 50 | 51 | [bar/topright] 52 | inherit = bar/main 53 | width = 20% 54 | height = 50 55 | offset-x = 80% 56 | modules-right = glava pulseaudio filesystem xkeyboard date 57 | enable-ipc = true 58 | -------------------------------------------------------------------------------- /config/polybar/music: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | player_status=$(playerctl --player ncmpcpp status 2> /dev/null) 4 | # stats= 5 | 6 | if [[ $? -eq 0 ]]; then 7 | metadata="$(playerctl --player ncmpcpp metadata artist) - $(playerctl --player ncmpcpp metadata title) $(playerctl --player ncmpcpp metadata -f "{{emoji(status)}}")" 8 | fi 9 | 10 | # Foreground color formatting tags are optional 11 | if [[ $player_status = "Playing" ]]; then 12 | echo "%{F#FFFFFF}$metadata%{F-}" 13 | elif [[ $player_status = "Paused" ]]; then 14 | echo "%{F#999}$metadata%{F-}" 15 | else 16 | echo "" 17 | fi 18 | -------------------------------------------------------------------------------- /config/polybar/pac.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script outputs the number of available package updates. 3 | 4 | # Use checkupdates if available; fallback to pacman -Qu otherwise. 5 | if command -v checkupdates > /dev/null; then 6 | updates=$(checkupdates 2>/dev/null | wc -l) 7 | else 8 | updates=$(pacman -Qu 2>/dev/null | wc -l) 9 | fi 10 | 11 | # Output the count (for polybar). 12 | echo "$updates" 13 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #2f343f 16 | background-alt = #C4C7C5 17 | foreground = #1C1E20 18 | foreground-alt = #C4C7C5 19 | primary = #B4BC67 20 | 21 | white = #FFFFFF 22 | black = #000000 23 | red = #EC7875 24 | pink = #EC6798 25 | purple = #BE78D1 26 | blue = #75A4CD 27 | cyan = #00C7DF 28 | teal = #00B19F 29 | green = #61C766 30 | lime = #B9C244 31 | yellow = #EBD369 32 | amber = #EDB83F 33 | orange = #E57C46 34 | brown = #AC8476 35 | gray = #9E9E9E 36 | indigo = #6C77BB 37 | blue-gray = #6D8895 38 | 39 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 40 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/blocks" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/blocks" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | FILE="$HOME/.config/polybar/blocks/scripts/rofi/colors.rasi" 4 | 5 | # random accent color 6 | COLORS=('#EC7875' '#EC6798' '#BE78D1' '#75A4CD' '#00C7DF' '#00B19F' '#61C766' \ 7 | '#B9C244' '#EBD369' '#EDB83F' '#E57C46' '#AC8476' '#6C77BB' '#6D8895') 8 | AC="${COLORS[$(( $RANDOM % 14 ))]}" 9 | sed -i -e "s/ac: .*/ac: ${AC}FF;/g" $FILE 10 | sed -i -e "s/se: .*/se: ${AC}40;/g" $FILE 11 | 12 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/blocks/scripts/rofi/launcher.rasi 13 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #2f343fFF; 6 | bga: #C4C7C5FF; 7 | fga: #C4C7C5FF; 8 | fg: #1C1E20FF; 9 | ac: #6D8895FF; 10 | se: #6D889540; 11 | } 12 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fga; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 210px; 13 | padding: 25px; 14 | border: 0px 0px 2px 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fga; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px 0px 2px 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/style-switch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | SDIR="$HOME/.config/polybar/blocks/scripts" 4 | 5 | # Launch Rofi 6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \ 7 | -theme $SDIR/rofi/styles.rasi \ 8 | <<< " Default| Nord| Gruvbox| Adapta| Cherry|")" 9 | case "$MENU" in 10 | *Default) "$SDIR"/styles.sh --default ;; 11 | *Nord) "$SDIR"/styles.sh --nord ;; 12 | *Gruvbox) "$SDIR"/styles.sh --gruvbox ;; 13 | *Adapta) "$SDIR"/styles.sh --adapta ;; 14 | *Cherry) "$SDIR"/styles.sh --cherry ;; 15 | esac 16 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/styles.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/blocks/colors.ini" 5 | RFILE="$HOME/.config/polybar/blocks/scripts/rofi/colors.rasi" 6 | 7 | # Change colors 8 | change_color() { 9 | # polybar 10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE 11 | sed -i -e "s/background-alt = #.*/background-alt = $BGA/g" $PFILE 12 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE 13 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE 14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 15 | 16 | # rofi 17 | cat > $RFILE <<- EOF 18 | /* colors */ 19 | 20 | * { 21 | al: #00000000; 22 | bg: ${BG}FF; 23 | bga: ${BGA}FF; 24 | fga: ${FGA}FF; 25 | fg: ${FG}FF; 26 | ac: ${AC}FF; 27 | se: ${AC}40; 28 | } 29 | EOF 30 | 31 | polybar-msg cmd restart 32 | } 33 | 34 | if [[ $1 = "--default" ]]; then 35 | BG="#2f343f" 36 | BGA="#C4C7C5" 37 | FGA="#C4C7C5" 38 | FG="#1C1E20" 39 | AC="#B4BC67" 40 | change_color 41 | elif [[ $1 = "--nord" ]]; then 42 | BG="#3B4252" 43 | BGA="#4C566A" 44 | FGA="#E5E9F0" 45 | FG="#ECEFF4" 46 | AC="#A3BE8C" 47 | change_color 48 | elif [[ $1 = "--gruvbox" ]]; then 49 | BG="#282828" 50 | BGA="#EBDBB2" 51 | FGA="#EBDBB2" 52 | FG="#282828" 53 | AC="#CC241D" 54 | change_color 55 | elif [[ $1 = "--adapta" ]]; then 56 | BG="#243035" 57 | BGA="#38444A" 58 | FGA="#FDF6E3" 59 | FG="#FFFFFF" 60 | AC="#4DD0E1" 61 | change_color 62 | elif [[ $1 = "--cherry" ]]; then 63 | BG="#1F1626" 64 | BGA="#423949" 65 | FGA="#FFFFFF" 66 | FG="#FFFFFF" 67 | AC="#D94085" 68 | change_color 69 | else 70 | cat <<- _EOF_ 71 | No option specified, Available options: 72 | --default --nord --gruvbox --adapta --cherry 73 | _EOF_ 74 | fi 75 | -------------------------------------------------------------------------------- /config/polybar/polybar/blocks/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/blocks/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo "$UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo "$UPDATES" 31 | else 32 | echo "None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo "None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #141C21 16 | foreground = #F5F5F5 17 | foreground-alt = #FFFFFF 18 | alpha = #00000000 19 | 20 | ;; shades 21 | shade1 = #880E4F 22 | shade2 = #AD1457 23 | shade3 = #C2185B 24 | shade4 = #D81B60 25 | shade5 = #E91E63 26 | shade6 = #EC407A 27 | shade7 = #F06292 28 | shade8 = #F48FB1 29 | 30 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 31 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/colorblocks" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/colorblocks" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/colorblocks/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #141C21FF; 6 | bg1: #F48FB1FF; 7 | bg2: #F06292FF; 8 | bg3: #EC407AFF; 9 | fg: #FFFFFFFF; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 0px 0px 0px 2px; 15 | border-radius: 0px; 16 | border-color: @bg3; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @bg2; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px 0px 0px 2px; 15 | border-radius: 0px; 16 | border-color: @bg3; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @bg2; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/colorblocks/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/colorblocks/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #0a0a0a 16 | background-alt = #8C0a0a0a 17 | foreground = #f5f5f5 18 | foreground-alt = #33f5f5f5 19 | primary = #fdd835 20 | red = #FF5250 21 | green = #43a047 22 | yellow = #fdd835 23 | 24 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/cuts" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q top -c "$DIR"/config.ini & 15 | polybar -q bottom -c "$DIR"/config.ini & 16 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/cuts" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/cuts/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/pywal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/cuts/colors.ini" 5 | RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi" 6 | WFILE="$HOME/.cache/wal/colors.sh" 7 | 8 | # Get colors 9 | pywal_get() { 10 | wal -i "$1" -q -t 11 | } 12 | 13 | # Change colors 14 | change_color() { 15 | # polybar 16 | sed -i -e "s/background = #.*/background = #${BG}/g" $PFILE 17 | sed -i -e "s/background-alt = #.*/background-alt = #8C${BG}/g" $PFILE 18 | sed -i -e "s/foreground = #.*/foreground = #${FG}/g" $PFILE 19 | sed -i -e "s/foreground-alt = #.*/foreground-alt = #33${FG}/g" $PFILE 20 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 21 | 22 | # rofi 23 | cat > $RFILE <<- EOF 24 | /* colors */ 25 | 26 | * { 27 | al: #00000000; 28 | bg: #${BG}BF; 29 | bga: #${BG}FF; 30 | fg: #${FG}FF; 31 | ac: ${AC}FF; 32 | se: ${AC}1A; 33 | } 34 | EOF 35 | 36 | polybar-msg cmd restart 37 | } 38 | 39 | # Main 40 | if [[ -x "`which wal`" ]]; then 41 | if [[ "$1" ]]; then 42 | pywal_get "$1" 43 | 44 | # Source the pywal color file 45 | if [[ -e "$WFILE" ]]; then 46 | . "$WFILE" 47 | else 48 | echo 'Color file does not exist, exiting...' 49 | exit 1 50 | fi 51 | 52 | BGC=`printf "%s\n" "$background"` 53 | BG=${BGC:1} 54 | FGC=`printf "%s\n" "$foreground"` 55 | FG=${FGC:1} 56 | AC=`printf "%s\n" "$color1"` 57 | 58 | change_color 59 | else 60 | echo -e "[!] Please enter the path to wallpaper. \n" 61 | echo "Usage : ./pywal.sh path/to/image" 62 | fi 63 | else 64 | echo "[!] 'pywal' is not installed." 65 | fi 66 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #0a0a0aBF; 6 | bga: #0a0a0aFF; 7 | fg: #f5f5f5FF; 8 | ac: #fdd835FF; 9 | se: #fdd8351A; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bga; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | 26 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bga; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/style-switch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | SDIR="$HOME/.config/polybar/cuts/scripts" 4 | 5 | # Launch Rofi 6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \ 7 | -theme $SDIR/rofi/styles.rasi \ 8 | <<< " Black| Adapta| Dark| Red| Green| Teal| Gruvbox| Nord| Solarized| Cherry|")" 9 | case "$MENU" in 10 | *Black) "$SDIR"/styles.sh --mode1 ;; 11 | *Adapta) "$SDIR"/styles.sh --mode2 ;; 12 | *Dark) "$SDIR"/styles.sh --mode3 ;; 13 | *Red) "$SDIR"/styles.sh --mode4 ;; 14 | *Green) "$SDIR"/styles.sh --mode5 ;; 15 | *Teal) "$SDIR"/styles.sh --mode6 ;; 16 | *Gruvbox) "$SDIR"/styles.sh --mode7 ;; 17 | *Nord) "$SDIR"/styles.sh --mode8 ;; 18 | *Solarized) "$SDIR"/styles.sh --mode9 ;; 19 | *Cherry) "$SDIR"/styles.sh --mode10 ;; 20 | esac 21 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/styles.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/cuts/colors.ini" 5 | RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi" 6 | 7 | # Change colors 8 | change_color() { 9 | # polybar 10 | sed -i -e "s/background = #.*/background = #${BG}/g" $PFILE 11 | sed -i -e "s/background-alt = #.*/background-alt = #8C${BG}/g" $PFILE 12 | sed -i -e "s/foreground = #.*/foreground = #${FG}/g" $PFILE 13 | sed -i -e "s/foreground-alt = #.*/foreground-alt = #33${FG}/g" $PFILE 14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 15 | 16 | # rofi 17 | cat > $RFILE <<- EOF 18 | /* colors */ 19 | 20 | * { 21 | al: #00000000; 22 | bg: #${BG}BF; 23 | bga: #${BG}FF; 24 | fg: #${FG}FF; 25 | ac: ${AC}FF; 26 | se: ${AC}1A; 27 | } 28 | EOF 29 | 30 | polybar-msg cmd restart 31 | } 32 | 33 | if [[ $1 = "--mode1" ]]; then 34 | BG="0a0a0a" 35 | FG="f5f5f5" 36 | AC="#fdd835" 37 | change_color 38 | elif [[ $1 = "--mode2" ]]; then 39 | BG="263238" 40 | FG="DFDFDF" 41 | AC="#00BCD4" 42 | change_color 43 | elif [[ $1 = "--mode3" ]]; then 44 | BG="112526" 45 | FG="C4AAA5" 46 | AC="#EE7313" 47 | change_color 48 | elif [[ $1 = "--mode4" ]]; then 49 | BG="461320" 50 | FG="f5f5f5" 51 | AC="#fdd835" 52 | change_color 53 | elif [[ $1 = "--mode5" ]]; then 54 | BG="092F1C" 55 | FG="f5f5f5" 56 | AC="#fdd835" 57 | change_color 58 | elif [[ $1 = "--mode6" ]]; then 59 | BG="003C3C" 60 | FG="CFCFCF" 61 | AC="#00acc1" 62 | change_color 63 | elif [[ $1 = "--mode7" ]]; then 64 | BG="3C3836" 65 | FG="EBDBB2" 66 | AC="#FB4934" 67 | change_color 68 | elif [[ $1 = "--mode8" ]]; then 69 | BG="2E3440" 70 | FG="D8DEE9" 71 | AC="#BF616A" 72 | change_color 73 | elif [[ $1 = "--mode9" ]]; then 74 | BG="002b36" 75 | FG="839496" 76 | AC="#b58900" 77 | change_color 78 | elif [[ $1 = "--mode10" ]]; then 79 | BG="1F1626" 80 | FG="FFFFFF" 81 | AC="#FFD16F" 82 | change_color 83 | else 84 | cat <<- _EOF_ 85 | No option specified, Available options: 86 | --mode1 --mode2 --mode3 --mode4 --mode5 87 | --mode6 --mode7 --mode8 --mode9 --mode10 88 | _EOF_ 89 | fi 90 | -------------------------------------------------------------------------------- /config/polybar/polybar/cuts/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/cuts/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #1F1F1F 16 | foreground = #FFFFFF 17 | foreground-alt = #8F8F8F 18 | module-fg = #FFFFFF 19 | primary = #e53935 20 | secondary = #E53935 21 | alternate = #7cb342 22 | 23 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 24 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/docky" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/docky" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/docky/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #1F1F1FFF; 6 | bga: #e5393533; 7 | bar: #FFFFFFFF; 8 | fg: #FFFFFFFF; 9 | ac: #e53935FF; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 0px 0px 2px 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px 0px 2px 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/docky/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/docky/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #212B30 16 | foreground = #C4C7C5 17 | sep = #3F5360 18 | 19 | white = #FFFFFF 20 | black = #000000 21 | red = #EC7875 22 | pink = #EC407A 23 | purple = #BA68C8 24 | blue = #42A5F5 25 | cyan = #4DD0E1 26 | teal = #00B19F 27 | green = #61C766 28 | lime = #B9C244 29 | yellow = #FDD835 30 | amber = #FBC02D 31 | orange = #E57C46 32 | brown = #AC8476 33 | indigo = #6C77BB 34 | gray = #9E9E9E 35 | blue-gray = #6D8895 36 | 37 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 38 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/forest" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/forest" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | FILE="$HOME/.config/polybar/forest/scripts/rofi/colors.rasi" 4 | 5 | ## random accent color 6 | #COLORS=('#EC7875' '#EC6798' '#BE78D1' '#75A4CD' '#00C7DF' '#00B19F' '#61C766' \ 7 | # '#B9C244' '#EBD369' '#EDB83F' '#E57C46' '#AC8476' '#6C77BB' '#6D8895') 8 | #AC="${COLORS[$(( $RANDOM % 14 ))]}" 9 | #SE="${COLORS[$(( $RANDOM % 14 ))]}" 10 | #sed -i -e "s/ac: .*/ac: ${AC}FF;/g" $FILE 11 | #sed -i -e "s/se: .*/se: ${SE}FF;/g" $FILE 12 | 13 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/forest/scripts/rofi/launcher.rasi 14 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #212B30FF; 6 | bga: #263035FF; 7 | fg: #C4C7C5FF; 8 | ac: #EC407AFF; 9 | se: #4DD0E1FF; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 210px; 13 | padding: 25px; 14 | border: 0px 0px 1px 0px; 15 | border-radius: 0px; 16 | border-color: @se; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px 0px 1px 0px; 15 | border-radius: 0px; 16 | border-color: @se; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/style-switch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | SDIR="$HOME/.config/polybar/forest/scripts" 4 | 5 | # Launch Rofi 6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \ 7 | -theme $SDIR/rofi/styles.rasi \ 8 | <<< " Default| Nord| Gruvbox| Dark| Cherry|")" 9 | case "$MENU" in 10 | *Default) "$SDIR"/styles.sh --default ;; 11 | *Nord) "$SDIR"/styles.sh --nord ;; 12 | *Gruvbox) "$SDIR"/styles.sh --gruvbox ;; 13 | *Dark) "$SDIR"/styles.sh --dark ;; 14 | *Cherry) "$SDIR"/styles.sh --cherry ;; 15 | esac 16 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/styles.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/forest/colors.ini" 5 | RFILE="$HOME/.config/polybar/forest/scripts/rofi/colors.rasi" 6 | 7 | # Change colors 8 | change_color() { 9 | # polybar 10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE 11 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE 12 | sed -i -e "s/sep = #.*/sep = $SEP/g" $PFILE 13 | 14 | # rofi 15 | cat > $RFILE <<- EOF 16 | /* colors */ 17 | 18 | * { 19 | al: #00000000; 20 | bg: ${BG}FF; 21 | bga: ${BGA}FF; 22 | fg: ${FG}FF; 23 | ac: ${AC}FF; 24 | se: ${SE}FF; 25 | } 26 | EOF 27 | 28 | polybar-msg cmd restart 29 | } 30 | 31 | if [[ $1 = "--default" ]]; then 32 | BG="#212B30" 33 | FG="#C4C7C5" 34 | BGA="#263035" 35 | SEP="#3F5360" 36 | AC="#EC407A" 37 | SE="#4DD0E1" 38 | change_color 39 | elif [[ $1 = "--nord" ]]; then 40 | BG="#3B4252" 41 | FG="#E5E9F0" 42 | BGA="#454C5C" 43 | SEP="#5B6579" 44 | AC="#BF616A" 45 | SE="#88C0D0" 46 | change_color 47 | elif [[ $1 = "--gruvbox" ]]; then 48 | BG="#282828" 49 | FG="#EBDBB2" 50 | BGA="#313131" 51 | SEP="#505050" 52 | AC="#FB4934" 53 | SE="#8EC07C" 54 | change_color 55 | elif [[ $1 = "--dark" ]]; then 56 | BG="#141C21" 57 | FG="#93A1A1" 58 | BGA="#1E262B" 59 | SEP="#3C4449" 60 | AC="#D12F2C" 61 | SE="#33C5BA" 62 | change_color 63 | elif [[ $1 = "--cherry" ]]; then 64 | BG="#1F1626" 65 | FG="#FFFFFF" 66 | BGA="#292030" 67 | SEP="#473F4E" 68 | AC="#D94084" 69 | SE="#4F5D95" 70 | change_color 71 | else 72 | cat <<- _EOF_ 73 | No option specified, Available options: 74 | --default --nord --gruvbox --dark --cherry 75 | _EOF_ 76 | fi 77 | -------------------------------------------------------------------------------- /config/polybar/polybar/forest/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/forest/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo "$UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo "$UPDATES" 31 | else 32 | echo "None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo "None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #272727 16 | background-alt = #383838 17 | foreground = #CACACA 18 | foreground-alt = #CACACA 19 | primary = #e53935 20 | red = #EF5350 21 | yellow = #FFEE58 22 | 23 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 24 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/grayblocks" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/grayblocks" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/grayblocks/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/pywal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/grayblocks/colors.ini" 5 | RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi" 6 | WFILE="$HOME/.cache/wal/colors.sh" 7 | 8 | # Get colors 9 | pywal_get() { 10 | wal -i "$1" -q -t 11 | } 12 | 13 | # Change colors 14 | change_color() { 15 | # polybar 16 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE 17 | sed -i -e "s/background-alt = #.*/background-alt = $BGA/g" $PFILE 18 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE 19 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE 20 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 21 | sed -i -e 's/red = #.*/red = #B71C1C/g' $PFILE 22 | sed -i -e 's/yellow = #.*/yellow = #F57F17/g' $PFILE 23 | 24 | # rofi 25 | cat > $RFILE <<- EOF 26 | /* colors */ 27 | 28 | * { 29 | al: #00000000; 30 | bg: ${BG}FF; 31 | bga: ${BGA}FF; 32 | fga: ${FGA}FF; 33 | fg: ${FG}FF; 34 | ac: ${AC}FF; 35 | } 36 | EOF 37 | } 38 | 39 | # Main 40 | if [[ -x "`which wal`" ]]; then 41 | if [[ "$1" ]]; then 42 | pywal_get "$1" 43 | 44 | # Source the pywal color file 45 | if [[ -e "$WFILE" ]]; then 46 | . "$WFILE" 47 | else 48 | echo 'Color file does not exist, exiting...' 49 | exit 1 50 | fi 51 | 52 | BG=`printf "%s\n" "$background"` 53 | FG=`printf "%s\n" "$background"` 54 | BGA=`printf "%s\n" "$color7"` 55 | FGA=`printf "%s\n" "$color7"` 56 | AC=`printf "%s\n" "$color1"` 57 | 58 | change_color 59 | else 60 | echo -e "[!] Please enter the path to wallpaper. \n" 61 | echo "Usage : ./pywal.sh path/to/image" 62 | fi 63 | else 64 | echo "[!] 'pywal' is not installed." 65 | fi 66 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/random.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/grayblocks/colors.ini" 5 | RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi" 6 | 7 | # Change colors 8 | change_color() { 9 | # polybar 10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE 11 | sed -i -e "s/background-alt = #.*/background-alt = $BGA/g" $PFILE 12 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE 13 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FG/g" $PFILE 14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 15 | sed -i -e 's/red = #.*/red = #EF5350/g' $PFILE 16 | sed -i -e 's/yellow = #.*/yellow = #FFEE58/g' $PFILE 17 | 18 | # rofi 19 | cat > $RFILE <<- EOF 20 | /* colors */ 21 | 22 | * { 23 | al: #00000000; 24 | bg: ${BG}FF; 25 | bga: ${BGA}FF; 26 | fga: ${FG}FF; 27 | fg: ${FG}FF; 28 | ac: ${AC}FF; 29 | } 30 | EOF 31 | 32 | polybar-msg cmd restart 33 | } 34 | 35 | get_random_number() { 36 | RNUM=$(( ($RANDOM % $1) + 1 )) 37 | } 38 | 39 | get_random_color() { 40 | RCOLOR="#" 41 | for i in 1 2 3 4 5 6 42 | do 43 | get_random_number "16" 44 | case $RNUM in 45 | "1") NEXTDIGIT="1";; 46 | "2") NEXTDIGIT="2";; 47 | "3") NEXTDIGIT="3";; 48 | "4") NEXTDIGIT="4";; 49 | "5") NEXTDIGIT="5";; 50 | "6") NEXTDIGIT="6";; 51 | "7") NEXTDIGIT="7";; 52 | "8") NEXTDIGIT="8";; 53 | "9") NEXTDIGIT="9";; 54 | "10") NEXTDIGIT="A";; 55 | "11") NEXTDIGIT="B";; 56 | "12") NEXTDIGIT="C";; 57 | "13") NEXTDIGIT="D";; 58 | "14") NEXTDIGIT="E";; 59 | "15") NEXTDIGIT="F";; 60 | "16") NEXTDIGIT="0";; 61 | esac 62 | RCOLOR="$RCOLOR$NEXTDIGIT" 63 | done 64 | echo $RCOLOR 65 | } 66 | 67 | # Main 68 | BG='#272727' # change to light bg 69 | FG='#CACACA' # change to dark fg 70 | BGA='#383838' 71 | AC=`get_random_color` 72 | 73 | change_color 74 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #272727FF; 6 | bga: #383838FF; 7 | fga: #CACACAFF; 8 | fg: #CACACAFF; 9 | ac: #e53935FF; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fga; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 210px; 13 | padding: 25px; 14 | border: 0px 0px 2px 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fga; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px 0px 2px 0px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/grayblocks/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/grayblocks/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #263238 16 | foreground = #DFDFDF 17 | primary = #00BCD4 18 | red = #FF5250 19 | green = #43a047 20 | yellow = #fdd835 21 | 22 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 23 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/hack" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q top -c "$DIR"/config.ini & 15 | polybar -q bottom -c "$DIR"/config.ini & 16 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/hack" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/check-network: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | count=0 4 | connected="" 5 | disconnected="" 6 | 7 | ID="$(ip link | awk '/state UP/ {print $2}')" 8 | 9 | while true; do 10 | if (ping -c 1 archlinux.org || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then 11 | if [[ $ID == e* ]]; then 12 | echo "$connected Online" ; sleep 25 13 | else 14 | echo "$connected Online" ; sleep 25 15 | fi 16 | else 17 | echo "$disconnected Offline" ; sleep 5 18 | fi 19 | done 20 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/hack/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/pywal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/hack/colors.ini" 5 | RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi" 6 | WFILE="$HOME/.cache/wal/colors.sh" 7 | 8 | # Get colors 9 | pywal_get() { 10 | wal -i "$1" -q -t 11 | } 12 | 13 | # Change colors 14 | change_color() { 15 | # polybar 16 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE 17 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE 18 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 19 | 20 | # rofi 21 | cat > $RFILE <<- EOF 22 | /* colors */ 23 | 24 | * { 25 | al: #00000000; 26 | bg: ${BG}FF; 27 | ac: ${AC}FF; 28 | se: ${AC}26; 29 | fg: ${FG}FF; 30 | } 31 | EOF 32 | 33 | polybar-msg cmd restart 34 | } 35 | 36 | # Main 37 | if [[ -x "`which wal`" ]]; then 38 | if [[ "$1" ]]; then 39 | pywal_get "$1" 40 | 41 | # Source the pywal color file 42 | if [[ -e "$WFILE" ]]; then 43 | . "$WFILE" 44 | else 45 | echo 'Color file does not exist, exiting...' 46 | exit 1 47 | fi 48 | 49 | BG=`printf "%s\n" "$background"` 50 | FG=`printf "%s\n" "$foreground"` 51 | AC=`printf "%s\n" "$color1"` 52 | 53 | change_color 54 | else 55 | echo -e "[!] Please enter the path to wallpaper. \n" 56 | echo "Usage : ./pywal.sh path/to/image" 57 | fi 58 | else 59 | echo "[!] 'pywal' is not installed." 60 | fi 61 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/random.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Color files 4 | PFILE="$HOME/.config/polybar/hack/colors.ini" 5 | RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi" 6 | 7 | # Change colors 8 | change_color() { 9 | # polybar 10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE 11 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE 12 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE 13 | 14 | # rofi 15 | cat > $RFILE <<- EOF 16 | /* colors */ 17 | 18 | * { 19 | al: #00000000; 20 | bg: #1F1F1FFF; 21 | ac: ${AC}FF; 22 | se: ${AC}26; 23 | fg: #FFFFFFFF; 24 | } 25 | EOF 26 | 27 | polybar-msg cmd restart 28 | } 29 | 30 | get_random_number() { 31 | RNUM=$(( ($RANDOM % $1) + 1 )) 32 | } 33 | 34 | get_random_color() { 35 | RCOLOR="#" 36 | for i in 1 2 3 4 5 6 37 | do 38 | get_random_number "16" 39 | case $RNUM in 40 | "1") NEXTDIGIT="1";; 41 | "2") NEXTDIGIT="2";; 42 | "3") NEXTDIGIT="3";; 43 | "4") NEXTDIGIT="4";; 44 | "5") NEXTDIGIT="5";; 45 | "6") NEXTDIGIT="6";; 46 | "7") NEXTDIGIT="7";; 47 | "8") NEXTDIGIT="8";; 48 | "9") NEXTDIGIT="9";; 49 | "10") NEXTDIGIT="A";; 50 | "11") NEXTDIGIT="B";; 51 | "12") NEXTDIGIT="C";; 52 | "13") NEXTDIGIT="D";; 53 | "14") NEXTDIGIT="E";; 54 | "15") NEXTDIGIT="F";; 55 | "16") NEXTDIGIT="0";; 56 | esac 57 | RCOLOR="$RCOLOR$NEXTDIGIT" 58 | done 59 | echo $RCOLOR 60 | } 61 | 62 | hex_to_rgb() { 63 | # Convert a hex value WITHOUT the hashtag (#) 64 | R=$(printf "%d" 0x${1:0:2}) 65 | G=$(printf "%d" 0x${1:2:2}) 66 | B=$(printf "%d" 0x${1:4:2}) 67 | } 68 | 69 | get_fg_color(){ 70 | INTENSITY=$(calc "$R*0.299 + $G*0.587 + $B*0.114") 71 | 72 | if [ $(echo "$INTENSITY>186" | bc) -eq 1 ]; then 73 | FG="#0a0a0a" 74 | else 75 | FG="#F5F5F5" 76 | fi 77 | } 78 | 79 | # Main 80 | BG='#1f1f1f' # change to light bg 81 | FG='#FFFFFF' # change to dark fg 82 | AC=`get_random_color` 83 | 84 | #BG=`get_random_color` 85 | #HEX=${BG:1} 86 | #hex_to_rgb $HEX 87 | #get_fg_color 88 | 89 | change_color 90 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #263238FF; 6 | ac: #00BCD4FF; 7 | se: #00BCD426; 8 | fg: #DFDFDFFF; 9 | } 10 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 1px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 1px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/hack/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/hack/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | dir="$HOME/.config/polybar" 4 | themes=(`ls --hide="launch.sh" $dir`) 5 | 6 | launch_bar() { 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | if [[ "$style" == "hack" || "$style" == "cuts" ]]; then 15 | polybar -q top -c "$dir/$style/config.ini" & 16 | polybar -q bottom -c "$dir/$style/config.ini" & 17 | elif [[ "$style" == "pwidgets" ]]; then 18 | bash "$dir"/pwidgets/launch.sh --main 19 | else 20 | polybar -q main -c "$dir/$style/config.ini" & 21 | fi 22 | } 23 | 24 | if [[ "$1" == "--material" ]]; then 25 | style="material" 26 | launch_bar 27 | 28 | elif [[ "$1" == "--shades" ]]; then 29 | style="shades" 30 | launch_bar 31 | 32 | elif [[ "$1" == "--hack" ]]; then 33 | style="hack" 34 | launch_bar 35 | 36 | elif [[ "$1" == "--docky" ]]; then 37 | style="docky" 38 | launch_bar 39 | 40 | elif [[ "$1" == "--cuts" ]]; then 41 | style="cuts" 42 | launch_bar 43 | 44 | elif [[ "$1" == "--shapes" ]]; then 45 | style="shapes" 46 | launch_bar 47 | 48 | elif [[ "$1" == "--grayblocks" ]]; then 49 | style="grayblocks" 50 | launch_bar 51 | 52 | elif [[ "$1" == "--blocks" ]]; then 53 | style="blocks" 54 | launch_bar 55 | 56 | elif [[ "$1" == "--colorblocks" ]]; then 57 | style="colorblocks" 58 | launch_bar 59 | 60 | elif [[ "$1" == "--forest" ]]; then 61 | style="forest" 62 | launch_bar 63 | 64 | else 65 | cat <<- EOF 66 | Usage : launch.sh --theme 67 | 68 | Available Themes : 69 | --blocks --colorblocks --cuts --docky 70 | --forest --grayblocks --hack --material 71 | --shades --shapes 72 | EOF 73 | fi 74 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #0A0D15 16 | foreground = #d88c97 17 | foreground-alt = #976269 18 | module-fg = #F5F5F5 19 | primary = #EE3B1D 20 | secondary = #D03131 21 | alternate = #F23C26 22 | 23 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 24 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/material" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/material" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/material/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #0A0D15FF; 6 | bga: #EE3B1D33; 7 | bar: #F5F5F5FF; 8 | fg: #d88c97FF; 9 | ac: #EE3B1DFF; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 1px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 1px; 15 | border-radius: 0px; 16 | border-color: @ac; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @ac; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/material/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/material/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #FFFFFF 16 | foreground = #FFFFFF 17 | foreground-alt = #656565 18 | 19 | ;; shades 20 | shade1 = #0D47A1 21 | shade2 = #1565C0 22 | shade3 = #1976D2 23 | shade4 = #1E88E5 24 | shade5 = #2196F3 25 | shade6 = #42A5F5 26 | shade7 = #64B5F6 27 | shade8 = #90CAF9 28 | 29 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 30 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/shades" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/shades" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/shades/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #FFFFFFFF; 6 | bg1: #1565C0FF; 7 | bg2: #1976D2FF; 8 | bg3: #1E88E5FF; 9 | bg4: #2196F3FF; 10 | fg: #2E2E2EFF; 11 | } 12 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 1px; 15 | border-radius: 0px; 16 | border-color: @bg1; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @bg1; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 1px; 15 | border-radius: 0px; 16 | border-color: @bg1; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @bg2; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/shades/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/shades/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/colors.ini: -------------------------------------------------------------------------------- 1 | ;; ┌────────────────────────────────────────────────────────────┐ 2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│ 3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│ 4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│ 5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│ 6 | ;; └────────────────────────────────────────────────────────────┘ 7 | 8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 9 | 10 | [color] 11 | 12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper. 13 | 14 | ;; main colors 15 | background = #1F1F1F 16 | foreground = #FFFFFF 17 | foreground-alt = #FFFFFF 18 | 19 | ;; shades 20 | shade1 = #0D47A1 21 | shade2 = #1565C0 22 | shade3 = #1976D2 23 | shade4 = #1E88E5 24 | shade5 = #2196F3 25 | shade6 = #42A5F5 26 | shade7 = #64B5F6 27 | shade8 = #90CAF9 28 | 29 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 30 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Add this script to your wm startup file. 4 | 5 | DIR="$HOME/.config/polybar/shapes" 6 | 7 | # Terminate already running bar instances 8 | killall -q polybar 9 | 10 | # Wait until the processes have been shut down 11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 12 | 13 | # Launch the bar 14 | polybar -q main -c "$DIR"/config.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/preview.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DIR="$HOME/.config/polybar/shapes" 4 | 5 | # Terminate already running bar instances 6 | killall -q polybar 7 | 8 | # Wait until the processes have been shut down 9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10 | 11 | # Launch the preview bar 12 | polybar -q top -c "$DIR"/preview.ini & 13 | polybar -q mid -c "$DIR"/preview.ini & 14 | polybar -q bottom -c "$DIR"/preview.ini & 15 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/scripts/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/shapes/scripts/rofi/launcher.rasi 4 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/scripts/rofi/colors.rasi: -------------------------------------------------------------------------------- 1 | /* colors */ 2 | 3 | * { 4 | al: #00000000; 5 | bg: #1F1F1FFF; 6 | bg1: #1565C0FF; 7 | bg2: #1976D2FF; 8 | bg3: #1E88E5FF; 9 | fg: #FFFFFFFF; 10 | } 11 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/scripts/rofi/confirm.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 225px; 13 | padding: 25px; 14 | border: 0px; 15 | border-radius: 12px; 16 | border-color: @bg1; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @bg2; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/scripts/rofi/message.rasi: -------------------------------------------------------------------------------- 1 | /* Confirm Dialog */ 2 | 3 | @import "colors.rasi" 4 | 5 | * { 6 | background-color: @bg; 7 | text-color: @fg; 8 | font: "Terminus 9"; 9 | } 10 | 11 | window { 12 | width: 320px; 13 | padding: 25px; 14 | border: 0px; 15 | border-radius: 12px; 16 | border-color: @bg1; 17 | location: center; 18 | y-offset: -2em; 19 | } 20 | 21 | entry { 22 | expand: true; 23 | text-color: @bg2; 24 | } 25 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/scripts/style-switch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | FILE="$HOME/.config/polybar/shapes/glyphs.ini" 4 | 5 | # Replace Glyphs 6 | change_style() { 7 | sed -i -e "s/gleft = .*/gleft = $1/g" $FILE 8 | sed -i -e "s/gright = .*/gright = $2/g" $FILE 9 | 10 | polybar-msg cmd restart 11 | } 12 | 13 | 14 | # Launch Rofi 15 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \ 16 | -theme $HOME/.config/polybar/shapes/scripts/rofi/styles.rasi \ 17 | <<< "♥ Style-1|♥ Style-2|♥ Style-3|♥ Style-4|♥ Style-5|♥ Style-6|♥ Style-7|♥ Style-8|♥ Style-9|♥ Style-10|♥ Style-11|♥ Style-12|")" 18 | case "$MENU" in 19 | ## Light Colors 20 | *Style-1) change_style   ;; 21 | *Style-2) change_style   ;; 22 | *Style-3) change_style   ;; 23 | *Style-4) change_style   ;; 24 | *Style-5) change_style   ;; 25 | *Style-6) change_style   ;; 26 | *Style-7) change_style   ;; 27 | *Style-8) change_style   ;; 28 | *Style-9) change_style   ;; 29 | *Style-10) change_style   ;; 30 | *Style-11) change_style   ;; 31 | *Style-12) change_style   ;; 32 | esac 33 | -------------------------------------------------------------------------------- /config/polybar/polybar/shapes/scripts/updates.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg 4 | 5 | get_total_updates() { UPDATES=$(~/.config/polybar/shapes/scripts/checkupdates 2>/dev/null | wc -l); } 6 | 7 | while true; do 8 | get_total_updates 9 | 10 | # notify user of updates 11 | if hash notify-send &>/dev/null; then 12 | if (( UPDATES > 50 )); then 13 | notify-send -u critical -i $NOTIFY_ICON \ 14 | "You really need to update!!" "$UPDATES New packages" 15 | elif (( UPDATES > 25 )); then 16 | notify-send -u normal -i $NOTIFY_ICON \ 17 | "You should update soon" "$UPDATES New packages" 18 | elif (( UPDATES > 2 )); then 19 | notify-send -u low -i $NOTIFY_ICON \ 20 | "$UPDATES New packages" 21 | fi 22 | fi 23 | 24 | # when there are updates available 25 | # every 10 seconds another check for updates is done 26 | while (( UPDATES > 0 )); do 27 | if (( UPDATES == 1 )); then 28 | echo " $UPDATES" 29 | elif (( UPDATES > 1 )); then 30 | echo " $UPDATES" 31 | else 32 | echo " None" 33 | fi 34 | sleep 10 35 | get_total_updates 36 | done 37 | 38 | # when no updates are available, use a longer loop, this saves on CPU 39 | # and network uptime, only checking once every 30 min for new updates 40 | while (( UPDATES == 0 )); do 41 | echo " None" 42 | sleep 1800 43 | get_total_updates 44 | done 45 | done 46 | -------------------------------------------------------------------------------- /config/polybar/temperature: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # fork from Per-core temperatures : 4 | # https://github.com/jaagr/polybar/wiki/User-contributed-modules#per-core-temperatures 5 | 6 | # Get information from cores temp thanks to sensors 7 | rawData=$( sensors | grep -m 1 Core | awk '{print substr($3, 2, length($3)-5)}' ) 8 | tempCore=($rawData) 9 | 10 | # Define constants : 11 | degree="°C" 12 | temperaturesValues=(40 50 60 70 80 90) 13 | temperaturesColors=("#6bff49" "#f4cb24" "#ff8819" "#ff3205" "#f40202" "#ef02db") 14 | temperaturesIcons=(     ) 15 | 16 | for iCore in ${!tempCore[*]} 17 | do 18 | for iTemp in ${!temperaturesValues[*]} 19 | do 20 | if (( "${tempCore[$iCore]}" < "${temperaturesValues[$iTemp]}" )); then 21 | tmpEcho="%{F${temperaturesColors[$iTemp]}}${tempCore[$iCore]}$degree%{F-}" 22 | finalEcho="$finalEcho $tmpEcho" 23 | break 24 | fi 25 | done 26 | total=$(( ${tempCore[$iCore]} + total )); 27 | done 28 | 29 | sum=$(( $total/${#tempCore[*]} )) 30 | 31 | for iTemp in ${!temperaturesValues[*]} 32 | do 33 | if (( "$sum" < "${temperaturesValues[$iTemp]}" )); then 34 | ## This line will color the icon too 35 | tmpEcho="%{F${temperaturesColors[$iTemp]}}${temperaturesIcons[$iTemp]}%{F-}" 36 | ## This line will NOT color the icon 37 | #tmpEcho="${temperaturesIcons[$iTemp]}" 38 | finalEcho=" $finalEcho $tmpEcho" 39 | break 40 | fi 41 | done 42 | 43 | echo $finalEcho 44 | -------------------------------------------------------------------------------- /config/polybar/update: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | notify-send "AUR Updates: $(paru -Qu | wc -l)" 4 | -------------------------------------------------------------------------------- /config/polybar/workspaces: -------------------------------------------------------------------------------- 1 | [module/1] 2 | type = custom/script 3 | exec = echo "" 4 | click-left = "xdotool key --clearmodifiers Super_L+1" 5 | [module/2] 6 | type = custom/script 7 | exec = echo "" 8 | click-left = "xdotool key --clearmodifiers Super_L+2" 9 | [module/3] 10 | type = custom/script 11 | exec = echo "" 12 | click-left = "xdotool key --clearmodifiers Super_L+3" 13 | [module/4] 14 | type = custom/script 15 | exec = echo "" 16 | click-left = "xdotool key --clearmodifiers Super_L+4" 17 | [module/5] 18 | type = custom/script 19 | exec = echo "" 20 | click-left = "xdotool key --clearmodifiers Super_L+5" 21 | [module/6] 22 | type = custom/script 23 | exec = echo "" 24 | click-left = "xdotool key --clearmodifiers Super_L+6" 25 | [module/7] 26 | type = custom/script 27 | exec = echo "" 28 | click-left = "xdotool key --clearmodifiers Super_L+7" 29 | [module/8] 30 | type = custom/script 31 | exec = echo "" 32 | click-left = "xdotool key --clearmodifiers Super_L+8" 33 | [module/9] 34 | type = custom/script 35 | exec = echo "" 36 | click-left = "xdotool key --clearmodifiers Super_L+9" 37 | -------------------------------------------------------------------------------- /config/polybar/wttr.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Query weather information for Atlanta, United States in Celsius from wttr.in. 4 | weather=$(curl -sS "wttr.in/Atlanta?m&format=%C+%t+%h") 5 | 6 | # Check if data was retrieved successfully. 7 | if [ -z "$weather" ]; then 8 | echo "Error: Unable to retrieve weather data for Atlanta." 9 | exit 1 10 | fi 11 | 12 | # Extract temperature and humidity using regular expressions. 13 | temperature=$(echo "$weather" | grep -oE '[+-]?[0-9]+°C') 14 | humidity=$(echo "$weather" | grep -oE '[0-9]+%') 15 | 16 | # Remove temperature and humidity from the output to isolate the condition. 17 | condition=$(echo "$weather" | sed -E "s/[+-]?[0-9]+°C//; s/[0-9]+%//" | xargs) 18 | 19 | # Select an appropriate icon based on the weather condition. 20 | case "$condition" in 21 | Clear*) 22 | icon="" ;; 23 | "Partly cloudy"*) 24 | icon="" ;; 25 | Cloudy*) 26 | icon="" ;; 27 | Mist* | Fog*) 28 | icon="" ;; 29 | "Light rain"*) 30 | icon="" ;; 31 | "Moderate rain"*) 32 | icon="" ;; 33 | "Heavy rain"*) 34 | icon="" ;; 35 | Overcast*) 36 | icon="" ;; 37 | *) 38 | icon="" ;; 39 | esac 40 | 41 | # Output the formatted weather information. 42 | echo "$icon $condition $temperature $humidity" 43 | 44 | -------------------------------------------------------------------------------- /config/ranger/rc.conf: -------------------------------------------------------------------------------- 1 | # Columns and borders: 2 | set column_ratios 2,3,4 3 | set draw_borders true 4 | 5 | # Hidden files: 6 | set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$ 7 | set show_hidden false 8 | 9 | # Use elipses and tilde: 10 | set unicode_ellipsis true 11 | set tilde_in_titlebar true 12 | 13 | # Confirm deletion [always, never, multiple]: 14 | set confirm_on_delete always 15 | 16 | # Preview files: 17 | set preview_files true 18 | set preview_directories false 19 | set preview_images true 20 | set preview_images_method kitty 21 | set collapse_preview true 22 | set use_preview_script true 23 | set padding_right true 24 | 25 | # Version control awareness: 26 | set vcs_aware true 27 | set vcs_backend_git enabled 28 | 29 | # Colorscheme [default, jungle, snow]: 30 | set colorscheme jungle 31 | 32 | # Save console history: 33 | set save_console_history true 34 | set max_history_size 20 35 | set max_console_history_size 50 36 | 37 | # Progress bar: 38 | set draw_progress_bar_in_status_bar true 39 | 40 | # Mouse support: 41 | set mouse_enabled false 42 | 43 | # Displaying file size: 44 | set display_size_in_main_column true 45 | set display_size_in_status_bar true 46 | 47 | # Display file tags: 48 | set display_tags_in_all_columns true 49 | 50 | # Space offset while scrolling: 51 | set scroll_offset 8 52 | 53 | # Flush the input after each key hit: 54 | set flushinput true 55 | 56 | # Local Options 57 | setlocal path=~/Downloads sort mtime 58 | -------------------------------------------------------------------------------- /config/rofi/config.rasi: -------------------------------------------------------------------------------- 1 | 2 | configuration { 3 | display-drun: "Applications:"; 4 | display-window: "Windows:"; 5 | drun-display-format: "{name}"; 6 | font: "JetBrainsMono Nerd Font Medium 10"; 7 | modi: "window,run,drun,emoji,calc"; 8 | } 9 | 10 | /* Light theme. */ 11 | /* @import "~/.cache/wal/colors-rofi-light" */ 12 | 13 | /* Dark theme. */ 14 | @import "~/.cache/wal/colors-rofi-dark" 15 | 16 | -------------------------------------------------------------------------------- /config/scripts/Pywal/Cached Theme.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/scripts/Pywal/Cached Theme.pak -------------------------------------------------------------------------------- /config/scripts/Pywal/images/theme_ntp_background_norepeat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/scripts/Pywal/images/theme_ntp_background_norepeat.png -------------------------------------------------------------------------------- /config/scripts/Pywal/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 3, 3 | "version": "1.0", 4 | "name": "Pywal Theme", 5 | "theme": { 6 | "images": { 7 | "theme_ntp_background" : "images/theme_ntp_background_norepeat.png" 8 | }, 9 | "colors": { 10 | "frame": [0, 0, 31], 11 | "frame_inactive": [0, 0, 31], 12 | "toolbar": [5, 0, 254], 13 | "ntp_text": [242, 198, 233], 14 | "ntp_link": [5, 0, 254], 15 | "ntp_section": [169, 138, 163], 16 | "button_background": [242, 198, 233], 17 | "toolbar_button_icon": [242, 198, 233], 18 | "toolbar_text": [242, 198, 233], 19 | "omnibox_background": [0, 0, 31], 20 | "omnibox_text": [242, 198, 233] 21 | }, 22 | "properties": { 23 | "ntp_background_alignment": "bottom" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /config/scripts/axurl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | while read url; do axel -c $url; done < ~/.config/scripts/url.txt 4 | -------------------------------------------------------------------------------- /config/scripts/battery_2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PERCENT=$(acpi | awk '{print $4}' | sed 's/,//g' | sed 's/%//g') 4 | REMAIN=$(acpi | grep -o -E "[0-9]+:[0-9]+:[0-9]+") 5 | 6 | notify-send "Remaining Time" "$REMAIN" 7 | 8 | if [ $PERCENT -le 15 ]; then 9 | notify-send "🪫 Low Battery" "Plug the charger" 10 | fi 11 | -------------------------------------------------------------------------------- /config/scripts/brightdown: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | brightnessctl set 5%- && brightnessctl | awk 'NR==2 {print $4}' > ~/.config/brightness 4 | -------------------------------------------------------------------------------- /config/scripts/brightup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | brightnessctl set +5% && brightnessctl | awk 'NR==2 {print $4}' > ~/.config/brightness 4 | -------------------------------------------------------------------------------- /config/scripts/changevolume: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function send_notification() { 4 | volume=$(pamixer --get-volume) 5 | dunstify -a "changevolume" -u low -r "9993" -h int:value:"$volume" -i "volume-$1" "Volume: ${volume}%" -t 2000 6 | } 7 | 8 | case $1 in 9 | up) 10 | # Set the volume on (if it was muted) 11 | pamixer -u 12 | pamixer -i 5 --allow-boost 13 | send_notification $1 14 | ;; 15 | down) 16 | pamixer -u 17 | pamixer -d 5 --allow-boost 18 | send_notification $1 19 | ;; 20 | mute) 21 | pamixer -t 22 | if $(pamixer --get-mute); then 23 | dunstify -i volume-mute -a "changevolume" -t 2000 -r 9993 -u low "Muted" 24 | else 25 | send_notification up 26 | fi 27 | ;; 28 | esac 29 | -------------------------------------------------------------------------------- /config/scripts/chromeTheme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ~/.cache/wal/colors.sh # import colors from pywal 4 | 5 | THEME_NAME="Pywal" 6 | 7 | 8 | DIR=$(dirname "${BASH_SOURCE[0]}") 9 | THEME_DIR="$DIR/$THEME_NAME" 10 | 11 | # Converts hex colors into rgb joined with comma 12 | # #fff -> 255, 255, 255 13 | hexToRgb() { 14 | # Remove '#' character from hex color #fff -> fff 15 | plain=${1#*#} 16 | printf "%d, %d, %d" 0x${plain:0:2} 0x${plain:2:2} 0x${plain:4:2} 17 | } 18 | 19 | prepare() { 20 | if [ -d $THEME_DIR ]; then 21 | rm -rf $THEME_DIR 22 | fi 23 | 24 | mkdir $THEME_DIR 25 | mkdir "$THEME_DIR/images" 26 | 27 | # Copy wallpaper so it can be used in theme 28 | background_image="images/theme_ntp_background_norepeat.png" 29 | cp "$wallpaper" "$THEME_DIR/$background_image" 30 | 31 | } 32 | 33 | 34 | background=$(hexToRgb $background) 35 | foreground=$(hexToRgb $foreground) 36 | accent=$(hexToRgb $color11) 37 | secondary=$(hexToRgb $color8) 38 | 39 | generate() { 40 | # Theme template 41 | cat > "$THEME_DIR/manifest.json" << EOF 42 | { 43 | "manifest_version": 3, 44 | "version": "1.0", 45 | "name": "$THEME_NAME Theme", 46 | "theme": { 47 | "images": { 48 | "theme_ntp_background" : "$background_image" 49 | }, 50 | "colors": { 51 | "frame": [$background], 52 | "frame_inactive": [$background], 53 | "toolbar": [$accent], 54 | "ntp_text": [$foreground], 55 | "ntp_link": [$accent], 56 | "ntp_section": [$secondary], 57 | "button_background": [$foreground], 58 | "toolbar_button_icon": [$foreground], 59 | "toolbar_text": [$foreground], 60 | "omnibox_background": [$background], 61 | "omnibox_text": [$foreground] 62 | }, 63 | "properties": { 64 | "ntp_background_alignment": "bottom" 65 | } 66 | } 67 | } 68 | EOF 69 | } 70 | 71 | prepare 72 | generate 73 | echo "Pywal Chrome theme generated at $THEME_DIR" 74 | -------------------------------------------------------------------------------- /config/scripts/conf_locations: -------------------------------------------------------------------------------- 1 | /home/core/.config/kitty/kitty.conf 2 | /home/core/.config/neofetch/arch-small 3 | /home/core/.config/i3/config 4 | /home/core/.config/nvim/init.lua 5 | /home/core/.config/nvim/lua/user/plugins.lua 6 | /home/core/.config/lf/lfrc 7 | /home/core/.config/picom/picom.conf 8 | -------------------------------------------------------------------------------- /config/scripts/conf_selector: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | chosen=$(cat /home/core/.config/scripts/conf_locations | rofi -dmenu -i -p "Config") 4 | 5 | if [ -z "$chosen" ]; then 6 | exit 0 7 | else 8 | kitty -e lvim $chosen 9 | fi 10 | -------------------------------------------------------------------------------- /config/scripts/dator: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | title="$(date +%H:%M)" 4 | text="$(date +%d). $(date +%B) $(date +%Y), $(date +%A)" 5 | notify-send -i "$title" "$text" 6 | -------------------------------------------------------------------------------- /config/scripts/dayplan: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | FILENAME=$(date +%Y-%m-%d).wiki 4 | DIR="/home/core/Temp/MEGA/Notes/Dayplan/" 5 | INDEX="/home/core/Temp/MEGA/Notes/Dayplan/Dayplans.wiki" 6 | TEMPLATE="/home/core/Temp/MEGA/Notes/Templates/Dayplan.md" 7 | 8 | # create a file named with the current date, in the directory 9 | if [ ! -f $DIR$FILENAME ]; then 10 | cp $TEMPLATE $DIR$FILENAME 11 | fi 12 | 13 | DATE="[[$(date +%Y-%m-%d)]]" 14 | 15 | # if the file doesn't contain the date, add it 16 | if ! grep -q "$(date +%Y-%m-%d)" "$INDEX" ; then 17 | sed -i "1i $DATE" $INDEX 18 | fi 19 | -------------------------------------------------------------------------------- /config/scripts/e-rater: -------------------------------------------------------------------------------- 1 | #!/bin/python3 2 | 3 | import nltk 4 | from nltk.tokenize import word_tokenize 5 | from language_tool_python import LanguageTool 6 | 7 | def analyze_essay(file_path): 8 | # Read the essay from the file 9 | with open(file_path, 'r') as file: 10 | essay = file.read() 11 | 12 | # Tokenize the essay into words 13 | words = word_tokenize(essay) 14 | 15 | # Count the number of unique words 16 | unique_word_count = len(set(words)) 17 | 18 | # Calculate the vocabulary diversity 19 | vocabulary_diversity = unique_word_count / len(words) 20 | 21 | print(f"Word count:{len(words)}") 22 | print(f"Number of unique words: {unique_word_count}") 23 | print(f"Vocabulary diversity: {vocabulary_diversity:.2f}") 24 | 25 | # Calculate the average word length 26 | word_lengths = [len(word) for word in words] 27 | average_word_length = sum(word_lengths) / len(word_lengths) 28 | print(f"Average word length: {average_word_length:.2f}") 29 | 30 | # Perform grammar and spelling error detection 31 | tool = LanguageTool('en-US') 32 | errors = tool.check(essay) 33 | 34 | # Count the number of grammar and spelling errors 35 | error_count = len(errors) 36 | 37 | print(f"Number of errors: {error_count}") 38 | print("\nError details:") 39 | 40 | for error in errors: 41 | print(f"\nError message: {error.message}") 42 | print(f"Error context: {error.context}") 43 | print(f"Error details: {error.ruleId}") 44 | 45 | # Provide the path to the essay file 46 | file_path = 'essay.txt' 47 | analyze_essay(file_path) 48 | -------------------------------------------------------------------------------- /config/scripts/house: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo 'Season: ' 3 | read season 4 | echo 'Episode: ' 5 | read episode 6 | 7 | DIR=/home/core/Media/Videos/Series/House 8 | 9 | axel -a -c -o $DIR/"House.M.D.S$season.720p.Bluray.E$episode.mkv" http://dls2.top-movies2filmha.tk/DonyayeSerial/series/House.M.D/S$season/720p.BluRay/House.M.D.S${season}E${episode}.720p.BluRay.PaHe.DonyayeSerial.mkv 10 | -------------------------------------------------------------------------------- /config/scripts/lang: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | main() { 4 | if [ "$1" = "-g" ] && [ "$2" = "-s" ]; then 5 | dict -d fd-deu-eng $3 | awk '(NR>4)' 6 | 7 | elif [ "$1" = "-g" ] && [ "$2" = "-f" ]; then 8 | while read word 9 | do 10 | dict -d fd-deu-eng $word | awk '(NR>4)' >> $3_out.txt 11 | done < $3 12 | 13 | elif [ "$1" = "-d" ] && [ "$2" = "-s" ]; then 14 | dict -d wn $3 | awk '(NR>4)' 15 | 16 | elif [ "$1" = "-d" ] && [ "$2" = "-f" ]; then 17 | while read word 18 | do 19 | dict -d wn $word | awk '(NR>4)' >> $3_out.txt 20 | done < $3 21 | 22 | elif [ "$1" = "-t" ] && [ "$2" = "-s" ]; then 23 | dict -d moby-thesaurus $3 | awk '(NR>4)' 24 | 25 | elif [ "$1" = "-t" ] && [ "$2" = "-f" ]; then 26 | while read word 27 | do 28 | dict -d moby-thesaurus $word | awk '(NR>4)' >> $3_out.txt 29 | done < $3 30 | 31 | elif [ "$1" = "-e" ] && [ "$2" = "-s" ]; then 32 | dict -d elements $2 | awk '(NR>4)' 33 | 34 | elif [ "$1" = "-h" ]; then 35 | echo "Usage: $0 [-g|-d|-t] [-s|-f] [word|file]" 36 | echo " -g: German-English dictionary" 37 | echo " -d: English dictionary" 38 | echo " -t: English thesaurus" 39 | echo " -e: Look up the definition of a chemical element" 40 | echo " -s: Single object" 41 | echo " -f: File with words" 42 | fi 43 | } 44 | 45 | main "$@" 46 | -------------------------------------------------------------------------------- /config/scripts/lfub: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This is a wrapper script for lb that allows it to create image previews with 4 | # ueberzug. This works in concert with the lf configuration file and the 5 | # lf-cleaner script. 6 | 7 | set -e 8 | 9 | cleanup() { 10 | exec 3>&- 11 | rm "$FIFO_UEBERZUG" 12 | } 13 | 14 | if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then 15 | lf "$@" 16 | else 17 | [ ! -d "$HOME/.cache/lf" ] && mkdir -p "$HOME/.cache/lf" 18 | export FIFO_UEBERZUG="$HOME/.cache/lf/ueberzug-$$" 19 | mkfifo "$FIFO_UEBERZUG" 20 | ueberzug layer -s <"$FIFO_UEBERZUG" -p json & 21 | exec 3>"$FIFO_UEBERZUG" 22 | trap cleanup HUP INT QUIT TERM PWR EXIT 23 | lf "$@" 3>&- 24 | fi 25 | -------------------------------------------------------------------------------- /config/scripts/lock: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | BLANK='#00000000' 4 | CLEAR='#ffffff22' 5 | DEFAULT='#00897bE6' 6 | TEXT='#00897bE6' 7 | WRONG='#880000bb' 8 | VERIFYING='#00564dE6' 9 | 10 | /usr/bin/i3lock \ 11 | --insidever-color=$CLEAR \ 12 | --ringver-color=$VERIFYING \ 13 | \ 14 | --insidewrong-color=$CLEAR \ 15 | --ringwrong-color=$WRONG \ 16 | \ 17 | --inside-color=$BLANK \ 18 | --ring-color=$DEFAULT \ 19 | --line-color=$BLANK \ 20 | --separator-color=$DEFAULT \ 21 | \ 22 | --verif-color=$TEXT \ 23 | --wrong-color=$TEXT \ 24 | --time-color=$TEXT \ 25 | --date-color=$TEXT \ 26 | --layout-color=$TEXT \ 27 | --keyhl-color=$WRONG \ 28 | --bshl-color=$WRONG \ 29 | \ 30 | --screen 1 \ 31 | --blur 5 \ 32 | --clock \ 33 | --indicator \ 34 | --time-str="%H:%M:%S" \ 35 | --date-str="%A, %m %Y" \ 36 | --keylayout 1 \ 37 | -------------------------------------------------------------------------------- /config/scripts/main_options.md: -------------------------------------------------------------------------------- 1 | Create a new note 2 | View notes 3 | Delete a note 4 | -------------------------------------------------------------------------------- /config/scripts/manpdf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Enter The Command Name: " 4 | read command 5 | touch ~/"$command".txt 6 | man $command >> ~/"$command".txt & pandoc ~/"$command".txt -o ~/"$command".pdf 7 | zathura ~/"$command".pdf && rm ~/"$command".pdf ~/"$command".txt 8 | 9 | -------------------------------------------------------------------------------- /config/scripts/mic_tog: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ $(pulseaudio-ctl | grep "Is source muted" | wc -c) -eq 47 ] 4 | then 5 | echo "🔇" # Muted Icon (Install Some icon pack like feather, nerd-fonts) 6 | else 7 | echo "🎙️" # Unmuted Icon (Install Some icon pack like feather, nerd-fonts) 8 | fi 9 | -------------------------------------------------------------------------------- /config/scripts/microp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pulseaudio-ctl mute-input 4 | 5 | VAR=$(pulseaudio-ctl | grep "Is source muted" | awk '{print $NF}') 6 | 7 | if [ $(echo ${#VAR}) -eq 21 ]; then 8 | notify-send "🔇 Microphone Muted" 9 | elif [ $(echo ${#VAR}) -eq 20 ]; then 10 | notify-send "✅ Microphone Enabled" 11 | fi 12 | -------------------------------------------------------------------------------- /config/scripts/noti-temp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | notify-send "🌡️ Temperature 4 | 5 | Core 0: $(sensors | grep "Core 0:" | tr -d '+' | awk '{print $3}') 6 | Core 1: $(sensors | grep "Core 1:" | tr -d '+' | awk '{print $3}') 7 | GPU: $(sensors | awk 'NR==33' | awk '{print $2}') 8 | " 9 | -------------------------------------------------------------------------------- /config/scripts/notify-pipe: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | read notification 4 | notify-send "$notification" "$@" 5 | -------------------------------------------------------------------------------- /config/scripts/obs-pic: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cp $(ls -v ~/Media/Pictures/Wallpapers/*.png | shuf -n 1) ~/Temp/MEGA/Obsidian/Broadest/0\ -\ Meta/0.1\ -\ Attachments/dashboard-pic.png 4 | 5 | cp $(ls -v ~/Media/Pictures/Wallpapers/Autumn/*.png | shuf -n 1) ~/Temp/MEGA/Obsidian/Broadest/0\ -\ Meta/0.1\ -\ Attachments/Journal.png 6 | -------------------------------------------------------------------------------- /config/scripts/pdfconv: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Absolute Path To Your PDF File: " 4 | read input 5 | echo "Name of Your Output File: " 6 | read name 7 | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \ 8 | -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$name.pdf $input 9 | -------------------------------------------------------------------------------- /config/scripts/post: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | read -p "Blog Title: " file_name 4 | 5 | cd /home/core/Documents/Repositories/rahriver/ && hugo new posts/"${file_name}.md" 6 | 7 | nvim /home/core/Documents/Repositories/rahriver/content/posts/"${file_name}.md" 8 | 9 | -------------------------------------------------------------------------------- /config/scripts/ray: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Required parameters: 4 | # @raycast.schemaVersion 1 5 | # @raycast.title My Code 6 | # @raycast.mode silent 7 | 8 | # Optional parameters: 9 | # @raycast.icon ./images/ray-so.png 10 | # @raycast.argument1 { "type": "text", "placeholder": "Title", "optional": true } 11 | 12 | # Documentation: 13 | # @raycast.description Create beautiful images of your code with https://ray.so 14 | # @raycast.author Thomas Paul Mann 15 | # @raycast.authorURL https://github.com/thomaspaulmann 16 | 17 | # Customization: 18 | # Set colors. Available options: candy, breeze, midnight or sunset 19 | COLORS="breeze" 20 | BACKGROUND="true" 21 | DARK_MODE="true" 22 | PADDING="32" 23 | LANGUAGE="python" 24 | 25 | # Main: 26 | 27 | if [[ -z "$1" ]] 28 | then 29 | TITLE="My Code" 30 | else 31 | TITLE=$(php -r "echo urlencode(\"$1\");") 32 | fi 33 | 34 | CODE=$(xsel --clipboard --output | base64) 35 | # Urlencode any + symbols in the base64 encoded string 36 | CODE=${CODE//+/%2B} 37 | xdg-open "https://ray.so/?colors=$COLORS&background=$BACKGROUND&darkMode=$DARK_MODE&padding=$PADDING&title=$TITLE&code=$CODE&language=$LANGUAGE" 38 | -------------------------------------------------------------------------------- /config/scripts/record_vid: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # start|stop screencast 3 | 4 | notify-send "Screen Is Recording" 5 | set -o errexit 6 | set -o pipefail 7 | 8 | PIDFILE="${HOME}/.screencast.pid" 9 | OUTFILE="/home/core/out.mkv" 10 | FINALFILE="${HOME}/Videos/ScreenCasts/screencast--$(date +'%Y-%m-%d--%H-%M-%S').mkv" 11 | 12 | # check if this script is already running 13 | if [ -s $PIDFILE ] && [ -d "/proc/$(cat $PIDFILE)" ]; then 14 | 15 | # send SIG_TERM to screen recorder 16 | kill $(cat $PIDFILE) 17 | notify-send "Done Recording" 18 | 19 | # clear the pidfile 20 | rm $PIDFILE 21 | 22 | # move the screencast into the user's video directory 23 | mv $OUTFILE $FINALFILE 24 | else 25 | # screen resolution 26 | SCREENRES=$(xrandr -q --current | grep '*' | awk '{print$1}') 27 | 28 | # write to the pidfile 29 | echo $$ > $PIDFILE && 30 | 31 | # let the recording process take over this pid 32 | 33 | exec ffmpeg \ 34 | -f alsa -ac 2 \ 35 | -i pulse \ 36 | -f x11grab \ 37 | -r 25 \ 38 | -s ${SCREENRES} \ 39 | -i :0.0 \ 40 | -acodec pcm_s16le \ 41 | -vcodec libx264 \ 42 | -preset ultrafast \ 43 | -threads 0 ${OUTFILE} 44 | fi 45 | 46 | 47 | -------------------------------------------------------------------------------- /config/scripts/setbg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script does the following: 4 | # Run by itself, set the wallpaper (at X start). 5 | # If given a file, set that as the new wallpaper. 6 | # If given a directory, choose random file in it. 7 | # If wal is installed, also generates a colorscheme. 8 | 9 | # Location of link to wallpaper link. 10 | bgloc="${XDG_DATA_HOME:-$HOME/Media/Pictures}/Wallpapers" 11 | 12 | # Configuration files of applications that have their themes changed by pywal. 13 | dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc" 14 | zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc" 15 | 16 | trueloc="$(readlink -f "$1")" && 17 | case "$(file --mime-type -b "$trueloc")" in 18 | image/* ) ln -sf "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..." ;; 19 | inode/directory ) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && notify-send -i "$bgloc" "Random Wallpaper chosen." ;; 20 | *) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;; 21 | esac 22 | 23 | # If pywal is installed, use it. 24 | if command -v wal >/dev/null 2>&1 ; then 25 | wal -n -i "$(readlink -f $bgloc)" -o "${XDG_CONFIG_HOME:-$HOME/.config}/wal/postrun" >/dev/null 2>&1 26 | # If pywal is removed, return config files to normal. 27 | else 28 | [ -f "$dunstconf.bak" ] && unlink "$dunstconf" && mv "$dunstconf.bak" "$dunstconf" 29 | [ -f "$zathuraconf.bak" ] && unlink "$zathuraconf" && mv "$zathuraconf.bak" "$zathuraconf" 30 | fi 31 | 32 | xwallpaper --zoom "$bgloc" 33 | -------------------------------------------------------------------------------- /config/scripts/songinfo: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | previewdir="$XDG_CONFIG_HOME/ncmpcpp/previews" 4 | filename="$(mpc --format ~/audio/music/%file% current)" 5 | previewname="$previewdir/$(mpc --format %album% current | base64).png" 6 | 7 | [ -e "$previewname" ] || ffmpeg -y -i "$filename" -an -vf scale=128:128 "$previewname" > /dev/null 2>&1 8 | 9 | notify-send -r 27072 "Now Playing" "$(mpc --format '%title% \n%artist% - %album%' current)" -i "$previewname" 10 | -------------------------------------------------------------------------------- /config/scripts/temp_options.md: -------------------------------------------------------------------------------- 1 | Basic 2 | LaTeX 3 | RMark 4 | Beamer 5 | -------------------------------------------------------------------------------- /config/scripts/theme.md: -------------------------------------------------------------------------------- 1 | Orange 2 | Teal 3 | Pro 4 | Minimal 5 | Catppuccin 6 | Amethyst 7 | Dark_Cyan 8 | Dark 9 | Red 10 | Purple 11 | Yellow 12 | -------------------------------------------------------------------------------- /config/scripts/todos: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DAYPLAN=/home/core/.config/scripts/dayplan 4 | DATE=`date +%Y-%m-%d` 5 | FILE=/home/core/Temp/MEGA/Notes/Dayplan/$DATE.wiki 6 | # If the file dont exist, create it, else run dunstify on it 7 | if [ ! -f $FILE ]; then 8 | $DAYPLAN 9 | notify-send "Dayplan" "Created a TODO For Today $DATE" 10 | else 11 | dunstify -u low --replace=69 -i "TODOS" "$(cat $FILE | awk '(NR>2)')" 12 | fi 13 | -------------------------------------------------------------------------------- /config/scripts/touchpad_toggle: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # toggle synaptic touchpad on/off 3 | 4 | # get current state 5 | SYNSTATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }') 6 | 7 | # change to other state 8 | if [ $SYNSTATE = 0 ]; then 9 | synclient touchpadoff=1 10 | elif [ $SYNSTATE = 1 ]; then 11 | synclient touchpadoff=0 12 | else 13 | echo "Couldn't get touchpad status from synclient" 14 | exit 1 15 | fi 16 | exit 0 17 | -------------------------------------------------------------------------------- /config/scripts/updates: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | QUERY=$(pacman -Qu -q | wc -l) 4 | notify-send "📦 Pacman Update" "$QUERY packages need to be updated." 5 | -------------------------------------------------------------------------------- /config/scripts/url.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahriver/Arch-Linux/1e5032d3a1fbac0ae5e55df84c8f73a0551684a9/config/scripts/url.txt -------------------------------------------------------------------------------- /config/scripts/wttr: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | 3 | def get_weather(location): 4 | import requests 5 | url = "http://wttr.in/{}".format(location) 6 | r = requests.get(url) 7 | return r.text 8 | 9 | print(get_weather("Tehran")) 10 | -------------------------------------------------------------------------------- /config/taskell/bindings.ini: -------------------------------------------------------------------------------- 1 | # general 2 | quit = q 3 | undo = u 4 | redo = r 5 | search = / 6 | help = ? 7 | due = ! 8 | 9 | # navigation 10 | previous = k 11 | next = j 12 | left = h 13 | right = l 14 | bottom = G 15 | top = g 16 | 17 | # new tasks 18 | new = a 19 | newAbove = O 20 | newBelow = o 21 | duplicate = + 22 | 23 | # editing tasks 24 | edit = e, A, i 25 | clear = C 26 | delete = D 27 | detail = 28 | dueDate = @ 29 | clearDate = 30 | 31 | # moving tasks 32 | moveUp = K 33 | moveDown = J 34 | # move to top of previous list 35 | moveLeftTop = ˙ 36 | # move to top of next list 37 | moveRightTop = ¬ 38 | # move to bottom of previous list 39 | moveLeftBottom = H 40 | # move to bottom of next list 41 | moveRightBottom = L 42 | # move to bottom of last list 43 | complete = 44 | # move to top of last list 45 | completeToTop = T 46 | # select a list to move to 47 | moveMenu = m 48 | 49 | # lists 50 | listNew = N 51 | listEdit = E 52 | listDelete = X 53 | listRight = > 54 | listLeft = < 55 | -------------------------------------------------------------------------------- /config/taskell/config.ini: -------------------------------------------------------------------------------- 1 | [general] 2 | filename = taskell.md 3 | 4 | [layout] 5 | padding = 1 6 | column_width = 30 7 | column_padding = 3 8 | description_indicator = "≡" 9 | statusbar = true 10 | 11 | [markdown] 12 | title = "##" 13 | task = "-" 14 | summary = " >" 15 | due = " @" 16 | subtask = " *" 17 | localTimes = false 18 | -------------------------------------------------------------------------------- /config/taskell/template.md: -------------------------------------------------------------------------------- 1 | ## To Do 2 | 3 | 4 | ## Doing 5 | 6 | 7 | ## Done 8 | 9 | -------------------------------------------------------------------------------- /config/taskell/theme.ini: -------------------------------------------------------------------------------- 1 | [other] 2 | 3 | ; list title 4 | title.fg = green 5 | 6 | ; status bar 7 | statusBar.bg = blue 8 | statusBar.fg = black 9 | 10 | ; current list title 11 | titleCurrent.fg = blue 12 | 13 | ; current task 14 | taskCurrent.fg = magenta 15 | 16 | ; subtasks 17 | ; selected 18 | subtaskCurrent.fg = magenta 19 | ; incomplete 20 | subtaskIncomplete.fg = blue 21 | ; complete 22 | subtaskComplete.fg = yellow 23 | 24 | ; disabled 25 | disabled.fg = yellow 26 | -------------------------------------------------------------------------------- /config/tspreed/tspreed.rc: -------------------------------------------------------------------------------- 1 | wpm=320 2 | focuspointer=line 3 | focusbold=true 4 | focuscolor=1 5 | -------------------------------------------------------------------------------- /config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | set pages-per-row 1 2 | set scroll-page-aware "true" 3 | set scroll-full-overlap 0.01 4 | set scroll-step 100 5 | set zoom-min 10 6 | set guioptions "" 7 | set selection-clipboard clipboard 8 | set scroll-step 50 9 | 10 | # <--------- Bindings ---------> 11 | unmap f 12 | map f toggle_fullscreen 13 | map [fullscreen] f toggle_fullscreen 14 | map p print 15 | map b toggle_statusbar 16 | -------------------------------------------------------------------------------- /config/zsh/.zprofile: -------------------------------------------------------------------------------- 1 | # 2 | #~/.zprofile 3 | # 4 | 5 | if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then 6 | exec startx 7 | fi 8 | 9 | source ~/.bash_profile 10 | -------------------------------------------------------------------------------- /config/zsh/.zshenv: -------------------------------------------------------------------------------- 1 | export EDITOR="nvim" 2 | # export QT_QPA_PLATFORMTHEME=gtk2 3 | export VIDEO="mpv" 4 | export BROWSER="brave" 5 | export LF_ICONS=/home/core/.config/lf/icons 6 | -------------------------------------------------------------------------------- /config/zsh/zprofile: -------------------------------------------------------------------------------- 1 | # 2 | #~/.zprofile 3 | # 4 | 5 | if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then 6 | exec startx 7 | fi 8 | 9 | source ~/.bash_profile 10 | -------------------------------------------------------------------------------- /config/zsh/zshenv: -------------------------------------------------------------------------------- 1 | export EDITOR="nvim" 2 | # export QT_QPA_PLATFORMTHEME=gtk2 3 | export VIDEO="mpv" 4 | export BROWSER="brave" 5 | export LF_ICONS=/home/core/.config/lf/icons 6 | --------------------------------------------------------------------------------