├── .Xdefaults ├── .bashrc ├── .config ├── bspwm │ └── bspwmrc ├── nvim │ └── init.vim ├── polybar │ ├── cmus.sh │ ├── config.ini │ ├── launch.sh │ └── spotify.py ├── ranger │ └── rc.conf ├── rofi │ ├── config.rasi │ ├── darkpink.rasi │ └── icons_full.rasi ├── sxhkd │ └── sxhkdrc └── xfce4 │ └── xfconf │ └── xfce-perchannel-xml │ └── xfce4-panel.xml ├── .doom.d ├── config.el ├── init.el └── packages.el ├── .emacs.d └── .local │ └── straight │ └── build │ └── doom-themes │ └── doom-horizon-theme.el ├── .themes └── Sweet-mars │ └── gtk-3.0 │ └── gtk-dark.css ├── .vim └── .netrwhist ├── README.md ├── pictures ├── darkrice3.png ├── neubuildings.png └── neurice.png └── programs └── lightdm-tiny-greeter └── config.h /.Xdefaults: -------------------------------------------------------------------------------- 1 | ! urxvt*background: #00010D 2 | 3 | urxvt*letterSpace: 0 4 | 5 | !urxvt*font: xft:IBM Plex Mono:Regular:size=11, xft:RobotoMono Nerd Font:size=11 6 | !urxvt*boldFont: xft:IBM Plex Mono:Regular:size=11, xft:RobotoMono Nerd Font:size=11 7 | urxvt*font: xft:iA Writer Mono S:size=11, xft:Font Awesome:size=11, xft:Powerline:size=11 8 | urxvt*scrollBar: false 9 | 10 | urxvt*internalBorder: 15 11 | urxvt*lineSpace: 0 12 | 13 | 14 | urxvt*perl-lib: /usr/lib/urxvt/perl/ 15 | urxvt*perl-ext-common: ...,font-size,default,matcher 16 | urxvt*url-launcher: /usr/bin/brave 17 | urxvt*matcher.button: 1 18 | 19 | !urxvt*depth: 32 20 | !*foreground: #ddccbc 21 | !*color0: #573d26 22 | !*color1: #be2e26 23 | !*color2: #6ba18a 24 | !*color3: #e99e2b 25 | !*color4: #5985ac 26 | !*color5: #ac7fa6 27 | !*color6: #74a6ad 28 | !*color7: #bba99a 29 | !*color8: #9a6c4a 30 | !*color9: #e94627 31 | !*color10: #96d9ba 32 | !*color11: #d0d151 33 | !*color12: #b8d3ee 34 | !*color13: #d19dcb 35 | !*color14: #93cfd7 36 | !*color15: #ddccbc 37 | 38 | !!light mode gruvbox 39 | !! hard contrast: *background: #f9f5d7 40 | !*background: #fbf1c7 41 | !! soft contrast: *background: #f2e5bc 42 | !*foreground: #3c3836 43 | !! Black + DarkGrey 44 | !*color0: #fdf4c1 45 | !*color8: #928374 46 | !! DarkRed + Red 47 | !*color1: #cc241d 48 | !*color9: #9d0006 49 | !! DarkGreen + Green 50 | !*color2: #98971a 51 | !*color10: #79740e 52 | !! DarkYellow + Yellow 53 | !*color3: #d79921 54 | !*color11: #b57614 55 | !! DarkBlue + Blue 56 | !*color4: #458588 57 | !*color12: #076678 58 | !! DarkMagenta + Magenta 59 | !*color5: #b16286 60 | !*color13: #8f3f71 61 | !! DarkCyan + Cyan 62 | !*color6: #689d6a 63 | !*color14: #427b58 64 | !! LightGrey + White 65 | !*color7: #7c6f64 66 | !*color15: #3c3836 67 | 68 | 69 | !*background: #08090b 70 | *background: #1a1e21 71 | *foreground: #b4a4d0 72 | ! Black + DarkGrey 73 | *color0: #08090b 74 | *color8: #827797 75 | ! DarkRed + Red 76 | *color1: #f43e5c 77 | *color9: #f43e5c 78 | ! DarkGreen + Green 79 | *color2: #09F7A0 80 | *color10: #09F7A0 81 | ! DarkYellow + Yellow 82 | *color3: #fab28e 83 | *color11: #fab28e 84 | ! DarkBlue + Blue 85 | *color4: #6c6f93 86 | *color12: #6c6f93 87 | ! DarkMagenta + Magenta 88 | *color5: #e9436f 89 | *color13: #e9436f 90 | ! DarkCyan + Cyan 91 | *color6: #21bfc2 92 | *color14: #21bfc2 93 | ! LightGrey + White 94 | *color7: #bbabd8 95 | *color15: #bbabd8 96 | -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | # ~/.bashrc: executed by bash(1) for non-login shells. 2 | # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 3 | # for examples 4 | 5 | # If not running interactively, don't do anything 6 | [ -z "$PS1" ] && return 7 | 8 | # don't put duplicate lines in the history. See bash(1) for more options 9 | # don't overwrite GNU Midnight Commander's setting of `ignorespace'. 10 | HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups 11 | # ... or force ignoredups and ignorespace 12 | HISTCONTROL=ignoreboth 13 | 14 | # append to the history file, don't overwrite it 15 | shopt -s histappend 16 | 17 | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 18 | 19 | # check the window size after each command and, if necessary, 20 | # update the values of LINES and COLUMNS. 21 | shopt -s checkwinsize 22 | 23 | # make less more friendly for non-text input files, see lesspipe(1) 24 | #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 25 | 26 | # set variable identifying the chroot you work in (used in the prompt below) 27 | if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then 28 | debian_chroot=$(cat /etc/debian_chroot) 29 | fi 30 | 31 | # set a fancy prompt (non-color, unless we know we "want" color) 32 | case "$TERM" in 33 | xterm-color) color_prompt=yes;; 34 | esac 35 | 36 | # uncomment for a colored prompt, if the terminal has the capability; turned 37 | # off by default to not distract the user: the focus in a terminal window 38 | # should be on the output of commands, not on the prompt 39 | # force_color_prompt=yes 40 | 41 | if [ -n "$force_color_prompt" ]; then 42 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 43 | # We have color support; assume it's compliant with Ecma-48 44 | # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 45 | # a case would tend to support setf rather than setaf.) 46 | color_prompt=yes 47 | else 48 | color_prompt= 49 | fi 50 | fi 51 | 52 | if [ "$color_prompt" = yes ]; then 53 | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 54 | else 55 | PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 56 | fi 57 | unset color_prompt force_color_prompt 58 | 59 | red='\[\e[0;31m\]' 60 | RED='\[\e[1;31m\]' 61 | blue='\[\e[0;34m\]' 62 | BLUE='\[\e[1;34m\]' 63 | cyan='\[\e[0;36m\]' 64 | CYAN='\[\e[1;36m\]' 65 | green='\[\e[0;32m\]' 66 | GREEN='\[\e[1;32m\]' 67 | yellow='\[\e[0;33m\]' 68 | YELLOW='\[\e[1;33m\]' 69 | PURPLE='\[\e[1;35m\]' 70 | purple='\[\e[0;35m\]' 71 | nc='\[\e[0m\]' 72 | 73 | if [ "$UID" = 0 ]; then 74 | PS1="$red\u$nc@$red\H$nc:$CYAN\w$nc\\n$red#$nc " 75 | else 76 | PS1="\e[43m\e[30m[ \e[30m\u\e[30m@\amxlnx \e[44m\e[30m \w ]$nc $yellow\$\]\]\]\]\]\] " 77 | fi 78 | # enable color support of ls and also add handy aliases 79 | if [ -x /usr/bin/dircolors ]; then 80 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 81 | alias ls='ls --color=auto' 82 | #alias dir='dir --color=auto' 83 | #alias vdir='vdir --color=auto' 84 | 85 | #alias grep='grep --color=auto' 86 | #alias fgrep='fgrep --color=auto' 87 | #alias egrep='egrep --color=auto' 88 | fi 89 | 90 | # some more ls aliases 91 | alias ll='ls -lh' 92 | alias la='ls -A' 93 | alias l='ls -CF' 94 | 95 | # Alias definitions. 96 | # You may want to put all your additions into a separate file like ~/.bash_aliases, instead of adding them here directly. See /usr/share/doc/bash-doc/examples in the bash-doc package. 97 | if [ -f ~/.bash_aliases ]; then 98 | . ~/.bash_aliases 99 | fi 100 | 101 | # Default parameter to send to the "less" command 102 | # -R: show ANSI colors correctly; -i: case insensitive search 103 | LESS="-R -i" 104 | 105 | # enable programmable completion features (you don't need to enable 106 | # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 107 | # sources /etc/bash.bashrc). 108 | if [ -f /etc/bash_completion ] && ! shopt -oq posix; then 109 | . /etc/bash_completion 110 | fi 111 | 112 | # If this is an xterm set the title to user@host:dir 113 | case "$TERM" in 114 | xterm*|rxvt*) 115 | PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" 116 | ;; 117 | *) 118 | ;; 119 | esac 120 | 121 | # Add sbin directories to PATH. This is useful on systems that have sudo 122 | 123 | [ -z "${PATH##*/sbin*}" ] || PATH=$PATH:/sbin:/usr/sbin 124 | 125 | 126 | # Add xdg (bspwm) path 127 | 128 | # Add rustc/cargo to path 129 | 130 | export PATH="$HOME/.cargo/bin:$PATH" 131 | 132 | XDG_CONFIG_HOME="$HOME/.config" 133 | export XDG_CONFIG_HOME 134 | 135 | 136 | #export PS1="\[\e[34m\]\w\[\e[m\]\n\[\e[37m\]>\[\e[m\] " 137 | 138 | # export PS1="\[\e[37;41m\] \u\[\e[m\]\[\e[37;41m\]@\[\e[m\]\[\e[37;41m\]deb \[\e[m\]\[\e[31;43m\]▓▒░ \[\e[m\]\[\e[43m\]\w \[\e[m\]\[\e[33m\]▓▒░\[\e[m\] " 139 | 140 | # export PS1="\[\e[43m\] \w \[\e[m\]\[\e[33;41m\]▒░\[\e[m\]\[\e[41m\] > \[\e[m\]\[\e[31m\]▓▒░\[\e[m\] " 141 | 142 | 143 | # get current branch in git repo 144 | function parse_git_branch() { 145 | BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` 146 | if [ ! "${BRANCH}" == "" ] 147 | then 148 | STAT=`parse_git_dirty` 149 | echo "[${BRANCH}${STAT}]" 150 | else 151 | echo "" 152 | fi 153 | } 154 | 155 | # get current status of git repo 156 | function parse_git_dirty { 157 | status=`git status 2>&1 | tee` 158 | dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"` 159 | untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"` 160 | ahead=`echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?"` 161 | newfile=`echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?"` 162 | renamed=`echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?"` 163 | deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"` 164 | bits='' 165 | if [ "${renamed}" == "0" ]; then 166 | bits=">${bits}" 167 | fi 168 | if [ "${ahead}" == "0" ]; then 169 | bits="*${bits}" 170 | fi 171 | if [ "${newfile}" == "0" ]; then 172 | bits="+${bits}" 173 | fi 174 | if [ "${untracked}" == "0" ]; then 175 | bits="?${bits}" 176 | fi 177 | if [ "${deleted}" == "0" ]; then 178 | bits="x${bits}" 179 | fi 180 | if [ "${dirty}" == "0" ]; then 181 | bits="!${bits}" 182 | fi 183 | if [ ! "${bits}" == "" ]; then 184 | echo " ${bits}" 185 | else 186 | echo "" 187 | fi 188 | } 189 | 190 | # export PS1="\[\e[35m\]\W \[\e[m\]\`parse_git_branch\`\n\[\e[33m\]>\[\e[m\] " 191 | export PS1="\[\e[36m\]\W\`parse_git_branch\` \[\e[m\] \[\e[31m\]λ\[\e[m\] " 192 | 193 | # blinking cursor 194 | 195 | echo -ne "\x1b[1 q" 196 | 197 | # nvim alias 198 | 199 | alias vim='/usr/bin/nvim' 200 | alias vi='/usr/bin/nvim' 201 | 202 | # etc aliases 203 | 204 | alias cd..='cd ..' 205 | 206 | # ranger alias 207 | 208 | alias r='/usr/bin/ranger' 209 | 210 | # auto-completion extension 211 | [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ 212 | . /usr/share/bash-completion/bash_completion 213 | 214 | # zsh-like partial completion - https://github.com/sio/bash-complete-partial-path 215 | 216 | if [ -s "$HOME/.config/bash-complete-partial-path/bash_completion" ] 217 | then 218 | source "$HOME/.config/bash-complete-partial-path/bash_completion" 219 | _bcpp --defaults 220 | fi 221 | alias config='/usr/bin/git --git-dir=/home/me/.cfg/ --work-tree=/home/me' 222 | alias config='/usr/bin/git --git-dir=/home/me/.dots/ --work-tree=/home/me' 223 | 224 | 225 | # editor = nvim 226 | export EDITOR=nvim 227 | 228 | 229 | # todo program 230 | alias todo='/home/me/programs/todo/todo.sh' 231 | 232 | # doom alias 233 | alias doom='/home/me/.emacs.d/bin/doom' 234 | -------------------------------------------------------------------------------- /.config/bspwm/bspwmrc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Startup stuff, that im too lazy to put elsewhere 4 | sxhkd & 5 | picom -b 6 | xset r rate 400 44 7 | xsetroot -cursor_name left_ptr 8 | setxkbmap -option caps:escape 9 | 10 | bspc monitor VGA-1 -d あ い 11 | bspc monitor LVDS-1 -d う え お ' か ' # pad with spaces 12 | bspc config border_width 0 13 | bspc config window_gap 15 14 | bspc config border_radius 15 15 | 16 | 17 | 18 | # Set the border colors. 19 | bspc config normal_border_color "#00000000" 20 | bspc config active_border_color "#00000000" 21 | bspc config focused_border_color "#ffffff" 22 | bspc config presel_feedback_color "#00000000" 23 | 24 | bspc config -m VGA-1 top_padding -5 25 | bspc config bottom_padding -5 26 | bspc config -m LVDS-1 top_padding 20 27 | bspc config left_padding -5 28 | bspc config right_padding -5 29 | 30 | bspc config split_ratio 0.50 31 | bspc config gapless_monocle false 32 | bspc config click_to_focus true 33 | 34 | bspc config pointer_modifier mod1 35 | bspc config pointer_action2 resize_side 36 | bspc config pointer_action1 resize_corner 37 | bspc config pointer_action1 move 38 | 39 | bspc rule -a "feh" state=floating 40 | bspc rule -a "zathura" state=tiled 41 | bspc rule -a "xwinwrap" state=floating 42 | bspc rule -a "net-runelite-launcher-Launcher" state=floating 43 | bspc rule -a "xfce4-panel" layer=above 44 | bspc rule -a "gifview" state=floating 45 | bspc rule -a Emacs state=tiled 46 | bspc rule -a Zoom state=floating 47 | -------------------------------------------------------------------------------- /.config/nvim/init.vim: -------------------------------------------------------------------------------- 1 | " plugins 2 | 3 | call plug#begin('~/.vim/plugged') 4 | 5 | Plug 'preservim/nerdtree' 6 | Plug 'neoclide/coc.nvim', {'branch': 'release'} 7 | Plug 'Xuyuanp/nerdtree-git-plugin' 8 | Plug 'tiagofumo/vim-nerdtree-syntax-highlight' 9 | Plug 'ryanoasis/vim-devicons' 10 | Plug 'airblade/vim-gitgutter' 11 | Plug 'vim-airline/vim-airline' 12 | Plug 'vim-airline/vim-airline-themes' 13 | Plug 'keith/swift.vim' 14 | Plug 'altercation/vim-colors-solarized' 15 | 16 | call plug#end() 17 | 18 | set number relativenumber 19 | set nu rnu 20 | set numberwidth=2 21 | set smarttab 22 | set cindent 23 | set tabstop=2 24 | set shiftwidth=2 25 | set expandtab 26 | set mouse=a 27 | set guicursor+=n:blinkon1 28 | 29 | " my colors 30 | syntax on 31 | "colorscheme gruvbox 32 | "set background=light 33 | hi Normal ctermbg=NONE 34 | " hi Comment ctermfg=0 35 | " hi Constant ctermfg=1 36 | " hi Special ctermfg=5 37 | " hi Identifier ctermfg=6 38 | " hi Statement ctermfg=3 39 | " hi PreProc ctermfg=9 40 | " hi Type ctermfg=11 41 | " hi Normal ctermfg=15 42 | " hi String ctermfg=11 43 | " hi Function ctermfg=13 44 | 45 | 46 | 47 | highlight CursorLineNr cterm=NONE ctermfg=Red ctermbg=NONE 48 | highlight LineNr cterm=NONE ctermfg=DarkGrey ctermbg=NONE 49 | 50 | " airline 51 | set encoding=utf-8 52 | let g:airline_symbols_ascii=1 53 | let g:airline_section_warning = '' 54 | 55 | let g:airline_section_error = '' 56 | let g:airline_theme='raven' 57 | 58 | " nerdtree 59 | nmap :NERDTreeToggle 60 | let NERDTreeWinSize=32 61 | let NERDTreeDirArrows = 1 62 | 63 | " coc (completion) 64 | let g:coc_global_extensions = [ 65 | \ 'coc-gocode', 66 | \ 'coc-json', 67 | \ 'coc-html', 68 | \ 'coc-sh', 69 | \ 'coc-java', 70 | \ 'coc-ccls', 71 | \ 'coc-css', 72 | \ 'coc-python', 73 | \ 'coc-pairs', 74 | \ 'coc-snippets', 75 | \ 'coc-prettier', 76 | \ ] 77 | " from readme 78 | " if hidden is not set, TextEdit might fail. 79 | set hidden " Some servers have issues with backup files, see #649 set nobackup set nowritebackup " Better display for messages set cmdheight=2 " You will have bad experience for diagnostic messages when it's default 4000. 80 | set updatetime=300 81 | 82 | " don't give |ins-completion-menu| messages. 83 | set shortmess+=c 84 | 85 | " always show signcolumns 86 | set signcolumn=no 87 | 88 | " Use tab for trigger completion with characters ahead and navigate. 89 | " Use command ':verbose imap ' to make sure tab is not mapped by other plugin. 90 | inoremap 91 | \ pumvisible() ? "\" : 92 | \ check_back_space() ? "\" : 93 | \ coc#refresh() 94 | inoremap pumvisible() ? "\" : "\" 95 | 96 | " prettier 97 | command! -nargs=0 Prettier :CocCommand prettier.formatFile 98 | 99 | function! s:check_back_space() abort 100 | let col = col('.') - 1 101 | return !col || getline('.')[col - 1] =~# '\s' 102 | endfunction 103 | 104 | " Use to trigger completion. 105 | inoremap coc#refresh() 106 | 107 | " Use to confirm completion, `u` means break undo chain at current position. 108 | " Coc only does snippet and additional edit on confirm. 109 | inoremap pumvisible() ? "\" : "\u\" 110 | " Or use `complete_info` if your vim support it, like: 111 | " inoremap complete_info()["selected"] != "-1" ? "\" : "\u\" 112 | 113 | " Use `[g` and `]g` to navigate diagnostics 114 | nmap [g (coc-diagnostic-prev) 115 | nmap ]g (coc-diagnostic-next) 116 | 117 | " Remap keys for gotos 118 | nmap gd (coc-definition) 119 | nmap gy (coc-type-definition) 120 | nmap gi (coc-implementation) 121 | nmap gr (coc-references) 122 | 123 | " Use K to show documentation in preview window 124 | nnoremap K :call show_documentation() 125 | 126 | function! s:show_documentation() 127 | if (index(['vim','help'], &filetype) >= 0) 128 | execute 'h '.expand('') 129 | else 130 | call CocAction('doHover') 131 | endif 132 | endfunction 133 | 134 | " Highlight symbol under cursor on CursorHold 135 | autocmd CursorHold * silent call CocActionAsync('highlight') 136 | 137 | " Remap for rename current word 138 | nmap (coc-rename) 139 | 140 | " Remap for format selected region 141 | xmap f (coc-format-selected) 142 | nmap f (coc-format-selected) 143 | 144 | augroup mygroup 145 | autocmd! 146 | " Setup formatexpr specified filetype(s). 147 | autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') 148 | " Update signature help on jump placeholder 149 | autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') 150 | augroup end 151 | 152 | " Remap for do codeAction of selected region, ex: `aap` for current paragraph 153 | xmap a (coc-codeaction-selected) 154 | nmap a (coc-codeaction-selected) 155 | 156 | " Remap for do codeAction of current line 157 | nmap ac (coc-codeaction) 158 | " Fix autofix problem of current line 159 | nmap qf (coc-fix-current) 160 | 161 | " Create mappings for function text object, requires document symbols feature of languageserver. 162 | xmap if (coc-funcobj-i) 163 | xmap af (coc-funcobj-a) 164 | omap if (coc-funcobj-i) 165 | omap af (coc-funcobj-a) 166 | 167 | 168 | 169 | " Use `:Format` to format current buffer 170 | command! -nargs=0 Format :call CocAction('format') 171 | 172 | " Use `:Fold` to fold current buffer 173 | command! -nargs=? Fold :call CocAction('fold', ) 174 | 175 | " use `:OR` for organize import of current buffer 176 | command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') 177 | 178 | 179 | -------------------------------------------------------------------------------- /.config/polybar/cmus.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | prepend_zero () { 4 | seq -f "%02g" $1 $1 5 | } 6 | 7 | artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) 8 | 9 | if [[ $artist = *[!\ ]* ]]; then 10 | song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) 11 | echo -n "$artist - $song" 12 | else 13 | echo 14 | fi 15 | -------------------------------------------------------------------------------- /.config/polybar/config.ini: -------------------------------------------------------------------------------- 1 | [global/wm] 2 | margin-bottom = 0 3 | margin-top = 0 4 | 5 | [bar/external] 6 | monitor = VGA-1 7 | monitor-strict = false 8 | override-redirect = true 9 | bottom = false 10 | fixed-center = true 11 | width = 100% 12 | height = 30 13 | offset-x = 0% 14 | offset-y = 0% 15 | background = ${color.alpha} 16 | foreground = ${color.fg} 17 | radius-top = 0.0 18 | radius-bottom = 0.0 19 | line-size = 0 20 | line-color = ${color.shade5} 21 | border-top-size = 0 22 | border-color = ${color.shade5} 23 | padding = 0 24 | module-margin-left = 0 25 | module-margin-right = 0 26 | 27 | font-0 = iA Writer Mono S:size=11;2 28 | font-1 = Font Awesome 5 Free:pixelsize=12;2 29 | font-2 = Font Awesome 5 Free Solid:pixelsize=12;2 30 | 31 | modules-left = date battery alsa wifi 32 | modules-right = workspaces 33 | modules-center = 34 | spacing = 0 35 | dim-value = 1.0 36 | tray-position = none 37 | tray-detached = false 38 | tray-maxsize = 16 39 | tray-transparent = false 40 | tray-background = ${root.background} 41 | tray-offset-x = 0 42 | tray-offset-y = 0 43 | tray-padding = 0 44 | tray-scale = 1.0 45 | enable-ipc = true 46 | 47 | ;----------------------------------------------------------------------------- 48 | 49 | [bar/main] 50 | monitor = LVDS-1 51 | monitor-fallback = 52 | monitor-strict = false 53 | override-redirect = true 54 | bottom = false 55 | fixed-center = true 56 | width = 100% 57 | height = 30 58 | offset-x = 0% 59 | offset-y = 0% 60 | background = ${color.alpha} 61 | foreground = ${color.fg} 62 | radius-top = 0.0 63 | radius-bottom = 0.0 64 | line-color = ${color.shade5} 65 | border-top-size = 0 66 | border-color = ${color.shade5} 67 | padding = 0 68 | module-margin-left = 0 69 | module-margin-right = 0 70 | 71 | font-0 = iA Writer Mono S:size=11;2 72 | font-1 = Font Awesome 5 Free:pixelsize=12;2 73 | font-2 = Font Awesome 5 Free Solid:pixelsize=12;2 74 | 75 | modules-left = date battery alsa wifi 76 | modules-right = workspaces 77 | modules-center = 78 | 79 | spacing = 0 80 | dim-value = 1.0 81 | tray-position = none 82 | tray-detached = false 83 | tray-maxsize = 16 84 | tray-transparent = false 85 | tray-background = ${root.background} 86 | tray-offset-x = 0 87 | tray-offset-y = 0 88 | tray-padding = 0 89 | tray-scale = 1.0 90 | enable-ipc = true 91 | 92 | ;------------------------------------------------------------------------------- 93 | 94 | [settings] 95 | throttle-output = 5 96 | throttle-output-for = 10 97 | throttle-input-for = 30 98 | screenchange-reload = false 99 | compositing-background = source 100 | compositing-foreground = over 101 | compositing-overline = over 102 | compositing-underline = over 103 | compositing-border = over 104 | format-foreground = 105 | format-background = 106 | format-underline = 107 | format-overline = 108 | format-spacing = 109 | format-padding = 110 | format-margin = 111 | format-offset = 112 | pseudo-transparency = false 113 | 114 | ;-------------------------------------------------------------------- 115 | 116 | [color] 117 | 118 | bg = #08090b 119 | fg = #b4a4d0 120 | fg-alt = #3e434f 121 | 122 | alpha = #00000000 123 | shade1 = #b4a4d0 124 | shade2 = #00000000 125 | shade3 = #00000000 126 | shade4 = #00000000 127 | shade5 = #00000000 128 | shade6 = #f43e5c 129 | 130 | ;-------------------------------------------------------------------- 131 | 132 | [module/title] 133 | type = custom/script 134 | 135 | exec = xprop -id $(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW \ 136 | | cut -f 2) WM_CLASS | cut -f 2 -d \" 2>/dev/null 137 | exec-if = sleep 1 ; xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | grep [1-9] 138 | 139 | interval = 2 140 | 141 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 142 | 143 | [module/cmus] 144 | type = custom/script 145 | 146 | exec = ~/.config/polybar/cmus.sh 147 | exec-if = pgrep -x cmus 148 | interval = 3 149 | 150 | click-left = cmus-remote --next 151 | click-right = cmus-remote --prev 152 | click-middle = cmus-remote --pause 153 | scroll-up = cmus-remote --volume +5% 154 | scroll-down = cmus-remote --volume -5% 155 | 156 | format =