From 6e11fe0b7ed927c465dbc355c33c477c7d0557b6 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 6 Jan 2023 13:57:26 -0500 Subject: [PATCH] tabs->spaces --- bash/bash_logout.host | 8 +++---- vim/generic | 22 +++++++++--------- vim/vimrc | 20 ++++++++-------- waybar/config.template | 52 +++++++++++++++++++++--------------------- wofi/style.css | 48 +++++++++++++++++++------------------- 5 files changed, 75 insertions(+), 75 deletions(-) diff --git a/bash/bash_logout.host b/bash/bash_logout.host index 2e8ec787b..a3aea801e 100644 --- a/bash/bash_logout.host +++ b/bash/bash_logout.host @@ -1,8 +1,8 @@ if [ ! $SSH_TTY ]; then - # Remove socket files - rm $SSH_AUTH_SOCK - rm $HOME/.spool/ssh-agent.env - rm $SWAYSOCK + # Remove socket files + rm $SSH_AUTH_SOCK + rm $HOME/.spool/ssh-agent.env + rm $SWAYSOCK fi # when leaving the console clear the screen to increase privacy diff --git a/vim/generic b/vim/generic index 187ae2aa2..b5b0d6156 100644 --- a/vim/generic +++ b/vim/generic @@ -1,12 +1,12 @@ -set nocompatible " iMproved only, no vi compatibility -set sessionoptions-=options " stop sessions from messing with 'runtimepath' +set nocompatible " iMproved only, no vi compatibility +set sessionoptions-=options " stop sessions from messing with 'runtimepath' syntax on filetype plugin indent on set backspace=indent,eol,start set incsearch -set scrolloff=1000 " Center cursor, unless near edge +set scrolloff=1000 " Center cursor, unless near edge " Colorize and theme set t_Co=16 @@ -37,9 +37,9 @@ set noswapfile set title syn on se title -set ts=8 -set softtabstop=8 -set shiftwidth=8 +set ts=4 +set softtabstop=4 +set shiftwidth=4 set expandtab " Show tabs and trailing spaces set list listchars=tab:»\ ,trail:· @@ -78,7 +78,7 @@ if has("autocmd") au BufNewFile,BufRead COMMIT_EDITMSG set spell nonumber nolist wrap linebreak " Set filetype tab settings - autocmd FileType python,doctest set ai ts=8 sw=8 sts=8 et + autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | @@ -86,9 +86,9 @@ if has("autocmd") \ endif endif -" 80 characters line -set colorcolumn=81 -"execute "set colorcolumn=" . join(range(81,335), ',') +" 100 characters line +set colorcolumn=101 +"execute "set colorcolumn=" . join(range(101,335), ',') highlight ColorColumn ctermbg=Black ctermfg=DarkRed " Highlight trailing spaces @@ -106,7 +106,7 @@ let g:tablabel = \ "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}" " Python -au FileType python set ts=8 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class +au FileType python set ts=4 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class source ${HOME}/.dotfiles/vim/abbreviations/personalAbbreviations.vim source ${HOME}/.dotfiles/vim/abbreviations/codingAbbreviations.vim diff --git a/vim/vimrc b/vim/vimrc index f9150bb51..58bcfa3b0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,5 +1,5 @@ -set nocompatible " iMproved only, no vi compatibility -set sessionoptions-=options " stop sessions from messing with 'runtimepath' +set nocompatible " iMproved only, no vi compatibility +set sessionoptions-=options " stop sessions from messing with 'runtimepath' " Load plugins with Pathogen execute pathogen#infect('bundle/{}', '~/.config/vim/bundle/{}') @@ -11,7 +11,7 @@ filetype plugin indent on set backspace=indent,eol,start set incsearch -set scrolloff=1000 " Center cursor, unless near edge +set scrolloff=1000 " Center cursor, unless near edge " other usability enhancements set backupdir=~/.config/vim/backup/,. @@ -49,9 +49,9 @@ set noswapfile set title syn on se title -set ts=8 -set softtabstop=8 -set shiftwidth=8 +set ts=4 +set softtabstop=4 +set shiftwidth=4 set expandtab " Show tabs and trailing spaces set list listchars=tab:»\ ,trail:· @@ -90,7 +90,7 @@ if has("autocmd") au BufNewFile,BufRead COMMIT_EDITMSG set spell nonumber nolist wrap linebreak " Set filetype tab settings - autocmd FileType python,doctest set ai ts=8 sw=8 sts=8 et + autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | @@ -98,9 +98,9 @@ if has("autocmd") \ endif endif -" 80 characters line +" 100 characters line set colorcolumn=101 -"execute "set colorcolumn=" . join(range(81,335), ',') +"execute "set colorcolumn=" . join(range(101,335), ',') highlight ColorColumn ctermbg=Black ctermfg=DarkRed " Highlight trailing spaces @@ -118,7 +118,7 @@ let g:tablabel = \ "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}" " Python -au FileType python set ts=8 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class +au FileType python set ts=4 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class source ${HOME}/.dotfiles/vim/abbreviations/personalAbbreviations.vim source ${HOME}/.dotfiles/vim/abbreviations/codingAbbreviations.vim diff --git a/waybar/config.template b/waybar/config.template index f8b8f1d6c..ed00b389b 100644 --- a/waybar/config.template +++ b/waybar/config.template @@ -44,7 +44,7 @@ // "disable-scroll": true, // "all-outputs": true, "format": "{icon}", - "numeric-first": true, + "numeric-first": true, "format-icons": { "0": "0 \uf073", "1": "1 \uf27a", @@ -74,14 +74,14 @@ }, //"mpd": { //"server": "10.10.0.66", - //"port": 6600, - //"interval": 10, - //"timeout": 30, - //"unknown-tag": "⚠", - //"format": "▶️ {title}", - //"format-paused": "⏸️ {title}", - //"format-stopped": "⏹️ mpd", - //"format-disconnected": "⚠ mpd", + //"port": 6600, + //"interval": 10, + //"timeout": 30, + //"unknown-tag": "⚠", + //"format": "▶️ {title}", + //"format-paused": "⏸️ {title}", + //"format-stopped": "⏹️ mpd", + //"format-disconnected": "⚠ mpd", //"on-click": "${HOME}/scripts/waybar/waybar-mpd.sh" //}, "custom/weather": { @@ -91,17 +91,17 @@ }, "network": { // "interface": "wlp58s0", // (Optional) To force the use of this interface - "interval": 10, - "tooltip-format": "{essid} {ipaddr}", + "interval": 10, + "tooltip-format": "{essid} {ipaddr}", "format-ethernet": "", "format-wifi": "", "format-disconnected": "⛖", "on-click": "${HOME}/scripts/wofi/wofi-wifi-menu.sh" }, "network#wireguard": { - "interval": 10, + "interval": 10, "interface": "wg0", // (Optional) To force the use of this interface - "tooltip-format": "{ifname} {ipaddr}", + "tooltip-format": "{ifname} {ipaddr}", "tooltip": "{ipaddr}", "format": "⚿", "format-disconnected": "⚿", @@ -129,13 +129,13 @@ // "device": "acpi_video1", "format": "{icon}\u200a{percent}%", "format-icons": [ "•", "☼", "o", "", ""], - "on-click": "${HOME}/scripts/thinkpad/blc.pl --notify %", - "on-scroll-up": "${HOME}/scripts/thinkpad/blc.pl --notify ++", - "on-scroll-down": "${HOME}/scripts/thinkpad/blc.pl --notify --" + "on-click": "${HOME}/scripts/thinkpad/blc.pl --notify %", + "on-scroll-up": "${HOME}/scripts/thinkpad/blc.pl --notify ++", + "on-scroll-down": "${HOME}/scripts/thinkpad/blc.pl --notify --" }, "custom/battery": { "format": "{}", - "return-type": "json", + "return-type": "json", "exec": "${HOME}/scripts/thinkpad/pow.pl --bar", "interval": 5, "on-click": "notify-send Power \"`${HOME}/scripts/thinkpad/pow.pl -p`\"" @@ -177,15 +177,15 @@ }, "custom/pkg": { "interval": 60, - "tooltip-format": "{:%d %B}\n{calendar}", + "tooltip-format": "{:%d %B}\n{calendar}", "on-click": "${HOME}/scripts/waybar/waybar-pkg.sh upgrade", - "return-type": "json", + "return-type": "json", "exec": "${HOME}/scripts/waybar/waybar-pkg.sh bar" }, "custom/bar": { "interval": 86400, "exec": "echo '\u200a\nLock bar\n'", - "on-click": "${HOME}/scripts/waybar/toggle.sh" + "on-click": "${HOME}/scripts/waybar/toggle.sh" }, "idle_inhibitor": { "format": "{icon}", @@ -193,24 +193,24 @@ "activated": "", "deactivated": "" }, - "on-click": "echo {status} > .config/idle_inhibitor" + "on-click": "echo {status} > .config/idle_inhibitor" }, "custom/hibernate_inhibitor": { "interval": 5, - "return-type": "json", + "return-type": "json", "exec": "${HOME}/scripts/waybar/waybar-hibernate.sh bar", - "on-click": "${HOME}/scripts/waybar/waybar-hibernate.sh toggle" + "on-click": "${HOME}/scripts/waybar/waybar-hibernate.sh toggle" }, "custom/gammastep": { "interval": 1, - "return-type": "json", + "return-type": "json", "exec": "${HOME}/scripts/waybar/waybar-gammastep.sh", - "on-click": "${HOME}/scripts/waybar/waybar-gammastep.sh toggle" + "on-click": "${HOME}/scripts/waybar/waybar-gammastep.sh toggle" }, "custom/clock": { "interval": 60, "on-click": "${HOME}/.local/bin/firefox/firefox-bin https://papillon.john.me.tz/calendar.php", - "return-type": "json", + "return-type": "json", "exec": "echo '{\"class\": \"clock\", \"text\": \"'$(date '+%H:%M')'\", \"tooltip\": \"'$(date '+%A, %B %d, %Y | %Y-%m-%d')'\"}'" }, "custom/power": { diff --git a/wofi/style.css b/wofi/style.css index ad843677e..3990a3a16 100644 --- a/wofi/style.css +++ b/wofi/style.css @@ -1,51 +1,51 @@ window { - margin: 0px; - border-left: 2px solid #458588; - background-color: #1d2021; + margin: 0px; + border-left: 2px solid #458588; + background-color: #1d2021; } #input { - margin: 5px; - border: none; - color: #1d2021; - background-color: #EBDBB2; + margin: 5px; + border: none; + color: #1d2021; + background-color: #EBDBB2; } #inner-box { - margin: 5px; - margin-left: 0px; - border: none; - background-color: #1d2021; + margin: 5px; + margin-left: 0px; + border: none; + background-color: #1d2021; } #outer-box { - margin: 5px; - margin-left: 0px; - border: none; - background-color: #1d2021; + margin: 5px; + margin-left: 0px; + border: none; + background-color: #1d2021; } #scroll { - margin: 0px; - border: none; + margin: 0px; + border: none; } #text { - margin: 5px; - border: none; - color: #EBDBB2; - background: none; + margin: 5px; + border: none; + color: #EBDBB2; + background: none; } #text:selected { - color: #1d2021; + color: #1d2021; } #img { - background: none; + background: none; } #entry:selected { - background-color: #EBDBB2; + background-color: #EBDBB2; }