From baa0fdbc1ad07d0d3c1bd801e31a93de61e4f602 Mon Sep 17 00:00:00 2001 From: Anish L Date: Sat, 16 Apr 2022 01:20:42 +1000 Subject: [PATCH 01/13] add emojirasi file --- profiles/nvim/default.nix | 4 - profiles/nvim/nvim.nix | 491 --------------------- users/profiles/desktop/default.nix | 1 + users/profiles/desktop/rofi/emojimenu.rasi | 15 + users/profiles/desktop/sxhkdrc | 3 + 5 files changed, 19 insertions(+), 495 deletions(-) delete mode 100644 profiles/nvim/default.nix delete mode 100644 profiles/nvim/nvim.nix create mode 100644 users/profiles/desktop/rofi/emojimenu.rasi diff --git a/profiles/nvim/default.nix b/profiles/nvim/default.nix deleted file mode 100644 index 443a0669..00000000 --- a/profiles/nvim/default.nix +++ /dev/null @@ -1,4 +0,0 @@ -{ self, config, lib, pkgs, ... }: -{ - imports = [ ./nvim.nix ]; -} diff --git a/profiles/nvim/nvim.nix b/profiles/nvim/nvim.nix deleted file mode 100644 index ae3d5991..00000000 --- a/profiles/nvim/nvim.nix +++ /dev/null @@ -1,491 +0,0 @@ -{ pkgs, ... }: -let - customPlugins = { - vim-zettel = pkgs.vimUtils.buildVimPlugin { - name = "vim-zettel"; - src = pkgs.fetchFromGitHub { - owner = "michal-h21"; - repo = "vim-zettel"; - rev = "929d90eec62e6f693c2702d2b6f76a93f2f1689d"; - sha256 = "1fzKmknfVlEYwqeXgbKITbb2/PJ023iJyMz6vak3qh4="; - }; - }; - lsp-format = pkgs.vimUtils.buildVimPlugin { - name = "lsp-format"; - src = pkgs.fetchFromGitHub { - owner = "lukas-reineke"; - repo = "lsp-format.nvim"; - rev = "84e117b99bb2bc0d0c8122e2b256046f046f8aff"; - sha256 = "rs3NTZwWdsmBGXnrgUeVxUiNjbN/ULxJHifPYJD9mT4="; - }; - }; - vim-tidal = pkgs.vimUtils.buildVimPluginFrom2Nix { - name = "vim-tidal"; - src = pkgs.fetchgit { - url = "https://github.com/tidalcycles/vim-tidal"; - # version 1.4.6 - rev = "52134979252757a5736ae09cb9fc6ae3cc04daef"; - sha256 = "1x64d8jdlcw16pcp19xb0krd1jfqhva4xsxif8xc11pyj52sxxlh"; - }; - postInstall = '' - sed -i "s| split term://tidal| split term://$out/share/vim-plugins/vim-tidal/bin/tidal|g" $out/share/vim-plugins/vim-tidal/plugin/tidal.vim - cat plugin/tidal.vim | grep "term:" - ''; - dependencies = [ ]; - }; - }; - - my-python-packages = python-packages: with python-packages; [ - tasklib - pynvim - six - python-lsp-server - pylsp-mypy - python-lsp-black - pylint - black - # other python packages you want - ]; - python-with-my-packages = pkgs.python3.withPackages my-python-packages; -in -{ - environment.variables.EDITOR = "nvim"; - environment.shellAliases = { - k = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex; cd $OLDPWD"; - kz = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex -c :ZettelNew; cd $OLDPWD"; - }; - environment.systemPackages = with pkgs // customPlugins; [ - nodejs - python-with-my-packages - clojure-lsp - rnix-lsp - terraform-lsp - vale - clj-kondo - # Other LSPs or linters - (neovim.override { - vimAlias = true; - withPython3 = true; - extraPython3Packages = pkgs: with pkgs; [ tasklib six ]; - configure = { - packages.myPlugins = with pkgs.vimPlugins; { - start = [ - # general - vim-nix - fzf-vim - vim-elixir - emmet-vim - nerdtree - ayu-vim - goyo-vim - csv-vim - rainbow_parentheses-vim - vim-surround - vim-devicons - nvim-web-devicons - direnv-vim - vim-peekaboo - undotree - telescope-nvim - plenary-nvim - lualine-nvim - nvim-gps - nvim-treesitter - nvim-treesitter-context - dashboard-nvim - FTerm-nvim - barbar-nvim - - # kitaab stuff - vimwiki - taskwiki - vim-zettel - - # lsp stuff - nvim-lint - nvim-lspconfig - nvim-cmp - cmp-nvim-lsp - cmp-treesitter - nvim-lsp-ts-utils - cmp-conjure - cmp-buffer - cmp-tabnine - lspkind-nvim - cmp-path - cmp-spell - nvim-autopairs - cmp_luasnip - luasnip - lsp-format - - # git stuff - vim-fugitive - gitsigns-nvim - fzf-checkout-vim - - # Clojure stuff - conjure - vim-sexp - vim-sexp-mappings-for-regular-people - # testing - #vim-processing - #vim-tidal - ]; - }; - - customRC = '' - set tabstop=2 - set showmatch - set shiftwidth=2 - set noexpandtab - set autoindent - set undofile - set signcolumn=auto:4 - - " set foldmethod=indent " fold based on indent - set number - set nocompatible - set relativenumber - set showtabline=2 - set noexpandtab - set autowriteall - syntax on - set list lcs=tab:\|\ - filetype plugin on - - set termguicolors - let ayucolor="mirage" - colorscheme ayu - - " set spell - set spelllang=en_gb - set ignorecase - set smartcase - set incsearch - " if hidden is not set, TextEdit might fail. - 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. - set updatetime=300 - " don't give |ins-completion-menu| messages. - set shortmess+=c - " always show signcolumns - set signcolumn=yes - - " window - nmap wh :topleft vnew - nmap wl :botright vnew - nmap wk :topleft new - nmap wj :botright new - - " tabs - nmap rt :retab! - vmap rt :retab! - - let mapleader = "\" - let maplocalleader = "," - - " moving splits with vim movements. - :tnoremap h - :tnoremap j - :tnoremap k - :tnoremap l - :inoremap h - :inoremap j - :inoremap k - :inoremap l - :nnoremap h - :nnoremap j - :nnoremap k - :nnoremap l - :nnoremap "=strftime("%Y-%m-%d %H:%M") - :inoremap =strftime("%Y-%m-%d %H:%M") - :inoremap =strftime("%H:%M") - - " tidal nvim terminal - " let g:tidal_target = "terminal" - - " telescope - " Find files using Telescope command-line sugar. - nnoremap ff Telescope find_files - nnoremap fg Telescope live_grep - nnoremap fb Telescope buffers - nnoremap fh Telescope help_tags - nnoremap ft Telescope tags - - " exit normal mode in terminal - :tnoremap - - " Sexp in Conjure (since it's fennel) - " let g:sexp_filetypes = [ "fennel" ] - - let g:rainbow_active = 0 - autocmd BufReadPost,BufNewFile c,clj,cljs RainbowParenthesesToggleAll - - " general commands - map t :NERDTreeToggle - map s :w - map q :wq - map r :RainbowParenthesesToggleAll - map :noh - nnoremap Y y$ - " center moving - nnoremap n nzzzv - nnoremap N Nzzzv - nnoremap J mzJ'z - " undo points - inoremap , ,u - inoremap . .u - inoremap ? ?u - inoremap ! !u - inoremap ) )u - inoremap [ [u - inoremap ] ]u - inoremap { {u - inoremap ( (u - inoremap } }u - " moving text - vnoremap J :m '>+1gv=gv - vnoremap K :m '>-2gv=gv - inoremap :m .+1== - inoremap :m .-2== - nnoremap j :m .+1== - nnoremap k :m .-2== - " Pasting - :map sy :!xclip -i - :vmap sy "*y - :map sp :r!xclip -o - - " barbar - nnoremap gT :BufferPrevious - nnoremap gt :BufferNext - nnoremap gj :BufferPick - nnoremap gq :BufferClose - - " git - nnoremap ga :G fetch --all - nmap gs :G - nmap gh :diffget //3 - nmap gl :diffget //2 - nmap gb :GBranches - nnoremap gp :Git! push - nnoremap gd :Gdiff - nnoremap gc :G commit -v -q %:p - - " kitaab - map zs :ZettelSearch - map zo :ZettelOpen - map zn :ZettelNew - map zd :VimwikiDiary - map zf :Telescope oldfiles only_cwd=true - map wt :VimwikiMakeTomorrowDiaryNote - map wd :VimwikiMakeYesterdayDiaryNote - let g:vimwiki_list = [{ 'path': '~/kitaab/vimwiki', 'auto_tags': 1, 'auto_diary_index': 1, 'auto_generate_links': 1 }] - - let g:mapleader="\" - let g:dashboard_default_executive = 'telescope' - nmap ss :SessionSave - nmap sl :SessionLoad - nnoremap fh :DashboardFindHistory - nnoremap ff :DashboardFindFile - nnoremap fm :DashboardJumpMark - nnoremap cn :DashboardNewFile - autocmd FileType dashboard set showtabline=0 | autocmd WinLeave set showtabline=2 - - " fzf - " not sure we even use this - let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } } - - " lsp commands - nnoremap vd :lua vim.lsp.buf.definition() - nnoremap vi :lua require('telescope.builtin').lsp_implementation() - nnoremap vsh :lua vim.lsp.buf.signature_help() - nnoremap vrr :lua require('telescope.builtin').lsp_references() - nnoremap vrn :lua vim.lsp.buf.rename() - nnoremap vh :lua vim.lsp.buf.hover() - nnoremap vca :lua vim.lsp.buf.code_action() - nnoremap vsd :lua rim.lsp.diagnostic.show_line_diagnostics(); vim.lsp.util.show_line_diagnostics() - nnoremap vn :lua vim.lsp.diagnostic.goto_next() - nnoremap vll :call LspLocationList() - nnoremap va :lua require('telescope.builtin').lsp_code_actions(require('telescope.themes').get_cursor()) - - " lua config - lua <vt', ':call v:lua.toggle_diagnostics()', {noremap = true, silent = true}) - - - -- autopairs - require('nvim-autopairs').setup{} - - -- Setup nvim-cmp. - local has_words_before = function() - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil - end - - local luasnip = require("luasnip") - local cmp = require('cmp') - local cmp_autopairs = require('nvim-autopairs.completion.cmp') - local t = function(str) - return vim.api.nvim_replace_termcodes(str, true, true, true) - end - local check_back_space = function() - local col = vim.fn.col(".") - 1 - return col == 0 or vim.fn.getline("."):sub(col, col):match("%s") ~= nil - end - cmp.setup { - formatting = { - format = function(entry, vim_item) - -- fancy icons and a name of kind - vim_item.kind = require("lspkind").presets.default[vim_item.kind] .. - " " .. vim_item.kind - -- set a name for each source - vim_item.menu = ({ - buffer = "[Buffer]", - nvim_lsp = "[LSP]", - cmp_tabnine = "[TabNine]", - look = "[Look]", - path = "[Path]", - spell = "[Spell]", - calc = "[Calc]", - })[entry.source.name] - return vim_item - end - }, - mapping = { - [''] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.close(), - [''] = cmp.mapping.confirm({ - behavior = cmp.ConfirmBehavior.Insert, - select = true - }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, {"i", "s"}), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - }, - sources = { - {name = 'buffer'}, {name = 'nvim_lsp'}, - {name = "look"}, {name = "path"}, - {name = 'cmp_tabnine'}, {name = "calc"}, {name = "spell"}, - {name = 'cmp-conjure'} - }, - completion = {completeopt = 'menu,menuone,noinsert'} - } - cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = ' ' } })) - -- TabNine cmp - local tabnine = require('cmp_tabnine.config') - tabnine:setup({max_lines = 1000, max_num_results = 20, sort = true}) - - -- Setup lspconfig - require("lsp-format").setup {} - - local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) - require('lspconfig').clojure_lsp.setup {on_attach = require "lsp-format".on_attach} - require('lspconfig').rnix.setup {on_attach = require "lsp-format".on_attach} - require('lspconfig').pylsp.setup {on_attach = require "lsp-format".on_attach} - require('lspconfig').terraform_lsp.setup {on_attach = require "lsp-format".on_attach} - - require('gitsigns').setup { sign_priority=80 } - - -- treesitter - require('nvim-treesitter.configs').setup { ensure_installed={'nix', 'clojure', 'python', 'typescript'}} - - -- lualine - require('nvim-gps').setup {} - local gps = require('nvim-gps') - require('lualine').setup { - sections = { - lualine_c = { - 'filename', { gps.get_location, condition=gps.is_available }, - }, - lualine_y = { - function() - local msg = 'No Active Lsp' - local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') - local clients = vim.lsp.get_active_clients() - if next(clients) == nil then - return msg - end - for _, client in ipairs(clients) do - local filetypes = client.config.filetypes - if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then - return client.name - end - end - return msg - end - }, - } - } - - -- nvim-lint - require('lint').linters_by_ft = { - markdown = {'vale'}, - } - - -- f_term - local map = vim.api.nvim_set_keymap - local opts = { noremap = true, silent = true } - map('n', '', 'lua require("FTerm").toggle()', opts) - map('t', '', 'lua require("FTerm").toggle()', opts) - EOF - ''; - }; - } - ) - ]; -} diff --git a/users/profiles/desktop/default.nix b/users/profiles/desktop/default.nix index a13877d1..d7edb2e9 100644 --- a/users/profiles/desktop/default.nix +++ b/users/profiles/desktop/default.nix @@ -65,6 +65,7 @@ in xclip xdotool rofi + rofimoji obs-studio lightdm dunst diff --git a/users/profiles/desktop/rofi/emojimenu.rasi b/users/profiles/desktop/rofi/emojimenu.rasi new file mode 100644 index 00000000..662aa044 --- /dev/null +++ b/users/profiles/desktop/rofi/emojimenu.rasi @@ -0,0 +1,15 @@ +/* -*- mode: css; -*- */ + +@import "config.rasi" + +listview { + columns: 4; +} + +textbox-icon { + str: "๐ŸŽ‘"; +} + +prompt { + enabled: false; +} diff --git a/users/profiles/desktop/sxhkdrc b/users/profiles/desktop/sxhkdrc index 1220bd9e..eacd8525 100644 --- a/users/profiles/desktop/sxhkdrc +++ b/users/profiles/desktop/sxhkdrc @@ -33,6 +33,9 @@ super + space super + Tab rofi -show window -show-icons -theme theme/windowmenu.rasi +super + e + rofimoji --rofi-args "-theme theme/emojimenu.rasi" --skin-tone moderate --action copy + super + p passmenu From 105984b0124b3a51cc561c3cf0efbc315e9e4888 Mon Sep 17 00:00:00 2001 From: Anish L Date: Sat, 16 Apr 2022 17:45:04 +1000 Subject: [PATCH 02/13] fix lock being broken --- users/profiles/desktop/bin/powermenu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/profiles/desktop/bin/powermenu b/users/profiles/desktop/bin/powermenu index 001c14a4..5846b2a2 100755 --- a/users/profiles/desktop/bin/powermenu +++ b/users/profiles/desktop/bin/powermenu @@ -11,7 +11,7 @@ log_out="๏ฆ\tLogout" # Variable passed to rofi options="$power_off\n$reboot\n$lock\n$suspend\n$log_out" -case "$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)" in +case "$(echo -e "$options" | $rofi_command -dmenu)" in "๏€‘ Shutdown") systemctl poweroff ;; @@ -19,7 +19,7 @@ case "$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)" in systemctl reboot ;; "๏ ฝ Lock") - zzz # TODO doesn't do anything + dm-tool lock ;; "๏ฆฑ Sleep") dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause From bcbad668c547e83c3ed7ba37394c489654bf78b2 Mon Sep 17 00:00:00 2001 From: Anish L Date: Mon, 18 Apr 2022 00:26:27 +1000 Subject: [PATCH 03/13] cube up --- flake.nix | 13 +++--- hosts/cube/configuration.nix | 58 +++++++++++++++++++++++++++ hosts/cube/default.nix | 10 +++++ hosts/cube/hardware-configuration.nix | 29 ++++++++++++++ 4 files changed, 104 insertions(+), 6 deletions(-) create mode 100644 hosts/cube/configuration.nix create mode 100644 hosts/cube/default.nix create mode 100644 hosts/cube/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 3967d4f1..4f6f2267 100644 --- a/flake.nix +++ b/flake.nix @@ -103,9 +103,10 @@ #modules = [ ]; # nixos-hardware.nixosModules.lenovo-thinkpad # Yubikey }; - box = { }; - hypercube = { }; - work = { }; + cube = { }; + # box = { }; + # hypercube = { }; + # work = { }; }; importables = rec { profiles = digga.lib.rakeLeaves ./profiles // { @@ -130,11 +131,11 @@ profiles = digga.lib.rakeLeaves ./users/profiles; suites = with profiles; rec { hmBase = [ direnv git ]; - #gui = [ base profiles.firefox profiles.desktop ]; + gui = [ hmBase profiles.firefox profiles.desktop ]; }; }; users = { - nixos = { suites, ... }: { imports = suites.base; }; + nixos = { suites, ... }: { imports = suites.hmBase; }; curve = { suites, ... }: { imports = suites.gui; }; }; # digga.lib.importers.rakeLeaves ./users/hm; }; @@ -154,7 +155,7 @@ }; }; - checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy.lib; + # checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy.lib; } ; } diff --git a/hosts/cube/configuration.nix b/hosts/cube/configuration.nix new file mode 100644 index 00000000..7ce9a331 --- /dev/null +++ b/hosts/cube/configuration.nix @@ -0,0 +1,58 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ]; + + # Use the GRUB 2 boot loader. + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only + + networking.hostName = "cube"; # Define your hostname. + + # Set your time zone. + time.timeZone = "Australia/Brisbane"; + + # Use flakes + nix = { + package = pkgs.nixFlakes; # or versioned attributes like nix_2_7 + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + + # The global useDHCP flag is deprecated, therefore explicitly set to false here. + # Per-interface useDHCP will be mandatory in the future, so this generated config + # replicates the default behaviour. + networking.useDHCP = false; + networking.interfaces.ens3.useDHCP = true; + + # Define a user account. Don't forget to set a password with โ€˜passwdโ€™. + users.users.anish = { + isNormalUser = true; + extraGroups = [ "wheel" ]; # Enable โ€˜sudoโ€™ for the user. + openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDM0Zvei46x/yZl/IeBCq6+IYQQ0avulzVyBysF9cPigZMCybWRV7IEU+E3k9t6JrbdbdGfJkcZIWmsWDdKS8W8mBnZpVoT0ffLynu8JQ/TKdGm4Qv6bgUeKNrGsNv0ZPs2CDaGSLj0oJfRF7Ko10tcLP0vW+yujrh+y6TH/vVzJioaV4TGvtCUpn+wEQah9ROwPQLUUofsSWdnRsDJ/gp37zXWs4l5wyjSKtP3O9RZUP7kBekbSqEgSXiTk0oUQSVqIWl9NDiP6onk/gSOjXsR/JPqsSN/XI/c/yj6gyY0f51Ru2D7iBxuMJIJcWV+rU6coIj+ULcQWLzt/7TI8jq5AOOzI/ll4zbL24Eo84Rz+TP9tvMMhDZ0VaMN22AJ8qQEjc5P09tWKsX7Jg39XelyV1jHXncE4yvIE9F4RSCHzWCeKeXakizQNuzSaxTxIExRFYHjNW5bR6+3MTGwVrEIXU+qML+0yFTR86MT+tdY5AreAJQLwbog79O1NupeXJE= anish@curve" ]; + }; + + # List packages installed in system profile. To search, run: + # $ nix search wget + environment.systemPackages = with pkgs; [ + vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + ]; + + services.openssh.enable = true; + + # THIS VALUE DETERMINES THE nixOS RELEASE FROM WHICH THE DEFAULT + # SETTINGS FOR STATEFUL DATA, LIKE FILE LOCATIONS AND DATABASE VERSIONS + # ON YOUR SYSTEM WERE TAKEN. iTโ€˜S PERFECTLY FINE AND RECOMMENDED TO LEAVE + # THIS VALUE AT THE RELEASE VERSION OF THE FIRST INSTALL OF THIS SYSTEM. + # BEFORE CHANGING THIS VALUE READ THE DOCUMENTATION FOR THIS OPTION + # (E.G. MAN CONFIGURATION.NIX OR ON HTTPS://NIXOS.ORG/NIXOS/OPTIONS.HTML). + system.stateVersion = "21.11"; # DID YOU READ THE COMMENT? + +} + diff --git a/hosts/cube/default.nix b/hosts/cube/default.nix new file mode 100644 index 00000000..d93a24f2 --- /dev/null +++ b/hosts/cube/default.nix @@ -0,0 +1,10 @@ +{ profiles, suites, ... }: +{ + imports = [ + ./configuration.nix + ]; # ++ [suites.cube]; + + #home-manager.users.anish = { self, suites, ... }: { + # imports = [ ] ++ suites.hmBase; + #}; +} diff --git a/hosts/cube/hardware-configuration.nix b/hosts/cube/hardware-configuration.nix new file mode 100644 index 00000000..323fc578 --- /dev/null +++ b/hosts/cube/hardware-configuration.nix @@ -0,0 +1,29 @@ +# Do not modify this file! It was generated by โ€˜nixos-generate-configโ€™ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/9233d8be-539f-43c8-9b83-84b5b4d72a93"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E00D-9070"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} From 25144fb6dd8059aea718759e1b26a80846fa78a1 Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 19 Apr 2022 17:53:23 +1000 Subject: [PATCH 04/13] rofi screenshot stuff --- users/profiles/desktop/bin/screenshot | 1 + users/profiles/desktop/default.nix | 1 + users/profiles/desktop/rofi/config.rasi | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/users/profiles/desktop/bin/screenshot b/users/profiles/desktop/bin/screenshot index 8e7b1d1e..a31c1bad 100755 --- a/users/profiles/desktop/bin/screenshot +++ b/users/profiles/desktop/bin/screenshot @@ -1,2 +1,3 @@ #!/usr/bin/env sh scrot ~/screenshots/%b%d::%H%M%S.png; +xclip -i < ~/screenshots/%b%d::%H%M%S.png; diff --git a/users/profiles/desktop/default.nix b/users/profiles/desktop/default.nix index d7edb2e9..84b2081d 100644 --- a/users/profiles/desktop/default.nix +++ b/users/profiles/desktop/default.nix @@ -154,6 +154,7 @@ in password-background-color = "#1E2029" window-color = "#181a23" border-color = "#181a23" + active-monitor=1 ''; }; windowManager.bspwm.enable = true; diff --git a/users/profiles/desktop/rofi/config.rasi b/users/profiles/desktop/rofi/config.rasi index cbe6961b..238f046e 100644 --- a/users/profiles/desktop/rofi/config.rasi +++ b/users/profiles/desktop/rofi/config.rasi @@ -46,7 +46,7 @@ configuration { /**** Layout ****/ window { width: 1000px; - y-offset: -50px; + y-offset: -150px; anchor: north; location: center; border: 1px; From 4eb73085e4ec259f3a51878d7d3b457ab1a50f11 Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 19 Apr 2022 17:53:36 +1000 Subject: [PATCH 05/13] disable pulse audio --- hosts/curve/configuration.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/hosts/curve/configuration.nix b/hosts/curve/configuration.nix index 3947874e..6cf0cbc7 100644 --- a/hosts/curve/configuration.nix +++ b/hosts/curve/configuration.nix @@ -45,7 +45,6 @@ # }; sound.enable = true; - hardware.pulseaudio.enable = true; services.xserver.libinput.enable = true; } From 3a407a2d6cacf4fc5c877ce7d4cc6823dbf05a0f Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 19 Apr 2022 17:53:59 +1000 Subject: [PATCH 06/13] some other stuff --- profiles/core/default.nix | 1 + users/anish/default.nix | 3 +- users/profiles/nvim/default.nix | 161 -------------------------------- 3 files changed, 2 insertions(+), 163 deletions(-) diff --git a/profiles/core/default.nix b/profiles/core/default.nix index 837bc57d..4947e40e 100644 --- a/profiles/core/default.nix +++ b/profiles/core/default.nix @@ -154,6 +154,7 @@ in # quick ssh sm = "ssh mossnet.lan"; ss = "ssh sealight.xyz"; + sc = "ssh lakhwara.com"; # cube }; }; diff --git a/users/anish/default.nix b/users/anish/default.nix index 4ec5f91c..1a43a8eb 100644 --- a/users/anish/default.nix +++ b/users/anish/default.nix @@ -1,10 +1,9 @@ -{hmUsers, ...}: +{ hmUsers, ... }: { #home-manager.users = { inherit (hmUsers) anish; }; users.users.anish = { - hashedPassword = "MVHHpy9gbe3ow"; description = "Personal user for Anish"; isNormalUser = true; extraGroups = [ "wheel" "audio" ]; diff --git a/users/profiles/nvim/default.nix b/users/profiles/nvim/default.nix index be91f7c3..04370244 100644 --- a/users/profiles/nvim/default.nix +++ b/users/profiles/nvim/default.nix @@ -1,164 +1,3 @@ -{ pkgs, ... }: -let - customPlugins = { - vim-zettel = pkgs.vimUtils.buildVimPlugin { - name = "vim-zettel"; - src = pkgs.fetchFromGitHub { - owner = "michal-h21"; - repo = "vim-zettel"; - rev = "929d90eec62e6f693c2702d2b6f76a93f2f1689d"; - sha256 = "1fzKmknfVlEYwqeXgbKITbb2/PJ023iJyMz6vak3qh4="; - }; - }; - lsp-format = pkgs.vimUtils.buildVimPlugin { - name = "lsp-format"; - src = pkgs.fetchFromGitHub { - owner = "lukas-reineke"; - repo = "lsp-format.nvim"; - rev = "84e117b99bb2bc0d0c8122e2b256046f046f8aff"; - sha256 = "rs3NTZwWdsmBGXnrgUeVxUiNjbN/ULxJHifPYJD9mT4="; - }; - }; - vim-tidal = pkgs.vimUtils.buildVimPluginFrom2Nix { - name = "vim-tidal"; - src = pkgs.fetchgit { - url = "https://github.com/tidalcycles/vim-tidal"; - # version 1.4.6 - rev = "52134979252757a5736ae09cb9fc6ae3cc04daef"; - sha256 = "c12v9+s/JspQ9Am291RFI7eg0UAeXGDvJ5lK+7ukOb0="; - }; - dependencies = [ ]; - }; - tidal = pkgs.stdenv.mkDerivation { - name = "tidal"; - src = pkgs.fetchgit { - url = "https://github.com/tidalcycles/vim-tidal"; - # version 1.4.6 - rev = "52134979252757a5736ae09cb9fc6ae3cc04daef"; - sha256 = "c12v9+s/JspQ9Am291RFI7eg0UAeXGDvJ5lK+7ukOb0="; - }; - preConfigure = '' - mkdir -p $out/bin - substituteInPlace Makefile \ - --replace '/usr/local' "$out" \ - ''; - }; - }; - - my-python-packages = python-packages: with python-packages; [ - tasklib - pynvim - six - python-lsp-server - pylsp-mypy - pylint - black - # other python packages you want - ]; - python-with-my-packages = pkgs.python3.withPackages my-python-packages; -in -{ - environment.variables.EDITOR = "nvim"; - environment.shellAliases = { - k = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex; cd $OLDPWD"; - kz = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex -c :ZettelNew; cd $OLDPWD"; - }; - - #environment.systemPackages = with customPlugins; [ tidal ]; - home-manager.users.anish.programs.neovim = { - enable = true; - - extraConfig = '' - set tabstop=2 - set showmatch - set shiftwidth=2 - set noexpandtab - set autoindent - set undofile - set signcolumn=auto:4 - - " set foldmethod=indent " fold based on indent - set number - set nocompatible - set relativenumber - set showtabline=2 - set noexpandtab - set autowriteall - syntax on - set list lcs=tab:\|\ - filetype plugin on - - set termguicolors - colorscheme ayu-mirage - - " set spell - set spelllang=en_gb - set ignorecase - set smartcase - set incsearch - " if hidden is not set, TextEdit might fail. - 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. - set updatetime=300 - " don't give |ins-completion-menu| messages. - set shortmess+=c - " always show signcolumns - set signcolumn=yes - - " window - nmap wh :topleft vnew - nmap wl :botright vnew - nmap wk :topleft new - nmap wj :botright new - - " tabs - nmap rt :retab! - vmap rt :retab! - - let mapleader = "\" - let maplocalleader = "," - - " moving splits with vim movements. - :tnoremap h - :tnoremap j - :tnoremap k - :tnoremap l - :inoremap h - :inoremap j - :inoremap k - :inoremap l - :nnoremap h - :nnoremap j - :nnoremap k - :nnoremap l - :nnoremap "=strftime("%Y-%m-%d %H:%M") - :inoremap =strftime("%Y-%m-%d %H:%M") - :inoremap =strftime("%H:%M") - - " tidal nvim terminal - let g:tidal_target = "terminal" - - " telescope - " Find files using Telescope command-line sugar. - nnoremap ff Telescope find_files - nnoremap fg Telescope live_grep - nnoremap fb Telescope buffers - nnoremap fh Telescope help_tags - nnoremap ft Telescope tags - - " exit normal mode in terminal - :tnoremap - - " Sexp in Conjure (since it's fennel) - " let g:sexp_filetypes = [ "fennel" ] - - let g:rainbow_active = 0 - autocmd BufReadPost,BufNewFile c,clj,cljs RainbowParenthesesToggleAll " general commands map t :NERDTreeToggle From 7d693a37d371f779648fc6561f16ee28bb0503a7 Mon Sep 17 00:00:00 2001 From: Anish L Date: Tue, 19 Apr 2022 17:56:05 +1000 Subject: [PATCH 07/13] restore nvim --- users/profiles/nvim/default.nix | 162 ++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/users/profiles/nvim/default.nix b/users/profiles/nvim/default.nix index 04370244..bceb3beb 100644 --- a/users/profiles/nvim/default.nix +++ b/users/profiles/nvim/default.nix @@ -1,3 +1,164 @@ +{ pkgs, ... }: +let + customPlugins = { + vim-zettel = pkgs.vimUtils.buildVimPlugin { + name = "vim-zettel"; + src = pkgs.fetchFromGitHub { + owner = "michal-h21"; + repo = "vim-zettel"; + rev = "929d90eec62e6f693c2702d2b6f76a93f2f1689d"; + sha256 = "1fzKmknfVlEYwqeXgbKITbb2/PJ023iJyMz6vak3qh4="; + }; + }; + lsp-format = pkgs.vimUtils.buildVimPlugin { + name = "lsp-format"; + src = pkgs.fetchFromGitHub { + owner = "lukas-reineke"; + repo = "lsp-format.nvim"; + rev = "84e117b99bb2bc0d0c8122e2b256046f046f8aff"; + sha256 = "rs3NTZwWdsmBGXnrgUeVxUiNjbN/ULxJHifPYJD9mT4="; + }; + }; + vim-tidal = pkgs.vimUtils.buildVimPluginFrom2Nix { + name = "vim-tidal"; + src = pkgs.fetchgit { + url = "https://github.com/tidalcycles/vim-tidal"; + # version 1.4.6 + rev = "52134979252757a5736ae09cb9fc6ae3cc04daef"; + sha256 = "c12v9+s/JspQ9Am291RFI7eg0UAeXGDvJ5lK+7ukOb0="; + }; + dependencies = [ ]; + }; + tidal = pkgs.stdenv.mkDerivation { + name = "tidal"; + src = pkgs.fetchgit { + url = "https://github.com/tidalcycles/vim-tidal"; + # version 1.4.6 + rev = "52134979252757a5736ae09cb9fc6ae3cc04daef"; + sha256 = "c12v9+s/JspQ9Am291RFI7eg0UAeXGDvJ5lK+7ukOb0="; + }; + preConfigure = '' + mkdir -p $out/bin + substituteInPlace Makefile \ + --replace '/usr/local' "$out" \ + ''; + }; + }; + + my-python-packages = python-packages: with python-packages; [ + tasklib + pynvim + six + python-lsp-server + pylsp-mypy + pylint + black + # other python packages you want + ]; + python-with-my-packages = pkgs.python3.withPackages my-python-packages; +in +{ + environment.variables.EDITOR = "nvim"; + environment.shellAliases = { + k = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex; cd $OLDPWD"; + kz = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex -c :ZettelNew; cd $OLDPWD"; + }; + + #environment.systemPackages = with customPlugins; [ tidal ]; + home-manager.users.anish.programs.neovim = { + enable = true; + + extraConfig = '' + set tabstop=2 + set showmatch + set shiftwidth=2 + set noexpandtab + set autoindent + set undofile + set signcolumn=auto:4 + + " set foldmethod=indent " fold based on indent + set number + set nocompatible + set relativenumber + set showtabline=2 + set noexpandtab + set autowriteall + syntax on + set list lcs=tab:\|\ + filetype plugin on + + set termguicolors + colorscheme ayu-mirage + + " set spell + set spelllang=en_gb + set ignorecase + set smartcase + set incsearch + " if hidden is not set, TextEdit might fail. + 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. + set updatetime=300 + " don't give |ins-completion-menu| messages. + set shortmess+=c + " always show signcolumns + set signcolumn=yes + + " window + nmap wh :topleft vnew + nmap wl :botright vnew + nmap wk :topleft new + nmap wj :botright new + + " tabs + nmap rt :retab! + vmap rt :retab! + + let mapleader = "\" + let maplocalleader = "," + + " moving splits with vim movements. + :tnoremap h + :tnoremap j + :tnoremap k + :tnoremap l + :inoremap h + :inoremap j + :inoremap k + :inoremap l + :nnoremap h + :nnoremap j + :nnoremap k + :nnoremap l + :nnoremap "=strftime("%Y-%m-%d %H:%M") + :inoremap =strftime("%Y-%m-%d %H:%M") + :inoremap =strftime("%H:%M") + + " tidal nvim terminal + let g:tidal_target = "terminal" + + " telescope + " Find files using Telescope command-line sugar. + nnoremap ff Telescope find_files + nnoremap fg Telescope live_grep + nnoremap fb Telescope buffers + nnoremap fh Telescope help_tags + nnoremap ft Telescope tags + + " exit normal mode in terminal + :tnoremap + + " Sexp in Conjure (since it's fennel) + " let g:sexp_filetypes = [ "fennel" ] + + let g:rainbow_active = 0 + autocmd BufReadPost,BufNewFile c,clj,cljs RainbowParenthesesToggleAll " general commands map t :NERDTreeToggle @@ -351,3 +512,4 @@ vimAlias = true; }; } + From 05a39713f4ceb3eb804870d606526d18ed84d553 Mon Sep 17 00:00:00 2001 From: Anish L Date: Wed, 20 Apr 2022 21:01:01 +1000 Subject: [PATCH 08/13] playing with polybar --- users/profiles/desktop/polybar/config | 592 +++++++++++----------- users/profiles/desktop/polybar/config.bak | 385 ++++++++++++++ 2 files changed, 676 insertions(+), 301 deletions(-) create mode 100644 users/profiles/desktop/polybar/config.bak diff --git a/users/profiles/desktop/polybar/config b/users/profiles/desktop/polybar/config index 6d89840e..d0cac16a 100644 --- a/users/profiles/desktop/polybar/config +++ b/users/profiles/desktop/polybar/config @@ -29,357 +29,347 @@ accent = #604c7e [global/wm] margin-top = 0 margin-bottom = 34 +[bar/mybar] +; monitor = VGA-1 -[bar/main] -monitor = ${env:MONITOR} -monitor-strict = true -enable-ipc = true -wm-restack = bspwm -# REQUIRED to move the window with hideit.sh -override-redirect = true +override-redirect = false + +; Put the bar at the bottom of the screen +bottom = false + +; Prefer fixed center position for the `modules-center` block fixed-center = true +width = 100% +height = 29 + +offset-x = +offset-y = + +; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) background = ${colors.bg} + +; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) foreground = ${colors.fg} -width = 100% -height = 34 -offset-x = 0 -offset-y = 0 -# bottom = true +line-size = 0 +line-color = #fff -overline-size = 0 -overline-color = #f00 -underline-size = 0 -underline-color = #00f +; Number of spaces to add at the beginning/end of the bar +; Individual side values can be defined using: +; padding-{left,right} +padding-right = 1 +padding-left = 0 -border-bottom-size = 0 -border-top-size = 1 -border-color = ${colors.bg-dark} +; Number of spaces to add before/after each module +; Individual side values can be defined using: +; module-margin-{left,right} +module-margin = 0 -padding-left = 2 -padding-right = 2 -module-margin-left = 0 -module-margin-right = 0 +font-0 = "Iosevka Term:pixelsize=13;4" +font-1 = "Iosevka Term:pixelsize=6;1" -font-0 = "Fira Code:pixelsize=9;2" -font-1 = "Wuncon Siji:pixelsize=12;2" -font-2 = "Siji:pixelsize=10;2" +; Add module mpd for artist - title info +modules-left = i3 sps mpd_i sps mpd sps pulseaudio +modules-center = title +modules-right = network sps memory sps cpu sps date -; modules-left = volume pad cpu memory pad pkg mail -modules-left = pulseaudio pad cpu memory pad fs -modules-center = bspwm -modules-right = syncthing redshift wlan pad network-up pad network-down pad battery pad date +; The separator will be inserted between the output of each module +separator = -;tray-position = center -;tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff +; This value is used to add extra spacing between elements +; @deprecated: This parameter will be removed in an upcoming version +spacing = 0 -[module/bspwm] -type = internal/bspwm +; Opacity value between 0.0 and 1.0 used on fade in/out +dim-value = 1.0 + +wm-name = i3 + +tray-position = right + +; If true, the bar will not shift its +; contents when the tray changes +tray-detached = false + +; Tray icon max size +tray-maxsize = 16 + +tray-background = ${colors.bg} +;offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) + +tray-offset-x = 0 +tray-offset-y = 0 + +; Pad the sides of each tray icon +tray-padding = 0 + +; Scale factor for tray clients +tray-scale = 1.0 + +wm-restack = i3 + +dpi-x = 133 +dpi-y = 133 + +enable-ipc = false + +; Fallback click handlers that will be called if +; there's no matching module handler found. +[module/i3] +type = internal/i3 pin-workspaces = true + +strip-wsnumbers = true + +index-sort = true + +; Create click handler used to focus workspace +; Default: true enable-click = true -# ws-icon-0 = 1;๎„ฐ -# ws-icon-1 = 2;๎„ฐ -# ws-icon-2 = 3;๎„ฐ -# ws-icon-3 = 4;๎„ฐ -# ws-icon-4 = 5;๎„ฐ -# ws-icon-5 = 6;๎„ฐ -ws-icon-default = ๎„ฐ +; Create scroll handlers used to cycle workspaces +; Default: true +enable-scroll = true -format = -label-padding = 1 +; Wrap around when reaching the first/last workspace +; Default: true +wrapping-scroll = false + +; Set the scroll cycle direction +; Default: true +reverse-scroll = false +ws-icon-0 = 1;%{T1}๎ž•%{T-} +ws-icon-1 = 2;%{T1}๏‰ฉ%{T-} +ws-icon-2 = 3;%{T1}๎˜“%{T-} +ws-icon-3 = 4;%{T1}๎ž–%{T-} +ws-icon-4 = 5;%{T1}๎ž–%{T-} +ws-icon-5 = 6;%{T1}๏Ÿฐ%{T-} +ws-icon-6 = 7;%{T1}๎žข%{T-} +ws-icon-7 = 8;%{T1}๎žข%{T-} +ws-icon-8 = 9;%{T1}๎žข%{T-} +ws-icon-9 = 0;%{T1}๏ข…%{T-} +ws-icon-default = %{T1}๎žข%{T-} +fuzzy-match = true + + +label-unfocused = %icon% +label-unfocused-padding = 1 +label-unfocused-foreground = ${colors.yellow} label-focused = %icon% -label-focused-background = ${colors.bg-dark} -label-focused-foreground = ${colors.fg} -# label-focused-underline = ${colors.magenta} -; label-focused-foreground = ${xrdb:color2} +label-focused-foreground = ${colors.bg} +label-focused-background = ${colors.yellow} +label-focused-underline = #f92672 label-focused-padding = 1 -label-occupied = %icon% -label-occupied-foreground = ${colors.accent} -label-occupied-padding = 1 - -; label-urgent = %icon% -label-urgent-foreground = ${colors.alert} -; label-urgent-background = ${colors.alert} -label-urgent-padding = 1 - -label-empty = %icon% -label-empty-foreground = ${colors.fg-alt} -label-empty-padding = 1 - [module/date] type = internal/date -interval = 5 -label = %date% %time% -date = %A, %h %d -date-alt = %Y-%m-%d -time = %I:%M %p -time-alt = %H:%M:%S -format-prefix = "๎€–" -format-prefix-padding = 1 -; format-prefix-background = ${colors.bg-alt} -format-prefix-foreground = ${colors.accent} -; format-underline = ${xrdb:color4} +; Seconds to sleep between updates +interval = 1.0 -[module/fs] -type = internal/fs -mount-0 = / -mount-1 = /mnt/projects ; for desktops -mount-2 = /home ; for laptop -interval = 30 +; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string +; NOTE: if you want to use syntax tags here you need to use %%{...} +date = %{T1}๏—ฌ%{T-}%{T2} %d/%a%{T-} -; Available tags: -; (default) -; -; -; -format-mounted = "๎‡˜" -format-mounted-foreground = ${colors.accent} -; Available tokens: -; %mountpoint% -; %type% -; %fsname% -; %percentage_free% -; %percentage_used% -; %total% -; %free% -; %used% -; Default: %mountpoint% %percentage_free%% +; Optional time format +time = %{T2} %H:%M%{T-} -; Available tags: -; (default) -format-unmounted = -label-unmounted = -label-unmounted-foreground = ${colors.fg-alt} +; if `date-alt` or `time-alt` is defined, clicking +; the module will toggle between formats +date-alt = %{T1}๏—ฌ%{T-}%{T2} %a, %d %b %y%{T-} +time-alt = %{T2} %H:%M:%S%{T-} -bar-used-indicator = -bar-used-width = 8 -bar-used-foreground-0 = ${colors.fg} -bar-used-foreground-1 = ${colors.fg} -bar-used-foreground-2 = ${colors.yellow} -bar-used-foreground-3 = ${colors.alert} -bar-used-foreground-4 = ${colors.alert} -bar-used-fill = | -bar-used-empty = ยฆ -bar-used-empty-foreground = ${colors.fg-alt} +label = %date%%time% +label-font = 0 +label-foreground = ${colors.green} -[module/xwindow] -type = internal/xwindow -label = %title:0:80:...% -label-padding-left = 2 +[module/wireless-network] +type = internal/network +interface = wlan0 -; [module/mpd] -; type = internal/mpd -; host = /home/hlissner/.config/mpd/mpd.sock -; -; format-online = -; format-padding = 5 -; -; label-song-maxlen = 45 -; label-song-ellipsis = true -; -; icon-prev = ๏ˆ -; icon-seekb = ๏Š -; icon-stop = ๏ -; icon-play = ๏‹ -; icon-pause = ๏Œ -; icon-next = ๏‘ -; icon-seekf = ๏Ž -; -; icon-random = ๏ด -; icon-repeat = ๏€ž -; -; toggle-on-foreground = ${colors.fg} -; toggle-off-foreground = #66 +label-connected = %essid% +format-connected = +label-connected-foreground = #82b414 + +format-disconnected = +label-disconnected = Not connected +label-disconnected-foreground = #f92672 +label-disconnected-background = #99000000 + +ramp-signal-foreground = #82b414 +ramp-signal-0 = ๏‡ซ +ramp-signal-1 = ๏‡ซ +ramp-signal-2 = ๏‡ซ +ramp-signal-3 = ๏‡ซ +ramp-signal-4 = ๏‡ซ +ramp-signal-5 = ๏‡ซ [module/cpu] type = internal/cpu -interval = 2 -format = -format-prefix = "๎€ฆ" -format-foreground = ${colors.accent} -; format-underline = #f90000 -; label = %percentage%% -format-padding = 1 -bar-load-indicator = -bar-load-width = 8 -bar-load-foreground-0 = ${colors.fg} -bar-load-foreground-1 = ${colors.fg} -bar-load-foreground-2 = ${colors.yellow} -bar-load-foreground-3 = ${colors.alert} -bar-load-foreground-4 = ${colors.alert} -bar-load-fill = | -bar-load-empty = ยฆ -bar-load-empty-foreground = ${colors.fg-alt} +; Seconds to sleep between updates +; Default: 1 +interval = 0.5 + +label = %{T1}๏‹›%{T-}%{T2} %percentage:2%%%{T-} + +label-foreground = ${colors.cyan} [module/memory] type = internal/memory -interval = 3 -format = -format-prefix = "๎€จ" -format-prefix-foreground = ${colors.accent} -; format-underline = #4bffdc -; label = %percentage_used%% -format-padding-left = 1 -; Only applies if is used -bar-used-indicator = -bar-used-width = 8 -bar-used-foreground-0 = ${colors.fg} -bar-used-foreground-1 = ${colors.fg} -bar-used-foreground-2 = ${colors.yellow} -bar-used-foreground-3 = ${colors.alert} -bar-used-foreground-4 = ${colors.alert} -bar-used-fill = | -bar-used-empty = ยฆ -bar-used-empty-foreground = ${colors.fg-alt} +; Seconds to sleep between updates +; Default: 1 +interval = 0.5 +format =