-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
2,181 additions
and
1,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#!/usr/bin/env sh | ||
|
||
printf "|039| \033[39mDefault \033[m |049| \033[49mDefault \033[m |037| \033[37mLight gray \033[m |047| \033[47mLight gray \033[m\n" | ||
printf "|030| \033[30mBlack \033[m |040| \033[40mBlack \033[m |090| \033[90mDark gray \033[m |100| \033[100mDark gray \033[m\n" | ||
printf "|031| \033[31mRed \033[m |041| \033[41mRed \033[m |091| \033[91mLight red \033[m |101| \033[101mLight red \033[m\n" | ||
printf "|032| \033[32mGreen \033[m |042| \033[42mGreen \033[m |092| \033[92mLight green \033[m |102| \033[102mLight green \033[m\n" | ||
printf "|033| \033[33mYellow \033[m |043| \033[43mYellow \033[m |093| \033[93mLight yellow \033[m |103| \033[103mLight yellow \033[m\n" | ||
printf "|034| \033[34mBlue \033[m |044| \033[44mBlue \033[m |094| \033[94mLight blue \033[m |104| \033[104mLight blue \033[m\n" | ||
printf "|035| \033[35mMagenta \033[m |045| \033[45mMagenta \033[m |095| \033[95mLight magenta \033[m |105| \033[105mLight magenta \033[m\n" | ||
printf "|036| \033[36mCyan \033[m |046| \033[46mCyan \033[m |096| \033[96mLight cyan \033[m |106| \033[106mLight cyan \033[m\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
# Directory containing images | ||
image_dir=$1 | ||
|
||
shopt -s nullglob | ||
# Get a list of image files in the directory | ||
images="$image_dir/*.{png,jpg,jpeg,gif}" | ||
# Initialize the images array | ||
images=() | ||
|
||
# Collect images with specific extensions | ||
for ext in png jpg jpeg gif; do | ||
images+=("$image_dir"/*."$ext") | ||
done | ||
|
||
# Check if the directory contains images | ||
if [ ${#images[@]} -eq 0 ]; then | ||
echo "No image files found in $image_dir" | ||
exit 1 | ||
fi | ||
|
||
|
||
# Pick a random image | ||
random_image="${images[RANDOM % ${#images[@]}]}" | ||
|
||
# Get the connected outputs from wlr-randr | ||
outputs=$(wlr-randr | rg 'HDMI|DP' | awk '{print $1}') | ||
|
||
# Prepare the swaybg command | ||
swaybg_cmd="/usr/bin/swaybg --mode fill" | ||
|
||
# Add each output to the command | ||
for output in $outputs; do | ||
swaybg_cmd+=" --output $output --image \"$random_image\"" | ||
done | ||
|
||
set -x | ||
|
||
# Execute the command | ||
eval "$swaybg_cmd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
" autocmd BufNewFile,BufRead * if search('{{.\+}}', 'nw') | setlocal filetype=gotmpl | endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vim.opt.expandtab = false | ||
vim.opt.tabstop = 4 | ||
vim.opt.shiftwidth = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
vim.keymap.set("n", "<leader>rr", function() | ||
vim.cmd("new") | ||
|
||
vim.cmd("terminal /home/rockerboo/code/others/gleam/target/release/gleam run") | ||
-- vim.api.nvim_feedkeys("i", "n", false) | ||
end, { desc = "Run a gleam program" }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
require("plugin.jester").mappings() | ||
|
||
vim.keymap.set("n", "<leader>rr", function() | ||
local file = vim.fn.expand("%") -- Get the current file name | ||
local escaped_file = vim.fn.shellescape(file) | ||
vim.cmd("new") | ||
vim.cmd("terminal node " .. escaped_file) | ||
vim.api.nvim_feedkeys("i", "n", false) | ||
end, { desc = "Execute javascript file with nodejs" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- vim.keymap.set( | ||
-- "n", | ||
-- "<leader>rr", | ||
-- -- "<cmd>:sp<CR>:term python %<CR>", | ||
-- "<cmd>:sp<CR>:term poetry run python %<CR>", | ||
-- { silent = true } | ||
-- ) | ||
|
||
vim.keymap.set("n", "<leader>rr", function() | ||
local file = vim.fn.expand("%") -- Get the current file name | ||
local escaped_file = vim.fn.shellescape(file) | ||
vim.cmd("new") | ||
vim.cmd("terminal source .env && python " .. escaped_file) | ||
vim.api.nvim_feedkeys("i", "n", false) | ||
end, { desc = "Execute python file with .env" }) | ||
|
||
vim.keymap.set("n", "<leader>ra", function() | ||
vim.cmd(":sp<CR>") | ||
vim.cmd(":term accelerate launch %<CR>") | ||
end, {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
local n = "n" | ||
local v = "v" | ||
|
||
local voices = require("rockerboo.voices") | ||
|
||
local silent = { silent = true } | ||
|
||
vim.keymap.set(n, "<leader>tr", voices.voices) | ||
vim.keymap.set(n, "<leader>ss", voices.save_voice) |
Oops, something went wrong.