diff options
| author | eric.marin <maarin.eric@gmail.com> | 2025-03-10 08:21:36 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2025-03-10 08:21:36 +0100 |
| commit | f4d45b1821ffd69361d0266247535e95c8552f1b (patch) | |
| tree | b4da3faa9ad14e58b193ab2c1385e8e441da0221 | |
| parent | 2fc4260287471e5fb985411ea3f60d6eb0a854dc (diff) | |
| download | dotfiles-f4d45b1821ffd69361d0266247535e95c8552f1b.tar.gz dotfiles-f4d45b1821ffd69361d0266247535e95c8552f1b.zip | |
changed nvim dashboard
| -rw-r--r-- | hypr/hypridle.conf | 2 | ||||
| -rw-r--r-- | nvim/lua/config/options.lua | 2 | ||||
| -rw-r--r-- | nvim/lua/plugins/dashboard-nvim.lua | 251 | ||||
| -rw-r--r-- | nvim/lua/plugins/lualine.lua | 2 | ||||
| -rw-r--r-- | nvim/lua/plugins/mini-starter.lua | 219 | ||||
| -rwxr-xr-x | scripts/powermenu | 2 | ||||
| -rwxr-xr-x | scripts/set_background | 1 | ||||
| -rw-r--r-- | wallust/templates/niri | 5 | ||||
| -rw-r--r-- | wallust/templates/waybar | 6 | ||||
| -rw-r--r-- | waybar/config | 1 | ||||
| -rw-r--r-- | waybar/style.css | 6 |
11 files changed, 230 insertions, 267 deletions
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index e258a0c..3479819 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -9,6 +9,6 @@ listener { } listener { - timeout = 450 + timeout = 360 on-timeout = loginctl lock-session && niri msg action power-off-monitors } diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 0802c48..bf92bb5 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -34,7 +34,7 @@ opt.backup = false opt.backspace = "indent,eol,start" opt.splitright = true opt.splitbelow = true -opt.autochdir = true +opt.autochdir = false opt.mouse = "a" opt.clipboard = "unnamedplus" opt.modifiable = true diff --git a/nvim/lua/plugins/dashboard-nvim.lua b/nvim/lua/plugins/dashboard-nvim.lua deleted file mode 100644 index 0e60c7e..0000000 --- a/nvim/lua/plugins/dashboard-nvim.lua +++ /dev/null @@ -1,251 +0,0 @@ -Headers = { - { - [[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗ ]], - [[ ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║ ]], - [[ ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║ ]], - [[ ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║ ]], - [[ ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║ ]], - [[ ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ]], - [[ ]], - }, - { - [[ ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓ ]], - [[ ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒ ]], - [[ ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░ ]], - [[ ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ ]], - [[ ▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒ ]], - [[ ░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░ ]], - [[ ░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░ ]], - [[ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ ]], - [[ ░ ░ ░ ░ ░ ░ ░ ░ ]], - [[ ░ ]], - [[ ]], - }, - { - [[ ██████ █████ █████ █████ ███ ]], - [[ ░░██████ ░░███ ░░███ ░░███ ░░░ ]], - [[ ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ ]], - [[ ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ ]], - [[ ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ ]], - [[ ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ ]], - [[ █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ ]], - [[ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ]], - [[ ]], - }, - { - [[ ▐ ▄ ▄▄▄ . ▌ ▐·▪ • ▌ ▄ ·. ]], - [[ •█▌▐█▀▄.▀· ▄█▀▄ ▪█·█▌██ ·██ ▐███▪ ]], - [[ ▐█▐▐▌▐▀▀▪▄▐█▌.▐▌▐█▐█•▐█·▐█ ▌▐▌▐█· ]], - [[ ██▐█▌▐█▄▄▌▐█▌.▐▌ ███ ▐█▌██ ██▌▐█▌ ]], - [[ ▀▀ █▪ ▀▀▀ ▀█▄▀▪. ▀ ▀▀▀▀▀ █▪▀▀▀ ]], - [[ ]], - - }, - { - [[ __ __ ________ ______ __ __ ______ __ __ ]], - [[ | \ | \ \/ \| \ | \ \ \ / \ ]], - [[ | ▓▓\ | ▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ | ▓▓\▓▓▓▓▓▓ ▓▓\ / ▓▓ ]], - [[ | ▓▓▓\| ▓▓ ▓▓__ | ▓▓ | ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓▓\ / ▓▓▓ ]], - [[ | ▓▓▓▓\ ▓▓ ▓▓ \ | ▓▓ | ▓▓\▓▓\ / ▓▓ | ▓▓ | ▓▓▓▓\ ▓▓▓▓ ]], - [[ | ▓▓\▓▓ ▓▓ ▓▓▓▓▓ | ▓▓ | ▓▓ \▓▓\ ▓▓ | ▓▓ | ▓▓\▓▓ ▓▓ ▓▓ ]], - [[ | ▓▓ \▓▓▓▓ ▓▓_____| ▓▓__/ ▓▓ \▓▓ ▓▓ _| ▓▓_| ▓▓ \▓▓▓| ▓▓ ]], - [[ | ▓▓ \▓▓▓ ▓▓ \\▓▓ ▓▓ \▓▓▓ | ▓▓ \ ▓▓ \▓ | ▓▓ ]], - [[ \▓▓ \▓▓\▓▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓ \▓▓▓▓▓▓\▓▓ \▓▓ ]], - [[ ]], - }, - { - [[ ▀███▄ ▀███▀███▀▀▀███ ▄▄█▀▀██▄ ▀████▀ ▀███▀████▀████▄ ▄███▀ ]], - [[ ███▄ █ ██ ▀█▄██▀ ▀██▄ ▀██ ▄█ ██ ████ ████ ]], - [[ █ ███ █ ██ █ ██▀ ▀██ ██▄ ▄█ ██ █ ██ ▄█ ██ ]], - [[ █ ▀██▄ █ ██████ ██ ██ ██▄ █▀ ██ █ █▓ █▀ ██ ]], - [[ █ ▀██▄▓ ██ █ ▄█ ██ ▀▓█ ▓▀ █▓ ▓ █▓▄█▀ ██ ]], - [[ ▓ ▓█▓ █▓ ▄███ ██▀ ▓██▄ █▓ ▓ ▀▓█▀ ██ ]], - [[ ▓ ▀▓▓▓▓ ▓▓ ▓ ▓██ ▓█▓ ▓▓ ▓▀ ▓▓ ▓ ▓▓▓▓▀ ▓▓ ]], - [[ ▓ ▓▓▓ ▓▓ ▓▓█▓▓▓ ▓▓▓ ▓▓▒▒ ▒▓ ▒ ▀▓▓▀ ▓▓ ]], - [[ ▒ ▒ ▒ ▒▓▓▒ ▒▒▒▓▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒▓▒ ▒▒ ▒▒▒ ▒ ▒ ▒▒▒ ]], - [[ ]], - }, - { - [[ ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ]], - [[ ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ]], - [[ ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ]], - [[ ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ]], - [[ ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ]], - [[ ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ]], - [[ ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ]], - [[ ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ]], - [[ ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ]], - [[ ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ]], - [[ ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ]], - [[ ]], - }, - { - [[ ,-. _,---._ __ / \ ]], - [[ / ) .-' `./ / \ ]], - [[ ( ( ,' `/ /| ]], - [[ \ `-" \'\ / | ]], - [[ `. , \ \ / | ]], - [[ /`. ,'-`----Y | ]], - [[ ( ; | ' ]], - [[ | ,-. ,-' | / ]], - [[ | | ( | | / ]], - [[ ) | \ `.___________|/ ]], - [[ `--' `--' ]], - [[ ]], - }, - { - [[ |\ _,,,---,,_ ]], - [[ ZZZzz /,`.-'`' -. ;-;;,_ ]], - [[ |,4- ) )-,_. ,\ ( `'-' ]], - [[ '---''(_/--' `-'\_) ]], - [[ ]], - }, -} - -Quotes = { - { - "", - "I don't care that they stole my idea... I care that they don't have any of their own", - "~ Nikola Tesla", - }, - { - "", - "Make everything as simple as possible, but not simpler.", - "~ Albert Einstein", - }, - { - "", - "Code never lies, comments sometimes do.", - "~ Ron Jeffries", - }, - { - "", - "Good code is its own best documentation.", - "~ Steve McConnell", - }, - { - "", - "I do not fear computers. I fear the lack of them.", - "~ Isaac Asimov", - }, - { - "", - "If a machine is expected to be infallible, it cannot also be intelligent.", - "~ Alan Turing", - }, - { - "", - "Mathematical reasoning may be regarded.", - "~ Alan Turing", - }, - { - "", - "Anti-social behavior is a trait of intelligence in a world full of conformists.", - "~ Nikola Tesla", - }, - { - "", - "We are very, very small, but we are profoundly capable of very, very big things.", - "~ Stephen Hawking", - }, - { - "", - "Quiet people have the loudest minds.", - "~ Stephen Hawking", - }, - { - "", - "An idiot admires complexity, a genius admires simplicity.", - "~ Terry Davis", - }, - { - "", - "It's hardware that makes a machine fast. It's software that makes a fast machine slow.", - "~ Craig Reucassel", - }, - { - "", - "Computer science is no more about computers than astronomy is about telescopes.", - "~ Edsger Dijkstra", - }, - { - "", - "An algorithm must be seen to be believed.", - "~ Donald Knuth", - }, - { - "", - "In theory there is no difference between theory and practice.", - "In practice there is.", - "~ Yogi Berra", - }, - { - "", - "If Java had true garbage collection, most programs would delete themselves upon execution.", - "~ Robert Sewell", - }, - { - "", - "If debugging is the process of removing software bugs,", - "then programming must be the process of putting them in.", - "~ Edsger Dijkstra", - }, - { - "", - "Most of you are familiar with the virtues of a programmer.", - "There are three, of course: laziness, impatience, and hubris.", - "~ Larry Wall", - }, - { - "", - "The question of whether computers can think is like the question of whether submarines can swim.", - "~ Edsger Dijkstra", - } -} - - -math.randomseed(os.time()) - -local header = function() - return Headers[math.random(#Headers)] -end - -local footer = function() - return Quotes[math.random(#Quotes)] -end - -local init = function() - local keymap = vim.keymap - keymap.set("n", "<Space>d", ":Dashboard<Enter>", - { noremap = true, silent = true, desc = "Dashboard" }) -- Dashboard -end - -local hyper = { - theme = "hyper", - shortcut_type = "number", - change_to_vcs_root = true, - hide = { - statusline = false - }, - config = { - header = header(), - shortcut = { - { action = "ene | lua require('lualine')", desc = "New File", icon = " ", key = "n" }, - { action = "Lazy", desc = "Plugin Manager", icon = " ", key = "p" }, - { action = "Oil --float", desc = "File browser", icon = " ", key = "b" }, - { action = "Neorg index", desc = "Neorg Index", icon = " ", key = "i" } - }, - packages = { enable = true }, - project = { enable = true }, - mru = { limit = 5 }, - footer = footer, - }, -} - -return { - "eric-marin/dashboard-nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - lazy = false, - init = init, - opts = hyper -} diff --git a/nvim/lua/plugins/lualine.lua b/nvim/lua/plugins/lualine.lua index f45a5a5..495822e 100644 --- a/nvim/lua/plugins/lualine.lua +++ b/nvim/lua/plugins/lualine.lua @@ -2,7 +2,7 @@ local opts = { options = { theme = "auto", globalstatus = true, - disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview" } + disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview", "ministarter" } }, sections = { lualine_a = { "mode" }, diff --git a/nvim/lua/plugins/mini-starter.lua b/nvim/lua/plugins/mini-starter.lua new file mode 100644 index 0000000..8f66c4d --- /dev/null +++ b/nvim/lua/plugins/mini-starter.lua @@ -0,0 +1,219 @@ +Headers = { + [[ + ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗ + ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║ + ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║ + ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║ + ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║ + ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ + ]], + [[ + ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓ + ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒ + ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░ + ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ + ▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒ + ░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░ + ░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░ + ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ + ░ ░ ░ ░ ░ ░ ░ ░ + ░ + ]], + [[ + ██████ █████ █████ █████ ███ + ░░██████ ░░███ ░░███ ░░███ ░░░ + ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ + ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ + ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ + ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ + █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ + ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ + ]], + [[ + ▐ ▄ ▄▄▄ . ▌ ▐·▪ • ▌ ▄ ·. + •█▌▐█▀▄.▀· ▄█▀▄ ▪█·█▌██ ·██ ▐███▪ + ▐█▐▐▌▐▀▀▪▄▐█▌.▐▌▐█▐█•▐█·▐█ ▌▐▌▐█· + ██▐█▌▐█▄▄▌▐█▌.▐▌ ███ ▐█▌██ ██▌▐█▌ + ▀▀ █▪ ▀▀▀ ▀█▄▀▪. ▀ ▀▀▀▀▀ █▪▀▀▀ + ]], + [[ + __ __ ________ ______ __ __ ______ __ __ + | \ | \ \/ \| \ | \ \ \ / \ + | ▓▓\ | ▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ | ▓▓\▓▓▓▓▓▓ ▓▓\ / ▓▓ + | ▓▓▓\| ▓▓ ▓▓__ | ▓▓ | ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓▓\ / ▓▓▓ + | ▓▓▓▓\ ▓▓ ▓▓ \ | ▓▓ | ▓▓\▓▓\ / ▓▓ | ▓▓ | ▓▓▓▓\ ▓▓▓▓ + | ▓▓\▓▓ ▓▓ ▓▓▓▓▓ | ▓▓ | ▓▓ \▓▓\ ▓▓ | ▓▓ | ▓▓\▓▓ ▓▓ ▓▓ + | ▓▓ \▓▓▓▓ ▓▓_____| ▓▓__/ ▓▓ \▓▓ ▓▓ _| ▓▓_| ▓▓ \▓▓▓| ▓▓ + | ▓▓ \▓▓▓ ▓▓ \\▓▓ ▓▓ \▓▓▓ | ▓▓ \ ▓▓ \▓ | ▓▓ + \▓▓ \▓▓\▓▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓ \▓▓▓▓▓▓\▓▓ \▓▓ + ]], + [[ + ▀███▄ ▀███▀███▀▀▀███ ▄▄█▀▀██▄ ▀████▀ ▀███▀████▀████▄ ▄███▀ + ███▄ █ ██ ▀█▄██▀ ▀██▄ ▀██ ▄█ ██ ████ ████ + █ ███ █ ██ █ ██▀ ▀██ ██▄ ▄█ ██ █ ██ ▄█ ██ + █ ▀██▄ █ ██████ ██ ██ ██▄ █▀ ██ █ █▓ █▀ ██ + █ ▀██▄▓ ██ █ ▄█ ██ ▀▓█ ▓▀ █▓ ▓ █▓▄█▀ ██ + ▓ ▓█▓ █▓ ▄███ ██▀ ▓██▄ █▓ ▓ ▀▓█▀ ██ + ▓ ▀▓▓▓▓ ▓▓ ▓ ▓██ ▓█▓ ▓▓ ▓▀ ▓▓ ▓ ▓▓▓▓▀ ▓▓ + ▓ ▓▓▓ ▓▓ ▓▓█▓▓▓ ▓▓▓ ▓▓▒▒ ▒▓ ▒ ▀▓▓▀ ▓▓ + ▒ ▒ ▒ ▒▓▓▒ ▒▒▒▓▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒▓▒ ▒▒ ▒▒▒ ▒ ▒ ▒▒▒ + ]], + [[ + ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ + ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ + ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ + ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ + ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ + ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ + ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ + ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ + ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ + ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ + ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ + ]], + [[ + ,-. _,---._ __ / \ + / ) .-' `./ / \ + ( ( ,' `/ /| + \ `-" \'\ / | + `. , \ \ / | + /`. ,'-`----Y | + ( ; | ' + | ,-. ,-' | / + | | ( | | / + ) | \ `.___________|/ + `--' `--' + ]], + [[ + |\ _,,,---,,_ + ZZZzz /,`.-'`' -. ;-;;,_ + |,4- ) )-,_. ,\ ( `'-' + '---''(_/--' `-'\_) + ]], + [[ + ╭╮╭┬─╮╭─╮┬ ┬┬╭┬╮ + │││├┤ │ │╰┐┌╯││││ + ╯╰╯╰─╯╰─╯ ╰╯ ┴┴ ┴ + ]], +} + +Quotes = { + [[ + I don't care that they stole my idea... I care that they don't have any of their own. + ~ Nikola Tesla + ]], + [[ + Make everything as simple as possible, but not simpler. + ~ Albert Einstein + ]], + [[ + Code never lies, comments sometimes do. + ~ Ron Jeffries + ]], + [[ + Good code is its own best documentation. + ~ Steve McConnell + ]], + [[ + I do not fear computers. I fear the lack of them. + ~ Isaac Asimov + ]], + [[ + If a machine is expected to be infallible, it cannot also be intelligent. + ~ Alan Turing + ]], + [[ + Mathematical reasoning may be regarded. + ~ Alan Turing + ]], + [[ + Anti-social behavior is a trait of intelligence in a world full of conformists. + ~ Nikola Tesla + ]], + [[ + We are very, very small, but we are profoundly capable of very, very big things. + ~ Stephen Hawking + ]], + [[ + Quiet people have the loudest minds. + ~ Stephen Hawking + ]], + [[ + An idiot admires complexity, a genius admires simplicity. + ~ Terry Davis + ]], + [[ + It's hardware that makes a machine fast. It's software that makes a fast machine slow. + ~ Craig Reucassel + ]], + [[ + Computer science is no more about computers than astronomy is about telescopes. + ~ Edsger Dijkstra + ]], + [[ + An algorithm must be seen to be believed. + ~ Donald Knuth + ]], + [[ + In theory there is no difference between theory and practice. + In practice there is. + ~ Yogi Berra + ]], + [[ + If Java had true garbage collection, most programs would delete themselves upon execution. + ~ Robert Sewell + ]], + [[ + If debugging is the process of removing software bugs, + then programming must be the process of putting them in. + ~ Edsger Dijkstra + ]], + [[ + Most of you are familiar with the virtues of a programmer. + There are three, of course: laziness, impatience, and hubris. + ~ Larry Wall + ]], + [[ + The question of whether computers can think is like the question of whether submarines can swim. + ~ Edsger Dijkstra + ]], +} + + +math.randomseed(os.time()) + +local header = function() + return Headers[math.random(#Headers)] +end + +local footer = function() + return Quotes[math.random(#Quotes)] +end + + +local config = function() + local starter = require("mini.starter") + vim.keymap.set("n", "<Space>d", starter.open, { desc = "Dashboard" }) + starter.setup({ + autoopen = true, + evaluate_single = false, + items = { + starter.sections.recent_files(5, false, false), + { name = "Plugin Manager", action = "Lazy", section = "Actions" }, + { name = "File Browser", action = "Oil --float", section = "Actions" }, + { name = "Neorg Index", action = "Neorg index", section = "Actions" }, + starter.sections.builtin_actions, + }, + header = header, + footer = footer, + content_hooks = nil, + query_updaters = "abcdefghijklmnopqrstuvwxyz0123456789_-.", + silent = false, + }) +end + +return { + "echasnovski/mini.starter", + lazy = false, + config = config +} diff --git a/scripts/powermenu b/scripts/powermenu index 79519ed..5dd5d19 100755 --- a/scripts/powermenu +++ b/scripts/powermenu @@ -4,7 +4,7 @@ set reboot " Reboot" set lock " Lock" set exit " Exit" -set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit" | fuzzel --dmenu --lines 4 --width 15) +set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit" | fuzzel --dmenu --lines 4 --width 15 --prompt "" --placeholder "") switch $chosen case $poweroff diff --git a/scripts/set_background b/scripts/set_background index 3045637..8beab55 100755 --- a/scripts/set_background +++ b/scripts/set_background @@ -13,6 +13,5 @@ niri msg action do-screen-transition swww img $img wallust run $img makoctl reload -systemctl --user reload waybar.service notify-send -i $img "Wallust" "Changed wallpaper and palette." diff --git a/wallust/templates/niri b/wallust/templates/niri index bc540d8..76d045a 100644 --- a/wallust/templates/niri +++ b/wallust/templates/niri @@ -115,7 +115,10 @@ window-rule { match app-id="SFML" } -switch-events {} +switch-events { + lid-close { spawn "niri" "msg" "action" "power-off-monitors"; } + lid-open { spawn "niri" "msg" "action" "power-on-monitors"; } +} binds { Mod+Backslash { show-hotkey-overlay; } diff --git a/wallust/templates/waybar b/wallust/templates/waybar index 9061ce5..b5ac739 100644 --- a/wallust/templates/waybar +++ b/wallust/templates/waybar @@ -12,8 +12,7 @@ window#waybar { } #clock,#network,#bluetooth,#backlight,#pulseaudio, -#battery,#disk,#temperature,#memory,#cpu, -#tray { +#battery,#disk,#temperature,#memory,#cpu { padding-left: 3px; padding-right: 3px; border-color: {{color8}}; @@ -57,9 +56,6 @@ window#waybar { #cpu { background: {{color2}}; } -#tray { - background: {{color0}}; -} tooltip { background: {{color0}}; diff --git a/waybar/config b/waybar/config index 2909de5..7e2c713 100644 --- a/waybar/config +++ b/waybar/config @@ -2,6 +2,7 @@ "layer": "top", "spacing": 0, "margin": 0, + "reload_style_on_change": true, "fixed-center": false, "modules-left": ["clock", "network", "bluetooth", "backlight", "pulseaudio"], "modules-center": ["tray"], diff --git a/waybar/style.css b/waybar/style.css index 226ae92..33370ec 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -12,8 +12,7 @@ window#waybar { } #clock,#network,#bluetooth,#backlight,#pulseaudio, -#battery,#disk,#temperature,#memory,#cpu, -#tray { +#battery,#disk,#temperature,#memory,#cpu { padding-left: 3px; padding-right: 3px; border-color: #64645B; @@ -57,9 +56,6 @@ window#waybar { #cpu { background: #8D7C66; } -#tray { - background: #45453A; -} tooltip { background: #45453A; |
