diff options
author | Ratakor <ratakor@disroot.org> | 2023-08-13 11:56:51 +0200 |
---|---|---|
committer | Ratakor <ratakor@disroot.org> | 2023-08-13 11:56:51 +0200 |
commit | a573fb7319cba87f7a348471c085d81de144e33f (patch) | |
tree | bca52b0edfd64ed257f6c9fbbb6f8568864fa07c | |
parent | 6052679ba19c7da25321dc4687320729d3a7606a (diff) |
Readd sic, remove exa + rg, add tpercent, gruvbox
Update vim config.
Add .clang-format.
Other stuff.
-rw-r--r-- | .clang-format | 212 | ||||
-rwxr-xr-x | .local/bin/aurinstall | 2 | ||||
-rwxr-xr-x | .local/bin/irc | 22 | ||||
-rwxr-xr-x | .local/bin/speedtest | 1 | ||||
-rwxr-xr-x | .local/bin/themeswap | 2 | ||||
-rwxr-xr-x | .local/bin/tpercent | bin | 0 -> 25512 bytes | |||
-rw-r--r-- | .local/etc/bat/config | 2 | ||||
-rw-r--r-- | .local/etc/gtk-3.0/settings.ini | 2 | ||||
-rwxr-xr-x | .local/etc/lf/scope | 2 | ||||
-rw-r--r-- | .local/etc/mimeapps.list | 2 | ||||
-rw-r--r-- | .local/etc/nvim/appearance.vim | 28 | ||||
-rw-r--r-- | .local/etc/nvim/basics.vim | 27 | ||||
-rw-r--r-- | .local/etc/nvim/header.vim | 6 | ||||
-rw-r--r-- | .local/etc/nvim/lsp.vim | 6 | ||||
-rw-r--r-- | .local/etc/sb/config | 2 | ||||
-rwxr-xr-x | .local/etc/sx/sxrc | 4 | ||||
-rw-r--r-- | .local/etc/sxhkd/sxhkdrc | 6 | ||||
l--------- | .local/etc/vis | 1 | ||||
l--------- | .local/etc/vis/colors | 1 | ||||
l--------- | .local/etc/vis/config | 1 | ||||
-rw-r--r-- | .local/etc/zsh/.zshenv | 8 | ||||
-rw-r--r-- | .local/etc/zsh/.zshrc | 3 | ||||
-rw-r--r-- | .local/etc/zsh/aliasrc | 8 | ||||
-rw-r--r-- | .local/share/applications/irc.desktop | 4 | ||||
-rw-r--r-- | .local/share/packages | 5 | ||||
-rw-r--r-- | README.md | 4 |
26 files changed, 308 insertions, 53 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..df8b4e8 --- /dev/null +++ b/.clang-format @@ -0,0 +1,212 @@ +Language: Cpp +AccessModifierOffset: 0 # -2 +AlignAfterOpenBracket: Align +AlignArrayOfStructures: None +AlignConsecutiveAssignments: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + PadOperators: true +AlignConsecutiveBitFields: + Enabled: true # false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + PadOperators: false +AlignConsecutiveDeclarations: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + PadOperators: false +AlignConsecutiveMacros: + Enabled: true + AcrossEmptyLines: true + AcrossComments: true + AlignCompound: false + PadOperators: false +AlignEscapedNewlines: Right +AlignOperands: Align +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortEnumsOnASingleLine: true +AllowShortBlocksOnASingleLine: Never +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: None +AllowShortLambdasOnASingleLine: None # All +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: TopLevelDefinitions # None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: Yes # MultiLine +AttributeMacros: + - __capability +BinPackArguments: true +BinPackParameters: true +BraceWrapping: + AfterCaseLabel: false + AfterClass: false + AfterControlStatement: Never + AfterEnum: false + AfterFunction: true # false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + BeforeLambdaBody: false + BeforeWhile: false + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeBinaryOperators: None +BreakBeforeConceptDeclarations: Always +BreakBeforeBraces: WebKit # Attach +BreakBeforeInheritanceComma: false +BreakInheritanceList: AfterComma # BeforeColon +BreakBeforeTernaryOperators: false # true +BreakConstructorInitializersBeforeComma: false +BreakConstructorInitializers: AfterColon # BeforeColon +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: true +ColumnLimit: 79 # 80 +CommentPragmas: '' # '^ IWYU pragma:' +QualifierAlignment: Left # Leave +CompactNamespaces: false +ConstructorInitializerIndentWidth: 8 +ContinuationIndentWidth: 8 +Cpp11BracedListStyle: false # true +DeriveLineEnding: false # true +DerivePointerAlignment: false +DisableFormat: false +EmptyLineAfterAccessModifier: Never +EmptyLineBeforeAccessModifier: Never # LogicalBlock +ExperimentalAutoDetectBinPacking: false +PackConstructorInitializers: Never # BinPack +BasedOnStyle: '' +ConstructorInitializerAllOnOneLineOrOnePerLine: false +AllowAllConstructorInitializersOnNextLine: true +FixNamespaceComments: true +ForEachMacros: + - foreach + - Q_FOREACH + - BOOST_FOREACH +IfMacros: + - KJ_IF_MAYBE +IncludeBlocks: Preserve +IncludeCategories: + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + Priority: 2 + SortPriority: 0 + CaseSensitive: false + - Regex: '^(<|"(gtest|gmock|isl|json)/)' + Priority: 3 + SortPriority: 0 + CaseSensitive: false + - Regex: '.*' + Priority: 1 + SortPriority: 0 + CaseSensitive: false +IncludeIsMainRegex: '' # '(Test)?$' +IncludeIsMainSourceRegex: '' +IndentAccessModifiers: false +IndentCaseLabels: false +IndentCaseBlocks: false +IndentGotoLabels: false +IndentPPDirectives: BeforeHash # None +IndentExternBlock: NoIndent # AfterExternBlock +IndentRequiresClause: false # true +IndentWidth: 8 +IndentWrappedFunctionNames: false +InsertBraces: true # false +InsertTrailingCommas: None +JavaScriptQuotes: Double # Leave +JavaScriptWrapImports: true +KeepEmptyLinesAtTheStartOfBlocks: false # true +LambdaBodyIndentation: Signature +MacroBlockBegin: '' +MacroBlockEnd: '' +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All # None +ObjCBinPackProtocolList: Never # Auto +ObjCBlockIndentWidth: 8 +ObjCBreakBeforeNestedBlockParam: true +ObjCSpaceAfterProperty: true # false +ObjCSpaceBeforeProtocolList: true +PenaltyBreakAssignment: 2 +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakOpenParenthesis: 0 +PenaltyBreakString: 1000 +PenaltyBreakTemplateDeclaration: 10 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 60 +PenaltyIndentedWhitespace: 0 +PointerAlignment: Right +PPIndentWidth: 0 # -1 +ReferenceAlignment: Pointer +ReflowComments: true +RemoveBracesLLVM: false +RequiresClausePosition: OwnLine +SeparateDefinitionBlocks: Always # Leave +ShortNamespaceLines: 0 # 1 +SortIncludes: CaseSensitive +SortJavaStaticImport: Before +SortUsingDeclarations: true +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false # true +SpaceBeforeAssignmentOperators: true +SpaceBeforeCaseColon: false +SpaceBeforeCpp11BracedList: true # false +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeParensOptions: + AfterControlStatements: true + AfterForeachMacros: true + AfterFunctionDefinitionName: false + AfterFunctionDeclarationName: false + AfterIfMacros: true + AfterOverloadedOperator: false + AfterRequiresInClause: false + AfterRequiresInExpression: false + BeforeNonEmptyParentheses: false +SpaceAroundPointerQualifiers: Before # Default +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 4 # 1 +SpacesInAngles: Never +SpacesInConditionalStatement: false +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: 1 # -1 +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpaceBeforeSquareBrackets: false +BitFieldColonSpacing: Both +Standard: Auto # Latest +StatementAttributeLikeMacros: + - Q_EMIT +StatementMacros: + - Q_UNUSED + - QT_REQUIRE_VERSION +TabWidth: 8 +UseCRLF: false +UseTab: AlignWithSpaces # Never +WhitespaceSensitiveMacros: + - STRINGIZE + - PP_STRINGIZE + - BOOST_PP_STRINGIZE + - NS_SWIFT_NAME + - CF_SWIFT_NAME diff --git a/.local/bin/aurinstall b/.local/bin/aurinstall index b5e0514..e1e2e0f 100755 --- a/.local/bin/aurinstall +++ b/.local/bin/aurinstall @@ -35,7 +35,7 @@ main() { packages=$(pacman -Qqm) CONFIRM=0 ;; *) - return 1; + return 0; esac elif [ "$1" = "--noconfirm" ]; then CONFIRM=0 diff --git a/.local/bin/irc b/.local/bin/irc new file mode 100755 index 0000000..eecf80d --- /dev/null +++ b/.local/bin/irc @@ -0,0 +1,22 @@ +#!/bin/sh +# color username and save history for sic + +HIST=${XDG_DATA_HOME:-$HOME/.local/share}/sic +mkdir -p "$HIST" +HIST=$HIST/$(date '+sic-%Y-%m-%d-%H:%M-%S') + +if [ -z "$*" ]; then + sic -h "irc.libera.chat" | tee -a "$HIST" |\ + awk "{gsub(\"$USER\",\"\033[1;34m$USER\033[m\")}1" +elif [ "$1" = "-xdg" ]; then + link=${2#irc://} + [ "$link" = "$2" ] && link=${2#ircs://} + host=${link%:*} + host=${link%/*} + #port=${link#"$host:"} + sic -h "$host" | tee -a "$HIST" |\ + awk "{gsub(\"$USER\",\"\033[1;34m$USER\033[m\")}1" +else + sic "$@" | tee -a "$HIST" |\ + awk "{gsub(\"$USER\",\"\033[1;34m$USER\033[m\")}1" +fi diff --git a/.local/bin/speedtest b/.local/bin/speedtest index 74a3431..51d68e1 100755 --- a/.local/bin/speedtest +++ b/.local/bin/speedtest @@ -6,3 +6,4 @@ while [ $i -lt 1000 ]; do "$@" i=$((i+1)) done +printf '%d op\n' "$i" diff --git a/.local/bin/themeswap b/.local/bin/themeswap index e8342c9..2f60ced 100755 --- a/.local/bin/themeswap +++ b/.local/bin/themeswap @@ -18,7 +18,7 @@ dracula) bg=dark theme=dracula bat=Dracula ;; -dark|gruvbox-dark) +dark|gruvbox|gruvbox-dark) bg=dark theme=gruvbox-$bg ;; light|gruvbox-light) diff --git a/.local/bin/tpercent b/.local/bin/tpercent Binary files differnew file mode 100755 index 0000000..55d5a12 --- /dev/null +++ b/.local/bin/tpercent diff --git a/.local/etc/bat/config b/.local/etc/bat/config index 89f6c7f..8fc70e0 100644 --- a/.local/etc/bat/config +++ b/.local/etc/bat/config @@ -1,3 +1,3 @@ ---theme=Dracula +--theme=gruvbox-dark --style=plain --tabs=0 diff --git a/.local/etc/gtk-3.0/settings.ini b/.local/etc/gtk-3.0/settings.ini index 10d3704..b9d80cd 100644 --- a/.local/etc/gtk-3.0/settings.ini +++ b/.local/etc/gtk-3.0/settings.ini @@ -1,2 +1,2 @@ [Settings] -gtk-theme-name=dracula +gtk-theme-name=gruvbox-dark diff --git a/.local/etc/lf/scope b/.local/etc/lf/scope index 72cf848..bcefeab 100755 --- a/.local/etc/lf/scope +++ b/.local/etc/lf/scope @@ -4,7 +4,7 @@ set -C -f IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" -THEME=Dracula +THEME=gruvbox-dark image() { if [ -f "$1" ] && [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1; then diff --git a/.local/etc/mimeapps.list b/.local/etc/mimeapps.list index 44b06f9..264565a 100644 --- a/.local/etc/mimeapps.list +++ b/.local/etc/mimeapps.list @@ -16,6 +16,8 @@ image/gif=img.desktop; inode/directory=file.desktop x-scheme-handler/https=browser.desktop x-scheme-handler/http=browser.desktop +x-scheme-handler/ircs=irc.desktop +x-scheme-handler/irc=irc.desktop x-scheme-handler/git=git.desktop x-scheme-handler/magnet=torrent.desktop; application/x-bittorrent=torrent.desktop; diff --git a/.local/etc/nvim/appearance.vim b/.local/etc/nvim/appearance.vim index a211f7b..52c1feb 100644 --- a/.local/etc/nvim/appearance.vim +++ b/.local/etc/nvim/appearance.vim @@ -1,7 +1,7 @@ set background=dark lua << EOF -local colors = require('dracula.palette') +local colors = require('gruvbox.palette').colors require("dracula").setup { show_end_of_buffer = true, @@ -41,7 +41,7 @@ local function process_sections(sections) for name, section in pairs(sections) do local left = name:sub(9, 10) < 'x' for pos = 1, name ~= 'lualine_z' and #section or #section - 1 do - table.insert(section, pos * 2, { empty, color = { fg = colors.white, bg = colors.white } }) + table.insert(section, pos * 2, { empty, color = { fg = colors.neutral_white, bg = colors.neutral_white } }) end for id, comp in ipairs(section) do if type(comp) ~= 'table' then @@ -63,7 +63,7 @@ local function modified() return '' end -local transparent = require'lualine.themes.dracula' +local transparent = require'lualine.themes.gruvbox' transparent.inactive.c.bg = 'nil' transparent.visual.c.bg = 'nil' transparent.replace.c.bg = 'nil' @@ -88,7 +88,7 @@ require('lualine').setup { source = { 'nvim' }, sections = { 'error' }, symbols = {error = 'E '}, - diagnostics_color = { error = { bg = colors.red, fg = colors.black, gui = 'bold' } }, + diagnostics_color = { error = { bg = colors.neutral_red, fg = colors.dark0, gui = 'bold' } }, --on_click = function() -- vim.diagnostic.goto_prev() -- end @@ -98,12 +98,12 @@ require('lualine').setup { source = { 'nvim' }, sections = { 'warn' }, symbols = {warn = 'W '}, - diagnostics_color = { warn = { bg = colors.orange, fg = colors.black, gui = 'bold' } }, + diagnostics_color = { warn = { bg = colors.neutral_orange, fg = colors.dark0, gui = 'bold' } }, --on_click = function() -- vim.diagnostic.goto_next() -- end }, - { modified, color = { bg = colors.purple } }, + { modified, color = { bg = colors.neutral_purple } }, { '%w', cond = function() @@ -131,17 +131,17 @@ require('lualine').setup { } require('hlargs').setup { - color = colors.orange + color = colors.neutral_orange } require("scrollbar").setup({ marks = { - Search = { color = colors.orange }, - Error = { color = colors.red }, - Warn = { color = colors.yellow }, - Info = { color = colors.pink }, - Hint = { color = colors.cyan }, - Misc = { color = colors.purple }, + Search = { color = colors.neutral_orange }, + Error = { color = colors.neutral_red }, + Warn = { color = colors.neutral_yellow }, + Info = { color = colors.neutral_pink }, + Hint = { color = colors.neutral_cyan }, + Misc = { color = colors.neutral_purple }, }, handlers = { cursor = false, @@ -195,4 +195,4 @@ require("nvim-treesitter.configs").setup { } EOF -colorscheme dracula +colorscheme gruvbox diff --git a/.local/etc/nvim/basics.vim b/.local/etc/nvim/basics.vim index 632f72d..296b7cb 100644 --- a/.local/etc/nvim/basics.vim +++ b/.local/etc/nvim/basics.vim @@ -1,4 +1,3 @@ -" Indent set autoindent set smartindent set tabstop=8 " n of whitespace in \t @@ -6,15 +5,9 @@ set shiftwidth=8 " n of whitespace for indent set softtabstop=8 " n of whitespace to delete with backspace "set expandtab " \t -> whitespaces -" Disable the mouse, btw use shift for highlighting "set mouse= aunmenu PopUp -" better <C-d> and <C-u> -nnoremap <C-d> <C-d>zz -nnoremap <c-u> <c-u>zz - -" Misc set number set relativenumber set colorcolumn=80 @@ -22,12 +15,21 @@ set colorcolumn=80 set title set termguicolors set clipboard+=unnamedplus -"set list -"set lcs=tab:\|\ ,space:⋅,eol:$ "↴ +set ttimeoutlen=10 +set list +set lcs=tab:\|\ ,space:⋅ ",eol:$ "↴ +set path=.,/usr/include,/usr/local/include,, +set nofoldenable autocmd FileType * setl fo-=ro fo+=tc + cabbrev Q q -set ttimeoutlen=10 +iabbrev reutnr return +iabbrev TOOD TODO + nnoremap <silent> <C-L> :nohls<C-R>=has('diff')?'<Bar>dif':''<CR><CR><C-L> +nnoremap <C-d> <C-d>zz +nnoremap <c-u> <c-u>zz +nnoremap ZQ :q<CR> " Language specific autocmd FileType python setl ts=4 sw=4 sts=4 expandtab @@ -35,7 +37,8 @@ autocmd FileType lisp,html setl ts=2 sw=2 sts=2 expandtab autocmd FileType html,markdown setl spell autocmd FileType tex setl spell spl=fr autocmd FileType c setl makeprg=cc\ %:p -autocmd BufWritePost *.c silent !astyle -A3 -t8 -p -xg -H -xB -n -w %:p +" -j or -xj +autocmd BufWritePost *.c silent !astyle -A3 -t8 -p -xg -H -xB -U -n %:p autocmd BufWritePost *.go silent !gofmt -s -w %:p -command Astyle !astyle -A3 -t8 -p -xg -H -xB -n -w %:p +command Astyle !astyle -A3 -t8 -p -xg -H -xB -U -n -w %:p command GoBuild !go build %:p diff --git a/.local/etc/nvim/header.vim b/.local/etc/nvim/header.vim index 4998198..4533fb2 100644 --- a/.local/etc/nvim/header.vim +++ b/.local/etc/nvim/header.vim @@ -6,8 +6,8 @@ " -#*#%:=#%%%#- " description: *:*%%%%%%%#- " script to produce an header like this one .-#%%%%%%+ -" use .local/bin/updateheader to change the %%%--%%%%*- -" letter shown ##%= +%%=:.. +" automaticaly for each new file %%%--%%%%*- +" ##%= +%%=:.. " #* #%# " :# -==* " :: .: @@ -52,6 +52,8 @@ let s:types = { \['"', '"', ''], \'\.f90$\|\.f95$\|\.f03$\|\.f$\|\.for$': \['!', '!', ''], + \'\.zig$': + \['///', '///', ''], \} function! s:filetype() diff --git a/.local/etc/nvim/lsp.vim b/.local/etc/nvim/lsp.vim index 0ecc8c8..e61e0a0 100644 --- a/.local/etc/nvim/lsp.vim +++ b/.local/etc/nvim/lsp.vim @@ -19,14 +19,14 @@ local lsp_attach = function(client, bufnr) --vim.keymap.set('n', '<space>wl', function() -- print(vim.inspect(vim.lsp.buf.list_workspace_folders())) --end, bufopts) - vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, bufopts) + vim.keymap.set('n', '<space>df', vim.lsp.buf.type_definition, bufopts) vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) vim.keymap.set('n', '<space>f', function() vim.lsp.buf.format { async = true } end, bufopts) vim.keymap.set('n', '<space>do', '<cmd>lua vim.diagnostic.open_float()<CR>', { noremap = true, silent = true }) - vim.keymap.set('n', '<space>d[', '<cmd>lua vim.diagnostic.goto_prev()<CR>', { noremap = true, silent = true }) - vim.keymap.set('n', '<space>d]', '<cmd>lua vim.diagnostic.goto_next()<CR>', { noremap = true, silent = true }) + vim.keymap.set('n', '<space>dp', '<cmd>lua vim.diagnostic.goto_prev()<CR>', { noremap = true, silent = true }) + vim.keymap.set('n', '<space>dn', '<cmd>lua vim.diagnostic.goto_next()<CR>', { noremap = true, silent = true }) vim.keymap.set('n', '<space>dd', '<cmd>Telescope diagnostics<CR>', { noremap = true, silent = true }) end diff --git a/.local/etc/sb/config b/.local/etc/sb/config index 935bfb7..fac030e 100644 --- a/.local/etc/sb/config +++ b/.local/etc/sb/config @@ -5,7 +5,7 @@ cpu = false # 36 memory = false # 37 battery = true # 38 wifi = true # 39 -netspeed = true # 40 +netspeed = false # 40 localip = false # 41 publicip = false # 42 volume = true # 43 diff --git a/.local/etc/sx/sxrc b/.local/etc/sx/sxrc index d0833b2..cd6ed8d 100755 --- a/.local/etc/sx/sxrc +++ b/.local/etc/sx/sxrc @@ -12,12 +12,12 @@ setxkbmap fr us xrandr --dpi 100 randwp scron -f "$XDG_CONFIG_HOME/crontab" -themeswap dracula +themeswap gruvbox sxhkd & pipewire & xbanish & redshift & -sb & +sleep 1; sb & exec dwm diff --git a/.local/etc/sxhkd/sxhkdrc b/.local/etc/sxhkd/sxhkdrc index 2d33180..031c6ff 100644 --- a/.local/etc/sxhkd/sxhkdrc +++ b/.local/etc/sxhkd/sxhkdrc @@ -1,9 +1,9 @@ super + Escape - kill -10 $(pidof sxhkd) + kill -10 $(pidof sxhkd) $(pidof sb) {super + Return,button8) $TERMINAL super + d - dmenu_run -hp "browser,mail" + dmenu_run -hp "browser,mail,chromium" XF86ScreenSaver slock & xset dpms force off XF86Battery @@ -15,7 +15,7 @@ super + shift + r Print screenshot {super + equal,XF86AudioRaiseVolume} - wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+; kill -43 $(pidof sb) + wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+; kill -43 $(pidof sb) {super + minus,XF86AudioLowerVolume} wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-; kill -43 $(pidof sb) XF86Launch1 diff --git a/.local/etc/vis b/.local/etc/vis deleted file mode 120000 index 4007ff4..0000000 --- a/.local/etc/vis +++ /dev/null @@ -1 +0,0 @@ -cli-visualizer
\ No newline at end of file diff --git a/.local/etc/vis/colors b/.local/etc/vis/colors new file mode 120000 index 0000000..51edaeb --- /dev/null +++ b/.local/etc/vis/colors @@ -0,0 +1 @@ +../cli-visualizer/colors
\ No newline at end of file diff --git a/.local/etc/vis/config b/.local/etc/vis/config new file mode 120000 index 0000000..ed868ad --- /dev/null +++ b/.local/etc/vis/config @@ -0,0 +1 @@ +../cli-visualizer/config
\ No newline at end of file diff --git a/.local/etc/zsh/.zshenv b/.local/etc/zsh/.zshenv index 636f626..4f7245b 100644 --- a/.local/etc/zsh/.zshenv +++ b/.local/etc/zsh/.zshenv @@ -46,7 +46,7 @@ export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java" export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc" # Misc -umask 0077 +# umask 0077 export GPG_TTY=$(tty) export DOTNET_CLI_TELEMETRY_OPTOUT=true export MANWIDTH=80 @@ -54,4 +54,8 @@ export LESS=-R export HISTFILE="$XDG_DATA_HOME/histfile" export HISTSIZE=10000 export SAVEHIST=10000 -#export LS_COLORS="di=1;34:ln=0;36:pi=0;33:bd=1;33:cd=1;33:so=1;31:ex=1;32:*README=1;33:*README.txt=1;33:*README.md=1;33:*readme.txt=1;33:*readme.md=1;33:*.ninja=1;33:*Makefile=1;33:*Cargo.toml=1;33:*SConstruct=1;33:*CMakeLists.txt=1;33:*build.gradle=1;33:*pom.xml=1;33:*Rakefile=1;33:*package.json=1;33:*Gruntfile.js=1;33:*Gruntfile.coffee=1;33:*BUILD=1;33:*BUILD.bazel=1;33:*WORKSPACE=1;33:*build.xml=1;33:*Podfile=1;33:*webpack.config.js=1;33:*meson.build=1;33:*composer.json=1;33:*RoboFile.php=1;33:*PKGBUILD=1;33:*Justfile=1;33:*Procfile=1;33:*Dockerfile=1;33:*Containerfile=1;33:*Vagrantfile=1;33:*Brewfile=1;33:*Gemfile=1;33:*Pipfile=1;33:*build.sbt=1;33:*mix.exs=1;33:*bsconfig.json=1;33:*tsconfig.json=1;33:*.zip=0;31:*.tar=0;31:*.Z=0;31:*.z=0;31:*.gz=0;31:*.bz2=0;31:*.a=0;31:*.ar=0;31:*.7z=0;31:*.iso=0;31:*.dmg=0;31:*.tc=0;31:*.rar=0;31:*.par=0;31:*.tgz=0;31:*.xz=0;31:*.txz=0;31:*.lz=0;31:*.tlz=0;31:*.lzma=0;31:*.deb=0;31:*.rpm=0;31:*.zst=0;31:*.lz4=0;31" +# export CC="tcc -L/usr/local/lib" +export CC="zig cc" +CC="$CC -Wall" +export LD_LIBRARY_PATH=/usr/local/lib +export LS_COLORS="di=1;34:ln=0;36:or=91:pi=0;33:bd=1;33:cd=1;33:so=1;31:ex=1;32:*.zig=38;5;214:*.pdf=38;5;62:*.o=38;5;94:*README=1;4;33:*README.txt=1;4;33:*README.md=1;4;33:*.ninja=1;4;33:*Makefile=1;4;33:*Cargo.toml=1;4;33:*CMakeLists.txt=1;4;33:*meson.build=1;4;33:*PKGBUILD=1;4;33:*Dockerfile=1;4;33:*.zip=0;31:*.tar=0;31:*.gz=0;31:*.bz2=0;31:*.a=0;31:*.ar=0;31:*.7z=0;31:*.iso=0;31:*.dmg=0;31:*.rar=0;31:*.tgz=0;31:*.xz=0;31:*.txz=0;31:*.lz=0;31:*.tlz=0;31:*.lzma=0;31:*.deb=0;31:*.rpm=0;31:*.zst=0;31:*.lz4=0;31:*.sig=0;37:*.bak=0;37:*.old=0;37:*.orig=0;37:*.part=0;37:*.rej=0;37:*.swp=0;37:*.tmp=0;37::*.jpg=38;5;70:*.jpeg=38;5;70:*.mjpg=38;5;70:*.gif=38;5;70:*.ico=38;5;70:*.bmp=38;5;70:*.pbm=38;5;70:*.pgm=38;5;70:*.ppm=38;5;70:*.tga=38;5;70:*.xbm=38;5;70:*.xpm=38;5;70:*.tif=38;5;70:*.tiff=38;5;70:*.png=38;5;70:*.svg=38;5;70:*.svgz=38;5;70:*.webp=38;5;70:*.mng=38;5;70:*.pcx=38;5;70:*.flc=38;5;70:*.fli=38;5;70:*.xcf=38;5;70:*.xwd=38;5;70:*.cgm=38;5;70:*.emf=38;5;70:*.ff=38;5;70:*.webm=38;5;25:*.ogm=38;5;25:*.mp4=38;5;25:*.m4v=38;5;25:*.mp4v=38;5;25:*.mkv=38;5;25:*.mpg=38;5;25:*.mpeg=38;5;25:*.avi=38;5;25:*.mov=38;5;25:*.wmv=38;5;25:*.flv=38;5;25:*.m2v=38;5;25:*.vob=38;5;25:*.qt=38;5;25:*.asf=38;5;25:*.rm=38;5;25:*.rmvb=38;5;25:*.ogv=38;5;25:*.ogx=38;5;25:*.mjpeg=38;5;25:*.aac=38;5;35:*.au=38;5;35:*.flac=38;5;35:*.m4a=38;5;35:*.mid=38;5;35:*.midi=38;5;35:*.mka=38;5;35:*.mp3=38;5;35:*.mpc=38;5;35:*.ogg=38;5;35:*.ra=38;5;35:*.wav=38;5;35:*.oga=38;5;35:*.opus=38;5;35:*.spx=38;5;35:*.xspf=38;5;35" diff --git a/.local/etc/zsh/.zshrc b/.local/etc/zsh/.zshrc index 630c82a..15e29cf 100644 --- a/.local/etc/zsh/.zshrc +++ b/.local/etc/zsh/.zshrc @@ -1,7 +1,8 @@ # fun stuff quand -f 14 #shuf -n 1 "$XDG_DATA_HOME/navi" # database from https://github.com/HappyHippo77/NaviFrequencyList -exa -aa --color=auto --group-directories-first +tpercent +ls -a --color=auto --group-directories-first # Source aliases source "$ZDOTDIR/aliasrc" diff --git a/.local/etc/zsh/aliasrc b/.local/etc/zsh/aliasrc index 8f1015b..8e31881 100644 --- a/.local/etc/zsh/aliasrc +++ b/.local/etc/zsh/aliasrc @@ -40,6 +40,7 @@ alias cac="cd $XDG_CACHE_HOME" alias v="$EDITOR" alias vim="$EDITOR" alias suvi="$ROOTCMD $EDITOR" +alias cc="$CC" alias lf="lfub" alias :q="exit" alias :Q="exit" @@ -53,6 +54,7 @@ alias playlist-dlp="ytdl p" alias paint="pinta" alias python="python3" alias py="pypy3" +alias sic="irc" alias ho="cat $XDG_DATA_HOME/hole/history" alias ytfzf="ytfzf -D --detach" alias tmp='cd $(mktemp -d)' @@ -62,20 +64,18 @@ alias gb="go build" # verbosity and colors alias rm="rm -vI" -alias rmdir="rmdir -pv" +alias rmdir="rmdir -v" alias cp="cp -riv" alias mv="mv -iv" alias mkdir="mkdir -pv" alias grep="grep --color=auto" alias diff="diff --color=auto" alias ip="ip --color=auto" -alias ls="exa --color=auto --group-directories-first" +alias ls="ls --color=auto --group-directories-first" alias sl="ls" alias ll="ls -lh" alias la="ls -a" alias l="ls -lah" -alias laa="exa -aa --group-directories-first" -alias tree="exa --tree --group-directories-first" alias cat="bat" alias du="dust -r" alias duf="duf -hide special" diff --git a/.local/share/applications/irc.desktop b/.local/share/applications/irc.desktop new file mode 100644 index 0000000..1bafde3 --- /dev/null +++ b/.local/share/applications/irc.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=IRC +Exec=st -e irc -xdg %u diff --git a/.local/share/packages b/.local/share/packages index 5b0c832..6cb4ef3 100644 --- a/.local/share/packages +++ b/.local/share/packages @@ -25,6 +25,7 @@ dwm-ratakor # window manager sb # status bar st-ratakor # terminal emulator slock-ratakor # screen locker +ratakor-repo/sic # IRC client randhost # set a random hostname (OpenRC service) blocktooth # block bluetooth with rfkill (OpenRC service) networkmanager-hardened # set a randomized MAC address + disable co test @@ -50,8 +51,6 @@ gomuks # matrix client ## terminal zsh # user shell -exa # ls replacement -ripgrep # grep replacement newsboat # RSS Reader lf # file manager bat # lf dependency and cat replacement @@ -77,6 +76,7 @@ clang # another cc + clangd C lsp tcc # tiny c compiler mingw-w64-gcc # windows cc musl # another libc +libbsd zig pypy3 # JIT python interpreter zls # zig lsp @@ -90,6 +90,7 @@ vscode-css-languageserver vscode-html-languageserver astyle # C formatter shellcheck +cmake # use zig or make please ## sound rtkit @@ -32,6 +32,7 @@ DO NOT TRY TO INSTALL if it's not a fresh install and you don't know what you're - File manager: [lf](https://github.com/gokcehan/lf) - Calendar: [quand](https://github.com/ratakor/quand) - RSS reader: [newsboat](https://newsboat.org/) +- IRC client: [sic](https://tools.suckless.org/sic) ### Fonts - Serif font: [Noto Serif](https://fonts.google.com/noto/specimen/Noto+Serif) @@ -54,7 +55,8 @@ See [packages](.local/share/packages) for a list and a small description of other programs I use. ## TODO -- config or patch mtm (or tmux) to be usable +- config mtm (or tmux) to be usable +- replace sic with ii ? ## LICENSE Copyright © 2023 Ratakor <ratakor@disroot.org> |