dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
a5c6b207790c66d740c67b6ef10d883be4238790
Oliver Jan Krylow <olver@bugabinga.net > · 21 Aug 2021
unsigned
Browse files Compare with HEAD
Changed files (13) +260 / −97 text lines · 1 metadata-only
Diff layout Auto Unified Split
+8 / −0 text lines
36 36 - [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?- [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?37 37 - [ ] encrypt box key- [ ] encrypt box key
38 + - [ ] get SIM card to work on x23039 + - [ ] disable syntax highlighting (treesitter) for inactive buffers and dim color40 + - [ ] port commands from vim-eunuch:44 + - [ ] LSP diagnostics only on BufWrite45 + - [ ] easier too read colors for lsp hoversalacritty/Alacritty.desktop Mode changed old mode 100644
new mode 100755No text changes.
bootstripper.java Modified +14 / −15 text lines
11 11 var dorkfiles_root = Path .of(arguments[0 ]).toRealPath(); var dorkfiles_root = Path .of(arguments[0 ]).toRealPath();12 12 System .out.printf("Assuming dorkfiles root repo in %s.%n" , emphasize_local(dorkfiles_root.toString())); System .out.printf("Assuming dorkfiles root repo in %s.%n" , emphasize_local(dorkfiles_root.toString()));13 - decrypt_secrets(dorkfiles_root.resolve("secrets " ));13 + decrypt_secrets(dorkfiles_root.resolve("tresor " ));14 14 var hostname = hostname(); var hostname = hostname();15 15 System .out.printf("Hostname: %s%n" , emphasize_global(hostname)); System .out.printf("Hostname: %s%n" , emphasize_global(hostname));16 16 var symlinks_file = hostname + ".symlinks" ; var symlinks_file = hostname + ".symlinks" ;17 - create_symlinks(dorkfiles_root.resolve(symlinks_file));17 + create_symlinks(dorkfiles_root, dorkfiles_root .resolve(symlinks_file));19 19 static void decrypt_secrets(Path secrets_root) throws Exception { static void decrypt_secrets(Path secrets_root) throws Exception {20 20 System .out.printf("%s:Decrypting files in %s folder.%n" , emphasize_global("TODO" ), emphasize_local(secrets_root.getFileName().toString())); System .out.printf("%s:Decrypting files in %s folder.%n" , emphasize_global("TODO" ), emphasize_local(secrets_root.getFileName().toString()));22 - static void create_symlinks(Path symlinks_file) throws Exception {22 + static void create_symlinks(Path root , Path symlinks_file) throws Exception {23 23 System .out.printf("Creating symlinks as defined in %s file.%n" , emphasize_local(symlinks_file.getFileName().toString())); System .out.printf("Creating symlinks as defined in %s file.%n" , emphasize_local(symlinks_file.getFileName().toString()));24 24 var lines = Files .readAllLines(symlinks_file); var lines = Files .readAllLines(symlinks_file);25 25 String source = null ; String source = null ;29 29 if (source == null ) source = line; if (source == null ) source = line;30 30 else if (target == null ) target = line; else if (target == null ) target = line;31 31 if (source != null && target != null ){ if (source != null && target != null ){32 - link(source, target);32 + link(root , source, target);33 33 source = null ; source = null ;34 34 target = null ; target = null ;38 - static void link(String source, String target) throws Exception {38 + static void link(Path root , String source, String target) throws Exception {39 39 var home = System .getProperty("user.home" ); var home = System .getProperty("user.home" );40 - var source_path = Path .of(source.replace("~" , home)).toAbsolutePath();40 + var source_path = root.resolve(source).toAbsolutePath();41 41 var target_path = Path .of(target.replace("~" , home)).toAbsolutePath(); var target_path = Path .of(target.replace("~" , home)).toAbsolutePath();42 42 var is_directory = Files .isDirectory(source_path); var is_directory = Files .isDirectory(source_path);43 43 if (Files .exists(target_path, LinkOption .NOFOLLOW_LINKS )){ if (Files .exists(target_path, LinkOption .NOFOLLOW_LINKS )){87 87 static String hostname() throws Exception { static String hostname() throws Exception {88 - var process_builder = new ProcessBuilder ();89 - var operating_system = System .getProperty("os.name" );90 - if (operating_system.toLowerCase().contains("linux" )){91 - process_builder = process_builder.command("hostnamectl" , "hostname" );95 - process_builder = process_builder.command("hostname" );88 + var process_builder = new ProcessBuilder ().command("hostname" );97 89 var process = process_builder var process = process_builder
93 + if (process.exitValue() != 0 ) {94 + process = new ProcessBuilder ()95 + .command("hostnamectl" , "hostname" )101 100 try (var reader = new InputStreamReader (process.getInputStream())) try (var reader = new InputStreamReader (process.getInputStream()))103 102 int character = - 1 ; int character = - 1 ;neovim/lua/autocommand.lua Modified +2 / −2 text lines
4 - return function (groups)5 - for name, commands in pairs (groups ) do 4 + return function (autocmd_groups)5 + for name, commands in pairs (autocmd_groups ) do 7 7 vim.cmd('augroup ' .. name) vim.cmd('augroup ' .. name)neovim/lua/general_editor_settings.lua Modified +1 / −1 text lines
66 66 vim.opt.showcmd = false vim.opt.showcmd = false 67 67 vim.opt.wildmode = "list:longest" vim.opt.wildmode = "list:longest" 69 - vim.opt.autochdir = false 69 + vim.opt.autochdir = true 71 71 vim.opt.autoread = true vim.opt.autoread = true neovim/lua/lsp.lua Modified +9 / −19 text lines
4 4 return function ()return function ()5 5 local integrate_into_neovim = function (client, buffer_number) local integrate_into_neovim = function (client, buffer_number)6 6 print ("LSP " .. client.name .. " [" .. client.id .. "] " .. "started." ) print ("LSP " .. client.name .. " [" .. client.id .. "] " .. "started." )7 - local chain_complete_list = {9 - { complete_items = { "lsp" , "snippet" } },10 - { complete_items = { "path" }, triggered_only = { "/" } },11 - { complete_items = { "buffers" } },14 - { complete_items = { "path" }, triggered_only = { "/" } },
19 - require ("completion" ).on_attach({ 21 - enable_auto_popup = false ,22 - chain_complete_list = chain_complete_list,10 + require ("completion" ).on_attach() 12 + require "lspkind" .init()26 15 vim.api.nvim_buf_set_option(buffer_number, "omnifunc" , "v:lua.vim.lsp.omnifunc" ) vim.api.nvim_buf_set_option(buffer_number, "omnifunc" , "v:lua.vim.lsp.omnifunc" )32 21 map("n" , "<LEADER>gD" , "<CMD>lua vim.lsp.buf.declaration()<CR>" ) map("n" , "<LEADER>gD" , "<CMD>lua vim.lsp.buf.declaration()<CR>" )33 22 map("n" , "<LEADER>gd" , "<CMD>lua vim.lsp.buf.definition()<CR>" ) map("n" , "<LEADER>gd" , "<CMD>lua vim.lsp.buf.definition()<CR>" )34 - map("n" , "<LEADER>K" , "<CMD>lua vim.lsp.buf.hover()<CR>" )
35 23 map("n" , "<LEADER>gr" , "<CMD>lua vim.lsp.buf.references()<CR>" ) map("n" , "<LEADER>gr" , "<CMD>lua vim.lsp.buf.references()<CR>" )36 - map("n" , "<LEADER>gs" , "<CMD>lua vim.lsp.buf.signature_help()<CR>" )
37 24 map("n" , "<LEADER>gi" , "<CMD>lua vim.lsp.buf.implementation()<CR>" ) map("n" , "<LEADER>gi" , "<CMD>lua vim.lsp.buf.implementation()<CR>" )38 25 map("n" , "<LEADER>gt" , "<CMD>lua vim.lsp.buf.type_definition()<CR>" ) map("n" , "<LEADER>gt" , "<CMD>lua vim.lsp.buf.type_definition()<CR>" )39 26 map("n" , "<LEADER>gw" , "<CMD>lua vim.lsp.buf.document_symbol()<CR>" ) map("n" , "<LEADER>gw" , "<CMD>lua vim.lsp.buf.document_symbol()<CR>" )40 27 map("n" , "<LEADER>gW" , "<CMD>lua vim.lsp.buf.workspace_symbol()<CR>" ) map("n" , "<LEADER>gW" , "<CMD>lua vim.lsp.buf.workspace_symbol()<CR>" )41 29 map("n" , "<LEADER>ah" , "<CMD>lua vim.lsp.buf.hover()<CR>" ) map("n" , "<LEADER>ah" , "<CMD>lua vim.lsp.buf.hover()<CR>" )
30 + map("n" , "<LEADER>as" , "<CMD>lua vim.lsp.buf.signature_help()<CR>" )42 31 map("n" , "<LEADER>af" , "<CMD>lua vim.lsp.buf.code_action()<CR>" ) map("n" , "<LEADER>af" , "<CMD>lua vim.lsp.buf.code_action()<CR>" )43 32 map("n" , "<LEADER>ar" , "<CMD>lua vim.lsp.buf.rename()<CR>" ) map("n" , "<LEADER>ar" , "<CMD>lua vim.lsp.buf.rename()<CR>" )44 - map("n" , "<LEADER>=" , "<CMD>lua vim.lsp.buf.formatting()<CR>" )33 + map("n" , "<LEADER>a =" , "<CMD>lua vim.lsp.buf.formatting()<CR>" )45 34 map("n" , "<LEADER>ai" , "<CMD>lua vim.lsp.buf.incoming_calls()<CR>" ) map("n" , "<LEADER>ai" , "<CMD>lua vim.lsp.buf.incoming_calls()<CR>" )46 35 map("n" , "<LEADER>ao" , "<CMD>lua vim.lsp.buf.outgoing_calls()<CR>" ) map("n" , "<LEADER>ao" , "<CMD>lua vim.lsp.buf.outgoing_calls()<CR>" )121 111 lsp.zeta_note.setup({ lsp.zeta_note.setup({122 112 on_attach = integrate_into_neovim, on_attach = integrate_into_neovim,neovim/lua/plugins.lua Modified +50 / −7 text lines
15 15 local packer_installation_path = data_path .. "/site/pack/" .. plugin_package .. "/opt/packer.nvim" local packer_installation_path = data_path .. "/site/pack/" .. plugin_package .. "/opt/packer.nvim" 16 16 if vim.fn.empty(vim.fn.glob(packer_installation_path)) == 1 then if vim.fn.empty(vim.fn.glob(packer_installation_path)) == 1 then 17 17 vim.cmd('!git clone https://github.com/wbthomason/packer.nvim "' .. packer_installation_path .. '"' ) vim.cmd('!git clone https://github.com/wbthomason/packer.nvim "' .. packer_installation_path .. '"' )18 - vim.cmd(' packadd packer' )18 + vim.cmd(" packadd packer" )20 20 local packer = nil local packer = nil 21 21 local init = function () local init = function ()102 97 "tjdevries/colorbuddy.vim" , "tjdevries/colorbuddy.vim" ,103 98 config = function () config = function ()110 105 "nvim-treesitter/nvim-treesitter" , "nvim-treesitter/nvim-treesitter" ,
106 + requires = { "nvim-treesitter/nvim-treesitter-refactor" },111 107 config = function () config = function ()112 108 require ("nvim-treesitter.install" ).compilers = { "clang" } require ("nvim-treesitter.install" ).compilers = { "clang" }113 109 require ("nvim-treesitter.configs" ).setup({ require ("nvim-treesitter.configs" ).setup({114 - ensure_installed = { "zig" , "java" , "rust" , "lua" , "toml" , "yaml" , "json" , "c" },110 + ensure_installed = {115 127 highlight = { enable = true }, highlight = { enable = true },116 128 incremental_selection = { incremental_selection = {117 129 enable = true , enable = true ,125 137 indent = { enable = true }, indent = { enable = true },126 138 query_linter = { enable = true , use_virtual_text = true , lint_events = { "BufWrite" } }, query_linter = { enable = true , use_virtual_text = true , lint_events = { "BufWrite" } },
140 + highlight_definitions = { enable = true },141 + smart_rename = { enable = true , keymaps = { smart_rename = "<LEADER>r" } },144 + keymaps = { goto_next_usage = "<a-.>" , goto_previous_usage = "<a-,>" },187 207 require ("lsp" )() require ("lsp" )()
209 + vim.lsp.handlers["textDocument/codeAction" ] = require ("lsputil.codeAction" ).code_action_handler210 + vim.lsp.handlers["textDocument/references" ] = require ("lsputil.locations" ).references_handler211 + vim.lsp.handlers["textDocument/definition" ] = require ("lsputil.locations" ).definition_handler212 + vim.lsp.handlers["textDocument/declaration" ] = require ("lsputil.locations" ).declaration_handler213 + vim.lsp.handlers["textDocument/typeDefinition" ] = require ("lsputil.locations" ).typeDefinition_handler214 + vim.lsp.handlers["textDocument/implementation" ] = require ("lsputil.locations" ).implementation_handler215 + vim.lsp.handlers["textDocument/documentSymbol" ] = require ("lsputil.symbols" ).document_handler216 + vim.lsp.handlers["workspace/symbol" ] = require ("lsputil.symbols" ).workspace_handler189 218 requires = { requires = {193 222 "neovim/nvim-lspconfig" , "neovim/nvim-lspconfig" ,195 224 "nvim-lua/completion-nvim" , "nvim-lua/completion-nvim" ,
226 + "onsails/lspkind-nvim" ,231 + "RishabhRD/nvim-lsputils" ,231 267 opt = true , opt = true ,232 268 command = "VBox" , command = "VBox" ,
273 + use("Iron-E/nvim-cartographer" )276 + use("beauwilliams/focus.nvim" )neovim/lua/statusline.lua Modified +70 / −27 text lines
1 1 local branch_icon = "" local branch_icon = "" 2 2 local vcs_branch_name = "" local vcs_branch_name = ""
3 + local code_actions_count = 0 3 4 local special_windows = {local special_windows = {4 5 intro = { "CheatSheet" , "" }, intro = { "CheatSheet" , "" },5 6 NvimTree = { "Files" , "" }, NvimTree = { "Files" , "" },6 7 packer = { "Plugins" , "" }, packer = { "Plugins" , "" },7 8 help = { "Help" , "龎" }, help = { "Help" , "龎" },
9 + ["" ] = { "unknown file type" , "" },9 11 local lsp_symbols = { Error = "" , Information = "" , Warning = "" , Hint = "" }local lsp_symbols = { Error = "" , Information = "" , Warning = "" , Hint = "" }
25 + update_code_actions_count = function ()26 + local diagnostics_line_context = { diagnostics = vim.lsp.diagnostic.get_line_diagnostics() }27 + local lsp_parameters = vim.lsp.util.make_range_params()28 + lsp_parameters.context = diagnostics_line_context29 + vim.lsp.buf_request(0 , "textDocument/codeAction" , lsp_parameters, function (error, _, result)30 + if not error and result then 31 + code_actions_count = # result33 + code_actions_count = 0 25 39 update_statuslines = function () update_statuslines = function ()26 40 for _, window_number in pairs (vim.api.nvim_list_wins()) do for _, window_number in pairs (vim.api.nvim_list_wins()) do 27 41 if vim.api.nvim_get_current_win() == window_number then if vim.api.nvim_get_current_win() == window_number then 28 - vim.opt.statusline = [[%!v:lua.require'statusline'.render("current")]] 29 - elseif vim.api.nvim_buf_get_name(0 ) ~= "" then 30 - vim.opt.statusline = [[%!v:lua.require'statusline'.render()]] 42 + vim.wo[window_number].statusline = [[%!v:lua.require'statusline'.render("current")]] 44 + vim.wo[window_number].statusline = [[%!v:lua.require'statusline'.render()]] 35 49 update_vcs_branch_name = function () update_vcs_branch_name = function ()36 50 if not pcall (require , "plenary" ) then if not pcall (require , "plenary" ) then 53 + local Job = require ("plenary.job" )54 + local git = Job:new({56 + args = { "branch" , "--show-current" },57 + cwd = vim.fn.expand("%:p:h" ), 59 + skip_validation = true ,60 + on_exit = function (output)61 + local result = output:result()[1 ]63 + vcs_branch_name = result67 + local svn = Job:new({70 + cwd = vim.fn.expand("%:p:h" ), 72 + skip_validation = true ,73 + on_exit = function (output)74 + local result = output:result()[4 ] 75 + result = result and result:match("Relative URL:%s%^/([%w/]+).*" ) or nil 77 + vcs_branch_name = result82 + local all = { git, svn }83 + for _, tool in pairs (all) do 84 + pcall (tool.start, tool)39 - require ("plenary.job" )42 - args = { "branch" , "--show-current" },43 - cwd = vim.fn.expand("%:p:h" ), 44 - on_exit = function (output)45 - local result = output:result()[1 ]47 - vcs_branch_name = "%#LineNr#%=" .. branch_icon .. " " .. result
56 88 render = function (active) render = function (active)57 89 local filetype = vim.bo.filetype local filetype = vim.bo.filetype58 90 local special_window = special_windows[filetype] local special_window = special_windows[filetype]59 - if active and special_window then 60 - return "%#LineNr#%=" .. special_window[2 ] .. " " .. special_window[1 ] .. "%=" 91 + if special_window then 92 + return "%#Statusline" 93 + .. (active and "" or "NC" )62 - local edited = vim.bo.mod and "" or "" 63 - local modifiable = vim.bo.modifiable and "" or "" 100 + local edited = vim.bo.mod and "" or " " 101 + local modifiable = vim.bo.modifiable and " " or "" 64 102 local diagnostics = get_lsp_diagnostics_count() local diagnostics = get_lsp_diagnostics_count()
104 + local vcs_info = vcs_branch_name and ("%#LineNr#%=" .. branch_icon .. " " .. vcs_branch_name) or nil 66 106 local statusline = "%#Statusline" local statusline = "%#Statusline" 67 107 .. (active and "" or "NC" ) .. (active and "" or "NC" )71 111 .. modifiable .. modifiable74 - .. (diagnostics ~= "" and " " .. diagnostics .. " " or " " )75 - .. (active and vcs_branch_name or "" )114 + .. (active and ( diagnostics ~= "" and " " .. diagnostics .. " " or " " ) or " " ) 115 + .. (code_actions_count ~= 0 and ("%#Title#" .. " " .. code_actions_count .. " ﯦ" ) or "" )116 + .. (active and vcs_info or "" )77 118 return statusline return statusline80 121 setup = function (autocommand) setup = function (autocommand)81 122 autocommand({ autocommand({82 - update_statusline = "CursorHold,CursorHoldI * lua require'statusline'.update_statuslines()" ,83 - update_vcs_branch_name = "BufEnter,BufWinEnter,WinEnter,BufReadPost * lua require'statusline'.update_vcs_branch_name()" ,124 + update_vcs_branch_name = "BufEnter,WinEnter,BufWinEnter,BufReadPost * lua require'statusline'.update_vcs_branch_name()" ,125 + update_code_actions_count = "CursorHold,CursorHoldI * lua require'statusline'.update_code_actions_count()" ,126 + update_statuslines = "CursorHold,CursorHoldI,BufEnter,WinEnter,BufWinEnter,BufReadPost * lua require'statusline'.update_statuslines()" ,neovim/lua/tabline.lua Modified +14 / −11 text lines
17 17 render = function () render = function ()18 18 local buffer_names_to_ignore = {'NvimTree' } local buffer_names_to_ignore = {'NvimTree' }19 19 local tabline = "" local tabline = "" 21 - for _, buffer_number in pairs (vim.api.nvim_list_bufs()) do 22 - if vim.api.nvim_buf_is_valid(buffer_number ) and vim.api.nvim_buf_is_loaded(buffer_number ) then 20 + for _, current_tab in pairs (vim.api.nvim_list_tabpages()) do 21 + if vim.api.nvim_tabpage_is_valid(current_tab) then 22 + local current_window = vim.api.nvim_tabpage_get_win(current_tab)23 + if not vim.api.nvim_win_is_valid(current_window) then goto continue end 24 + local current_buffer = vim.api.nvim_win_get_buf(current_window)25 + if not ( vim.api.nvim_buf_is_valid(current_buffer ) and vim.api.nvim_buf_is_loaded(current_buffer )) then goto continue end 23 26 local modified = vim.bo.modified and "" or " " local modified = vim.bo.modified and "" or " " 25 - local stylish_buffer_name = vim.api.nvim_buf_get_name(buffer_number):match(".-([^\\/]-)$" ) or "" 26 - if vim.tbl_contains(buffer_names_to_ignore, stylish_buffer_name) or stylish_buffer_name == " " then goto continue end 28 + local current_buffer_name = vim.api.nvim_buf_get_name(current_buffer)29 + local stylish_buffer_name = current_buffer_name:match(".-([^\\/]-)$" ) or "" 30 + if vim.tbl_contains(buffer_names_to_ignore, stylish_buffer_name) then goto continue end 27 31 local icon = "" local icon = "" 32 - if stylish_buffer_name == "cheatsheet" then 32 + if stylish_buffer_name == "" then 33 + stylish_buffer_name = "no name" 35 + elseif stylish_buffer_name == "cheatsheet" then 33 36 icon = "" icon = "" 35 38 local extension = stylish_buffer_name:match("%w+%.(.+)" ) local extension = stylish_buffer_name:match("%w+%.(.+)" )36 39 icon = get_icon(stylish_buffer_name, extension) icon = get_icon(stylish_buffer_name, extension)38 41 stylish_buffer_name = " " .. stylish_buffer_name .. " " stylish_buffer_name = " " .. stylish_buffer_name .. " " 39 - local is_current_buffer = vim.api.nvim_get_current_buf() == buffer_number 42 + local is_current_buffer = vim.api.nvim_get_current_buf() == current_buffer 40 43 tabline = tabline .. "%#TabLine" .. tabline = tabline .. "%#TabLine" .. 41 44 (is_current_buffer and "Sel" or "" ) .. "#" .. (is_current_buffer and "Sel" or "" ) .. "#" .. 42 45 " " .. icon .. stylish_buffer_name .. (is_current_buffer and modified or " " ) " " .. icon .. stylish_buffer_name .. (is_current_buffer and modified or " " )+1 / −1 text lines
28 28 stackoverflow/sostackoverflow/so29 29 ~/.config/so~/.config/so31 - starship/starship.toml31 + starship/starship.toml.pop-os 32 32 ~/.config/starship.toml~/.config/starship.toml34 34 topgrade/topgrade.linux.tomltopgrade/topgrade.linux.tomlstarship/starship.toml.EJ-PC-00363 Modified +11 / −1 text lines
9 9 truncation_symbol = '⋯ /'truncation_symbol = '⋯ /'10 10 home_symbol = '∽'home_symbol = '∽'11 11 truncation_length = 5truncation_length = 514 - style = 'yellow dimmed'15 + style = 'dimmed yellow '16 18 [git_status][git_status]18 20 disabled = truedisabled = true21 26 style = "dimmed cyan"style = "dimmed cyan"24 30 style = "dimmed cyan"style = "dimmed cyan"27 33 style = "dimmed yellow"style = "dimmed yellow"29 39 [memory_usage][memory_usage]30 40 disabled = falsedisabled = false31 41 format = "$symbol $ram_pct ($style)"format = "$symbol $ram_pct ($style)"starship/starship.toml.pop-os Added new file mode 100644+44 / −0 text lines
3 + success_symbol = ' (dimmed green)'4 + # does not work yet in nushell5 + error_symbol = ' (dimmed red)'9 + truncation_symbol = '⋯ /'15 + style = 'dimmed yellow'33 + style = "dimmed yellow"41 + format = "$symbol $ram_pct ($style)"starship/starship.toml.x230 Modified +36 / −13 text lines
1 1 #vim: ft=toml#vim: ft=toml7 - discharging_symbol = "- "3 + success_symbol = ' (dimmed green)'4 + # does not work yet in nushell5 + error_symbol = ' (dimmed red)'15 7 [directory][directory]17 8 style = 'bold purple'style = 'bold purple'
9 + truncation_symbol = '⋯ /'20 - style = 'yellow dimmed'15 + style = 'dimmed yellow '22 18 [git_status][git_status]23 20 disabled = truedisabled = true
33 + style = "dimmed yellow"25 39 [memory_usage][memory_usage]26 40 disabled = falsedisabled = false27 41 format = "$symbol $ram_pct ($style)"format = "$symbol $ram_pct ($style)"28 42 threshold = 50threshold = 5029 43 symbol = ""symbol = ""30 44 style = "dimmed gray"style = "dimmed gray"
48 + charging_symbol = "⚡️ "49 + discharging_symbol = "💀 "