mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-04-25 12:19:11 +00:00
Update some stuff
This commit is contained in:
parent
e5222304a1
commit
05c722ed53
@ -77,17 +77,6 @@ scrolling:
|
|||||||
# scroll back is enabled (history > 0).
|
# scroll back is enabled (history > 0).
|
||||||
multiplier: 3
|
multiplier: 3
|
||||||
|
|
||||||
# Scroll to the bottom when new text is written to the terminal.
|
|
||||||
auto_scroll: false
|
|
||||||
|
|
||||||
# Spaces per Tab (changes require restart)
|
|
||||||
#
|
|
||||||
# This setting defines the width of a tab in cells.
|
|
||||||
#
|
|
||||||
# Some applications, like Emacs, rely on knowing about the width of a tab.
|
|
||||||
# To prevent unexpected behavior in these applications, it's also required to
|
|
||||||
# change the `it` value in terminfo when altering this setting.
|
|
||||||
tabspaces: 4
|
|
||||||
|
|
||||||
# Font configuration (changes require restart)
|
# Font configuration (changes require restart)
|
||||||
font:
|
font:
|
||||||
|
@ -28,18 +28,18 @@ help_section="Create a theme with wal and copy the theme JSON in the appropriate
|
|||||||
Usage: $0 IMAGE_PATH [-o/--output OUTPUT_DIR] [--light-mode]
|
Usage: $0 IMAGE_PATH [-o/--output OUTPUT_DIR] [--light-mode]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
* -o, --output OUTPUT_DIR - The location where the JSON file will be copied.
|
* -o, --output <OUTPUT_DIR> - The location of the wal config folder.
|
||||||
The given argument should be a directory that already exists.
|
The default value is '$HOME/.config/wal'.
|
||||||
The default value is given from the 'OUTPUT' variable.
|
|
||||||
* --light-mode - Create a light mode theme.
|
* --light-mode - Create a light mode theme.
|
||||||
Appends the resulting file name with '$LIGHT_MODE_SUFFIX'.
|
Appends the resulting file name with '$LIGHT_MODE_SUFFIX'.
|
||||||
* -b, --background BG_COLOR - Creates the theme with the following background color.
|
* -b, --background <BG_COLOR> - Creates the theme with the following background color.
|
||||||
This is passed to the 'wal' command.
|
This is passed to the 'wal' command.
|
||||||
|
* -e, --execute <STRING> - Append the resulting wal command with the given string.
|
||||||
"
|
"
|
||||||
|
|
||||||
# Setting the variables for the program.
|
# Setting the variables for the program.
|
||||||
# Feel free to change `OUTPUT_DIR`.
|
# Feel free to change `OUTPUT_DIR`.
|
||||||
OUTPUT_DIR="~/.local/share/wal"
|
OUTPUT_DIR="$HOME/.config/wal"
|
||||||
LIGHT_MODE=0
|
LIGHT_MODE=0
|
||||||
IMAGE_PATH="$1"
|
IMAGE_PATH="$1"
|
||||||
|
|
||||||
@ -60,6 +60,10 @@ do
|
|||||||
BG_COLOR="$2"
|
BG_COLOR="$2"
|
||||||
shift
|
shift
|
||||||
shift;;
|
shift;;
|
||||||
|
-e|--execute)
|
||||||
|
EXECUTE="$2"
|
||||||
|
shift
|
||||||
|
shift;;
|
||||||
*)
|
*)
|
||||||
shift;;
|
shift;;
|
||||||
esac
|
esac
|
||||||
@ -67,7 +71,7 @@ done
|
|||||||
|
|
||||||
image_basename=$(extract_path_without_ext "$IMAGE_PATH")
|
image_basename=$(extract_path_without_ext "$IMAGE_PATH")
|
||||||
wal_command_string="wal -i $IMAGE_PATH"
|
wal_command_string="wal -i $IMAGE_PATH"
|
||||||
output_file=$([ $LIGHT_MODE -eq 1 ] && echo "$OUTPUT_DIR/$image_basename$LIGHT_MODE_SUFFIX.json" || echo "$OUTPUT_DIR/$image_basename.json")
|
output_file=$([ $LIGHT_MODE -eq 1 ] && echo "$OUTPUT_DIR/colorschemes/light/$image_basename" || echo "$OUTPUT_DIR/colorschemes/dark/$image_basename.json")
|
||||||
|
|
||||||
if [[ $LIGHT_MODE -eq 1 ]]; then
|
if [[ $LIGHT_MODE -eq 1 ]]; then
|
||||||
wal_command_string+=" -l"
|
wal_command_string+=" -l"
|
||||||
@ -77,4 +81,8 @@ if [[ -n "$BG_COLOR" ]]; then
|
|||||||
wal_command_string+=" -b $BG_COLOR"
|
wal_command_string+=" -b $BG_COLOR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$EXECUTE" ]]; then
|
||||||
|
wal_command_string+="$EXECUTE"
|
||||||
|
fi
|
||||||
|
|
||||||
command -p $wal_command_string && cp "$CACHE_DIR/colors.json" "$output_file"
|
command -p $wal_command_string && cp "$CACHE_DIR/colors.json" "$output_file"
|
||||||
|
@ -1,15 +1,25 @@
|
|||||||
" Plugin list (using vim-plug).
|
"""""""""""
|
||||||
" Activate it with ':PlugInstall' for the first time.
|
" Plugins "
|
||||||
|
"""""""""""
|
||||||
|
|
||||||
|
" This configuration uses vim-plug (https://github.com/junegunn/vim-plug) as
|
||||||
|
" the plugin manager.
|
||||||
|
" Activate it with ':PlugInstall' for the first time (and when adding new plugins).
|
||||||
|
" And run ':PlugUpgrade' for upgrading the plugins.
|
||||||
call plug#begin('~/.config/nvim/plugged')
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
|
|
||||||
|
" A snippets engine.
|
||||||
|
" One of the must-haves for me.
|
||||||
Plug 'sirver/ultisnips'
|
Plug 'sirver/ultisnips'
|
||||||
" Setting my private snippets in a consistent home directory
|
" Setting my private snippets in a consistent home directory and a relative snippets directory for project-specific snippets.
|
||||||
let g:UltiSnipsSnippetDirectories = [$HOME . "/.config/nvim/own-snippets", "own-snippets"]
|
let g:UltiSnipsSnippetDirectories = [$HOME . "/.config/nvim/own-snippets", ".snippets"]
|
||||||
let g:UltiSnipsExpandTrigger="<tab>"
|
let g:UltiSnipsExpandTrigger="<tab>"
|
||||||
let g:UltiSnipsJumpForwardTrigger="<tab>"
|
let g:UltiSnipsJumpForwardTrigger="<tab>"
|
||||||
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
|
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
|
||||||
let g:UltiSnipsEditSplit="context"
|
let g:UltiSnipsEditSplit="context"
|
||||||
|
|
||||||
|
" A completion engine.
|
||||||
|
" I chose this engine since it is linked from UltiSnips.
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
else
|
else
|
||||||
@ -19,13 +29,18 @@ else
|
|||||||
endif
|
endif
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
|
||||||
|
" A built-in file explorer inside of Vim.
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
|
|
||||||
|
" Contains various snippets for UltiSnips.
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
|
|
||||||
|
" Plugin for auto-saving for each change in the buffer (file).
|
||||||
Plug '907th/vim-auto-save'
|
Plug '907th/vim-auto-save'
|
||||||
let g:auto_save = 1
|
let g:auto_save = 1
|
||||||
|
|
||||||
|
" One of the most popular plugins.
|
||||||
|
" Allows to create more substantial status bars.
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
|
|
||||||
@ -33,6 +48,9 @@ if !exists('g:airline_symbols')
|
|||||||
let g:airline_symbols = {}
|
let g:airline_symbols = {}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" A full LaTeX toolchain plugin for Vim.
|
||||||
|
" Also a must-have for me since writing LaTeX can be a PITA.
|
||||||
|
" Most of the snippets and workflow is inspired from Gilles Castel's posts (at https://castel.dev/).
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
let g:tex_flavor='latex'
|
let g:tex_flavor='latex'
|
||||||
let g:vimtex_view_method='zathura'
|
let g:vimtex_view_method='zathura'
|
||||||
@ -48,6 +66,7 @@ let g:vimtex_compiler_latexmk = {
|
|||||||
\ ]
|
\ ]
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
" I use LuaLaTeX for my documents so let me have it as the default, please?
|
||||||
let g:vimtex_compiler_latexmk_engines = {
|
let g:vimtex_compiler_latexmk_engines = {
|
||||||
\ '_' : '-lualatex',
|
\ '_' : '-lualatex',
|
||||||
\ 'pdflatex' : '-pdf',
|
\ 'pdflatex' : '-pdf',
|
||||||
@ -59,11 +78,20 @@ let g:vimtex_compiler_latexmk_engines = {
|
|||||||
\ 'context (xetex)' : '-pdf -pdflatex=''texexec --xtx''',
|
\ 'context (xetex)' : '-pdf -pdflatex=''texexec --xtx''',
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
" Enable visuals for addition/deletion of lines in the gutter (side) similar to Visual Studio Code.
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
|
" Plugin for distraction-free writing.
|
||||||
|
Plug 'junegunn/goyo.vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""
|
||||||
|
" Editor configurations "
|
||||||
|
"""""""""""""""""""""""""
|
||||||
|
|
||||||
" Quick escape to default mode.
|
" Quick escape to default mode.
|
||||||
inoremap jk <Esc>
|
inoremap jk <Esc>
|
||||||
|
|
||||||
@ -87,6 +115,7 @@ let template_list = [
|
|||||||
\ ["", ".synctex"],
|
\ ["", ".synctex"],
|
||||||
\]
|
\]
|
||||||
|
|
||||||
|
" Additional LaTeX files cleanup.
|
||||||
function VimtexAdditionalCleanup(template_list)
|
function VimtexAdditionalCleanup(template_list)
|
||||||
call vimtex#compiler#clean(1)
|
call vimtex#compiler#clean(1)
|
||||||
let file_name = expand("%:t:r")
|
let file_name = expand("%:t:r")
|
||||||
@ -118,7 +147,11 @@ autocmd vimenter * NERDTree
|
|||||||
" Set list and other listing characters (:h listchars).
|
" Set list and other listing characters (:h listchars).
|
||||||
set list listchars=tab:→\ ,trail:·
|
set list listchars=tab:→\ ,trail:·
|
||||||
|
|
||||||
|
" Instant Goyo toggle
|
||||||
|
map <leader>f :Goyo \| set linebreak<Enter>
|
||||||
|
|
||||||
" Show leading spaces.
|
" Show leading spaces.
|
||||||
|
" I don't know what is happening here but I'll know it... someday.
|
||||||
" SOURCE: https://www.reddit.com/r/vim/comments/5fxsfy/show_leading_spaces/
|
" SOURCE: https://www.reddit.com/r/vim/comments/5fxsfy/show_leading_spaces/
|
||||||
hi Conceal guibg=NONE ctermbg=NONE ctermfg=DarkGrey
|
hi Conceal guibg=NONE ctermbg=NONE ctermfg=DarkGrey
|
||||||
autocmd BufWinEnter * setl conceallevel=1
|
autocmd BufWinEnter * setl conceallevel=1
|
||||||
@ -128,7 +161,7 @@ autocmd BufReadPre * syn match LeadingSpace /\(^ *\)\@<= / containedin=ALL conce
|
|||||||
|
|
||||||
" Enabling spell checker (for your local language, anyway).
|
" Enabling spell checker (for your local language, anyway).
|
||||||
setlocal spell
|
setlocal spell
|
||||||
set spelllang=en_gb
|
set spelllang=en_gb,en_us
|
||||||
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
||||||
|
|
||||||
" Changing style of words.
|
" Changing style of words.
|
||||||
|
@ -8,10 +8,11 @@ def relative_date(days):
|
|||||||
return calculated_date
|
return calculated_date
|
||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
snippet "reldate (\d+)" "Prints out the relative date in ISO format." ri
|
snippet "reldate (\d+)( ".+")?" "Prints out the relative date in ISO format." ri
|
||||||
`!p
|
`!p
|
||||||
reldate = relative_date(match.group(1))
|
reldate = relative_date(match.group(1))
|
||||||
snip.rv = reldate.strftime("%F")
|
date_format = match.group(2).strip(" \"") if match.group(2) is not None else "%F"
|
||||||
|
snip.rv = reldate.strftime(date_format)
|
||||||
`
|
`
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -68,3 +69,19 @@ snippet #! "Quick snippet for a shebang." bi
|
|||||||
#!${1:/usr/bin/env} ${2:sh}
|
#!${1:/usr/bin/env} ${2:sh}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
# This is only useful for decorative comment boxes and all of the jazz.
|
||||||
|
snippet "boxen '(.*)'" "Create a box of stuff" ir
|
||||||
|
`!p snip.rv = (match.group(1) * (len(t[1]) + 4)).strip()[0:(len(t[1]) + 4)]`
|
||||||
|
`!p snip.rv = match.group(1)[0]` $1 `!p snip.rv = match.group(1)[0]`
|
||||||
|
`!p snip.rv = (match.group(1) * (len(t[1]) + 4)).strip()[0:(len(t[1]) + 4)]`
|
||||||
|
$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
# Also stolen from Gilles Castel's post at https://castel.dev/post/lecture-notes-1/.
|
||||||
|
snippet box "More box (that looks more like a box)."
|
||||||
|
`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'`
|
||||||
|
│ $1 │
|
||||||
|
`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'`
|
||||||
|
$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ def smart_space(next_str, auto_str=" ", loose=False):
|
|||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
# Text formatting
|
# Text formatting
|
||||||
snippet "h(\d)" "Quick header snippet" bir
|
snippet "h(([1-6]))" "Quick header snippet" bir
|
||||||
`!p
|
`!p
|
||||||
header_level = int(match.group(1))
|
header_level = int(match.group(1))
|
||||||
legit_header_level = True if header_level >= 1 and header_level <= 6 else False
|
legit_header_level = True if header_level >= 1 and header_level <= 6 else False
|
||||||
|
@ -17,6 +17,12 @@ do
|
|||||||
done
|
done
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet if "If conditional" iw
|
||||||
|
if ${1:<expression>}; then
|
||||||
|
${2:<expression>}
|
||||||
|
fi
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet while "While loop" iw
|
snippet while "While loop" iw
|
||||||
while ${1:<expression>};
|
while ${1:<expression>};
|
||||||
do
|
do
|
||||||
@ -24,3 +30,17 @@ do
|
|||||||
done
|
done
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet getopts "An argument parser with getopts" iw
|
||||||
|
while getopts ${1:<OPTSTRING>} ${2:arg}
|
||||||
|
do
|
||||||
|
case ${2:"h"} in
|
||||||
|
h)
|
||||||
|
echo $_help
|
||||||
|
exit 0
|
||||||
|
*)
|
||||||
|
echo $_help
|
||||||
|
exit 0
|
||||||
|
esca
|
||||||
|
done
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
@ -105,31 +105,23 @@ shadow-ignore-shaped = false;
|
|||||||
#
|
#
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
inactive-opacity = 0.75;
|
inactive-opacity = 0.5;
|
||||||
active-opacity = 1;
|
active-opacity = 1;
|
||||||
frame-opacity = 1;
|
frame-opacity = 1;
|
||||||
inactive-opacity-override = true;
|
inactive-opacity-override = true;
|
||||||
opacity-rule = [
|
|
||||||
"90:class_g = 'alacritty' && focused",
|
|
||||||
"60:class_g = 'alacritty' && !focused",
|
|
||||||
"100:class_g = 'slop'"
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
# Dim inactive windows. (0.0 - 1.0)
|
# Dim inactive windows. (0.0 - 1.0)
|
||||||
inactive-dim = 0.5;
|
inactive-dim = 0.2;
|
||||||
# Do not let dimness adjust based on window opacity.
|
# Do not let dimness adjust based on window opacity.
|
||||||
inactive-dim-fixed = true;
|
# inactive-dim-fixed = true;
|
||||||
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
||||||
blur-background = false;
|
blur-background = false;
|
||||||
|
|
||||||
# Blur background of opaque windows with transparent frames as well.
|
# Blur background of opaque windows with transparent frames as well.
|
||||||
# blur-background-frame = true;
|
blur-background-frame = false;
|
||||||
# Do not let blur radius adjust based on window opacity.
|
# Do not let blur radius adjust based on window opacity.
|
||||||
blur-background-fixed = false;
|
blur-background-fixed = false;
|
||||||
blur-background-exclude = [
|
blur-background-exclude = [
|
||||||
"window_type = 'dock'",
|
"window_type = 'dock'",
|
||||||
"window_type = 'desktop'"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
375
polybar/config
375
polybar/config
@ -1,290 +1,197 @@
|
|||||||
; color format is in ARGB
|
; Main color format is in ARGB.
|
||||||
|
; However, formats in RGB is fine.
|
||||||
|
; This is where all of the colors should be placed for those who are lazy to scroll down (like me).
|
||||||
[colors]
|
[colors]
|
||||||
background = #000000
|
background = #000
|
||||||
background-alt = #99000000
|
foreground = #eee
|
||||||
foreground = ${xrdb:color7:#eee}
|
|
||||||
foreground-alt = #aaa
|
module_prefix_bg = ${xrdb:color1:#ccc}
|
||||||
primary = #d59783
|
module_prefix_fg = ${xrdb:color15:#000}
|
||||||
secondary = #E8C4FF
|
module_bg = ${xrdb:color15:#fff}
|
||||||
tertiary = #A7DAE8
|
module_fg = ${xrdb:color0:#000}
|
||||||
alert = #bd2c40
|
|
||||||
|
vol_module_bg = #ff9f1c
|
||||||
|
network_module_bg = #2ec4b6
|
||||||
|
date_module_bg = #99d122
|
||||||
|
memory_module_bg = #1a1b41
|
||||||
|
|
||||||
|
|
||||||
|
; The common style between bars.
|
||||||
|
|
||||||
; The common style between bars
|
|
||||||
[bar-common-style]
|
[bar-common-style]
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 30
|
height = 32
|
||||||
wm-restack = bspwm
|
wm-restack = bspwm
|
||||||
fixed-center = false
|
fixed-center = false
|
||||||
|
|
||||||
line-size = 3
|
line-size = 3
|
||||||
line-color = #f00
|
line-color = #f00
|
||||||
|
|
||||||
padding = 1
|
padding = 1
|
||||||
|
|
||||||
module-margin = 1
|
module-margin = 1
|
||||||
|
module-padding = 1
|
||||||
|
|
||||||
font-0 = "Iosevka"
|
font-0 = "Iosevka"
|
||||||
font-1 = "Fira Code"
|
font-1 = "Fira Code"
|
||||||
font-2 = siji:pixelsize=10;1
|
font-2 = "Noto Color Emoji:style=Regular:scale=10;1"
|
||||||
|
|
||||||
tray-position = right
|
|
||||||
tray-padding = 2
|
|
||||||
cursor-click = pointer
|
|
||||||
|
|
||||||
|
; This creates the illusion as if the modules are in the center.
|
||||||
|
__border-size = 5
|
||||||
|
border-top-size = ${self.__border-size}
|
||||||
|
border-top-color = ${colors.background}
|
||||||
|
border-bottom-size = ${self.__border-size}
|
||||||
|
border-bottom-color = ${colors.background}
|
||||||
|
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 1
|
||||||
|
cursor-click = pointer
|
||||||
|
|
||||||
|
|
||||||
|
; Common style between modules.
|
||||||
[module-common-style]
|
[module-common-style]
|
||||||
format-padding = 1
|
label-padding = 1
|
||||||
format-background = ${colors.background-alt}
|
format-foreground = ${colors.background}
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-background = ${colors.foreground}
|
||||||
|
format-prefix-padding = 1
|
||||||
|
format-prefix-foreground = ${colors.module_prefix_fg}
|
||||||
|
format-prefix-background = ${colors.module_prefix_bg}
|
||||||
|
|
||||||
|
|
||||||
|
; The main bar.
|
||||||
[bar/fds-bar]
|
[bar/fds-bar]
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
inherit = bar-common-style
|
inherit = bar-common-style
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
modules-left = bspwm
|
|
||||||
modules-right = pulseaudio memory cpu temperature eth date powermenu
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[bar/fds-taskbar]
|
|
||||||
background = ${colors.background}
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
inherit = bar-common-style
|
|
||||||
bottom = true
|
|
||||||
modules-left = xwindow
|
|
||||||
modules-right = filesystem
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/conv]
|
|
||||||
type = custom/text
|
|
||||||
content = "terminal"
|
|
||||||
click-left = "tdrop -ma -s dropdown alacritty"
|
|
||||||
|
|
||||||
|
modules-left = bspwm
|
||||||
|
modules-center = xwindow
|
||||||
|
modules-right = pulseaudio memory eth date menu-apps counter
|
||||||
|
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
type = internal/xwindow
|
y-offset = 10
|
||||||
label = " %title:0:100:...% "
|
type = internal/xwindow
|
||||||
label-layout = %layout%
|
format = <label>
|
||||||
format = <label>
|
label = %title:0:50:%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/filesystem]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 25
|
|
||||||
|
|
||||||
mount-0 = /
|
|
||||||
mount-1 = /home
|
|
||||||
|
|
||||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %free%
|
|
||||||
label-unmounted = %mountpoint% not mounted
|
|
||||||
label-unmounted-foreground = ${colors.foreground-alt}
|
|
||||||
label-background = ${colors.background-alt}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/bspwm]
|
[module/bspwm]
|
||||||
type = internal/bspwm
|
type = internal/bspwm
|
||||||
|
wrapping-scroll = false
|
||||||
|
pin-workspaces = true
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-background = ${colors.module_prefix_bg}
|
||||||
|
label-focused-padding = 1
|
||||||
|
|
||||||
label-focused = %index%
|
label-occupied = %index%
|
||||||
label-focused-background = ${colors.background-alt}
|
label-occupied-padding = 1
|
||||||
label-focused-padding = 1
|
|
||||||
|
|
||||||
label-occupied = %index%
|
|
||||||
label-occupied-padding = 1
|
|
||||||
|
|
||||||
label-urgent = %index%!
|
|
||||||
label-urgent-background = ${colors.alert}
|
|
||||||
label-urgent-padding = 1
|
|
||||||
|
|
||||||
label-empty = %index%
|
|
||||||
label-empty-foreground = ${colors.foreground-alt}
|
|
||||||
label-empty-padding = 1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/mpd]
|
|
||||||
type = internal/mpd
|
|
||||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
|
||||||
|
|
||||||
icon-prev =
|
|
||||||
icon-stop =
|
|
||||||
icon-play =
|
|
||||||
icon-pause =
|
|
||||||
icon-next =
|
|
||||||
|
|
||||||
label-song-maxlen = 25
|
|
||||||
label-song-ellipsis = true
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/cpu]
|
|
||||||
inherit = module-common-style
|
|
||||||
type = internal/cpu
|
|
||||||
interval = 2
|
|
||||||
format-prefix = "CPU "
|
|
||||||
label = %percentage-sum%%
|
|
||||||
|
|
||||||
|
label-urgent = %index%!
|
||||||
|
label-urgent-background = ${colors.foreground}
|
||||||
|
label-urgent-padding = 1
|
||||||
|
|
||||||
|
label-empty = %index%
|
||||||
|
label-empty-foreground = ${colors.module_prefix_fg}
|
||||||
|
label-empty-padding = 1
|
||||||
|
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
inherit = module-common-style
|
inherit = module-common-style
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
interval = 2
|
interval = 2
|
||||||
format-prefix = "MEM "
|
format-prefix = "MEM"
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-background = ${colors.memory_module_bg}
|
||||||
label = %percentage_used%%
|
format-prefix-foreground = ${colors.foreground}
|
||||||
|
label = %percentage_used%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
inherit = module-common-style
|
inherit = module-common-style
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp0s18f2u4
|
interface = wlp0s18f2u4
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-connected-underline = #9f78e1
|
|
||||||
format-prefix = "NET "
|
|
||||||
label-connected = %essid%
|
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
label-disconnected = %ifname% disconnected
|
|
||||||
|
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-connected-underline = #9f78e1
|
||||||
|
format-prefix = "NET "
|
||||||
|
label-connected = %essid%
|
||||||
|
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
label-disconnected = %ifname% disconnected
|
||||||
|
|
||||||
|
|
||||||
[module/eth]
|
[module/eth]
|
||||||
inherit = module-common-style
|
inherit = module-common-style
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = enp4s0
|
interface = enp4s0
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected-prefix = "ETH "
|
|
||||||
format-connected-background = ${colors.background-alt}
|
|
||||||
format-connected-padding = 1
|
|
||||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
label-connected = %ifname%
|
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
format-disconnected-background = ${colors.background-alt}
|
|
||||||
format-disconnected-padding = 1
|
|
||||||
label-disconnected = N/A
|
|
||||||
label-disconnected-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
|
format-connected-prefix = "ETH"
|
||||||
|
format-connected-prefix-padding = 1
|
||||||
|
format-connected-prefix-foreground = ${colors.foreground}
|
||||||
|
format-connected-prefix-background = ${colors.network_module_bg}
|
||||||
|
format-connected-background = ${colors.foreground}
|
||||||
|
format-connected-foreground = ${colors.background}
|
||||||
|
label-connected = %ifname%
|
||||||
|
label-connected-padding = 1
|
||||||
|
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
format-disconnected-background = ${colors.background}
|
||||||
|
label-disconnected-padding = 1
|
||||||
|
label-disconnected = N/A
|
||||||
|
label-disconnected-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
inherit = module-common-style
|
inherit = module-common-style
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 5
|
interval = 5
|
||||||
|
|
||||||
date = "%F"
|
|
||||||
time = %H:%M:%S
|
|
||||||
|
|
||||||
format-prefix = "DATE "
|
|
||||||
|
|
||||||
label = %date% %time%
|
|
||||||
|
|
||||||
|
; We've formatted the time string to alter between the time and the date instead.
|
||||||
|
; Although, I feel it's a hacky workaround, it still is functional as a date module.
|
||||||
|
date = "%F"
|
||||||
|
date-alt = "%B %d, %Y"
|
||||||
|
time = %T
|
||||||
|
time-alt = %F
|
||||||
|
|
||||||
|
format-prefix = "DATE"
|
||||||
|
format-prefix-background = ${colors.date_module_bg}
|
||||||
|
format-prefix-foreground = ${colors.background}
|
||||||
|
label = %time%
|
||||||
|
|
||||||
|
|
||||||
[module/pulseaudio]
|
[module/pulseaudio]
|
||||||
inherit = module-common-style
|
inherit = module-common-style
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
|
|
||||||
format-volume-prefix = "VOL "
|
format-volume-prefix = "VOL"
|
||||||
format-volume-foreground = ${colors.foreground-alt}
|
format-volume-prefix-padding = 1
|
||||||
format-volume-background = ${colors.background-alt}
|
format-volume-prefix-foreground = ${colors.foreground}
|
||||||
format-volume-padding = 1
|
format-volume-prefix-background = ${colors.vol_module_bg}
|
||||||
format-volume = <label-volume>
|
format-volume-foreground = ${colors.background}
|
||||||
label-volume = %percentage%%
|
format-volume-background = ${colors.foreground}
|
||||||
label-volume-foreground = ${colors.foreground}
|
format-volume = <label-volume>
|
||||||
|
label-volume = %percentage%%
|
||||||
|
label-volume-padding = 1
|
||||||
|
|
||||||
format-muted-prefix = "VOL "
|
format-muted-prefix = "VOL"
|
||||||
format-muted-background = ${colors.background-alt}
|
format-muted-prefix-padding = 1
|
||||||
format-muted-padding = 1
|
format-muted-prefix-foreground = ${colors.foreground}
|
||||||
format-muted-foreground = ${colors.foreground-alt}
|
format-muted-prefix-background = ${colors.vol_module_bg}
|
||||||
label-muted = 🔇 muted
|
format-muted-foreground = ${colors.background}
|
||||||
|
format-muted-background = ${colors.foreground}
|
||||||
|
label-muted = muted
|
||||||
|
label-muted-padding = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/temperature]
|
|
||||||
inherit = module-common-style
|
|
||||||
type = internal/temperature
|
|
||||||
thermal-zone = 0
|
|
||||||
hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_input
|
|
||||||
warn-temperature = 60
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix = "TEMP "
|
|
||||||
format-warn = <label-warn>
|
|
||||||
|
|
||||||
label = %temperature-c%
|
|
||||||
label-warn = %temperature-c%
|
|
||||||
label-warn-foreground = ${colors.secondary}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/powermenu]
|
|
||||||
type = custom/menu
|
|
||||||
|
|
||||||
expand-right = true
|
|
||||||
|
|
||||||
format-spacing = 1
|
|
||||||
|
|
||||||
label-open =
|
|
||||||
label-open-foreground = ${colors.secondary}
|
|
||||||
label-close = cancel
|
|
||||||
label-close-foreground = ${colors.secondary}
|
|
||||||
label-separator = |
|
|
||||||
label-separator-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
menu-0-0 = reboot
|
|
||||||
menu-0-0-exec = menu-open-1
|
|
||||||
menu-0-1 = power off
|
|
||||||
menu-0-1-exec = menu-open-2
|
|
||||||
|
|
||||||
menu-1-0 = cancel
|
|
||||||
menu-1-0-exec = menu-open-0
|
|
||||||
menu-1-1 = reboot
|
|
||||||
menu-1-1-exec = sudo reboot
|
|
||||||
|
|
||||||
menu-2-0 = power off
|
|
||||||
menu-2-0-exec = sudo poweroff
|
|
||||||
menu-2-1 = cancel
|
|
||||||
menu-2-1-exec = menu-open-0
|
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
;compositing-background = xor
|
|
||||||
;compositing-background = screen
|
|
||||||
;compositing-foreground = source
|
|
||||||
;compositing-border = over
|
|
||||||
;pseudo-transparency = false
|
|
||||||
|
|
||||||
[global/wm]
|
[global/wm]
|
||||||
padding-left = 2
|
margin = 1
|
||||||
|
padding = 1
|
||||||
|
|
||||||
; vim:ft=dosini
|
; vim:ft=dosini
|
||||||
|
@ -7,16 +7,12 @@ super + Return
|
|||||||
super + shift + Return
|
super + shift + Return
|
||||||
tdrop -ma -w -4 -y "$PANEL_HEIGHT" -s dropterm $TERMINAL
|
tdrop -ma -w -4 -y "$PANEL_HEIGHT" -s dropterm $TERMINAL
|
||||||
|
|
||||||
super + q
|
|
||||||
$TERMINAL -e ranger
|
|
||||||
|
|
||||||
super + t
|
super + t
|
||||||
$HOME/bin/toggle-bin screenkey
|
$HOME/bin/toggle-bin screenkey
|
||||||
|
|
||||||
# Kill the focused window.
|
# Kill the focused window.
|
||||||
super + shift + q
|
super + {_, shift +} + q
|
||||||
bspc node -c
|
bspc node -{c,k}
|
||||||
# kill -9 `xdotool getwindowfocus getwindowpid`
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -36,9 +32,9 @@ super + F11
|
|||||||
super + F12
|
super + F12
|
||||||
$HOME/bin/prompt "Exit from X session?" "killall Xorg"
|
$HOME/bin/prompt "Exit from X session?" "killall Xorg"
|
||||||
|
|
||||||
# Screenshot shortcuts.
|
# Screenshot and screencast launcher.
|
||||||
{_, control +} {_,shift +} Print
|
Print
|
||||||
$HOME/bin/screenshot {_,--select} {_,--delay 3}
|
$HOME/bin/rofi-screen
|
||||||
|
|
||||||
# Screenshot with OCR capability
|
# Screenshot with OCR capability
|
||||||
super + shift + w
|
super + shift + w
|
||||||
|
28
wal/colorschemes/dark/dormant.json
Normal file
28
wal/colorschemes/dark/dormant.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"wallpaper": "/home/foo-dogsquared/wallpapers/dormant.jpg",
|
||||||
|
"alpha": "100",
|
||||||
|
|
||||||
|
"special": {
|
||||||
|
"background": "#0e0c12",
|
||||||
|
"foreground": "#cea2cc",
|
||||||
|
"cursor": "#cea2cc"
|
||||||
|
},
|
||||||
|
"colors": {
|
||||||
|
"color0": "#0e0c12",
|
||||||
|
"color1": "#562F64",
|
||||||
|
"color2": "#354754",
|
||||||
|
"color3": "#5F5851",
|
||||||
|
"color4": "#976C58",
|
||||||
|
"color5": "#C9A168",
|
||||||
|
"color6": "#6F3E87",
|
||||||
|
"color7": "#cea2cc",
|
||||||
|
"color8": "#90718e",
|
||||||
|
"color9": "#562F64",
|
||||||
|
"color10": "#354754",
|
||||||
|
"color11": "#5F5851",
|
||||||
|
"color12": "#976C58",
|
||||||
|
"color13": "#C9A168",
|
||||||
|
"color14": "#6F3E87",
|
||||||
|
"color15": "#cea2cc"
|
||||||
|
}
|
||||||
|
}
|
@ -17,7 +17,7 @@ export PATH="$BIN_DIRECTORY:/usr/local/bin:$HOME/.cargo/bin:$HOME/.gem/ruby/2.7.
|
|||||||
|
|
||||||
# Common environmental variables.
|
# Common environmental variables.
|
||||||
# Or at least that'll be used by my setup.
|
# Or at least that'll be used by my setup.
|
||||||
export EDITOR="vim"
|
export EDITOR="nvim"
|
||||||
export TERMINAL="alacritty"
|
export TERMINAL="alacritty"
|
||||||
export BROWSER="firefox"
|
export BROWSER="firefox"
|
||||||
export READ="zathura"
|
export READ="zathura"
|
||||||
|
Loading…
Reference in New Issue
Block a user