feat: dump

This commit is contained in:
Jozef Steinhübl 2024-08-08 12:31:06 +02:00
parent 67a6b1ec42
commit 9592196853
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
8 changed files with 24 additions and 13 deletions

View file

@ -41,3 +41,6 @@ rbenv() {
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# moon
export PATH="$HOME/.moon/bin:$PATH"

View file

@ -3,7 +3,7 @@ require("presence").setup({
neovim_image_text = "Neovim", -- Text displayed when hovered over the Neovim image neovim_image_text = "Neovim", -- Text displayed when hovered over the Neovim image
main_image = "neovim", -- Main image display (either "neovim" or "file") main_image = "neovim", -- Main image display (either "neovim" or "file")
client_id = "793271441293967371", -- Use your own Discord application client id (not recommended) client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") log_level = "debug", -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`) debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
enable_line_number = false, -- Displays the current line number instead of the current project enable_line_number = false, -- Displays the current line number instead of the current project
blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches

View file

@ -24,8 +24,9 @@ return require("packer").startup(function(use)
use "theprimeagen/harpoon" use "theprimeagen/harpoon"
use "mbbill/undotree" use "mbbill/undotree"
use "tpope/vim-fugitive" use "tpope/vim-fugitive"
use "andweeb/presence.nvim" use "jiriks74/presence.nvim"
use "wakatime/vim-wakatime" use "wakatime/vim-wakatime"
use "github/copilot.vim"
use { use {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',

View file

@ -89,6 +89,11 @@ _G.packer_plugins = {
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp" url = "https://github.com/hrsh7th/cmp-nvim-lsp"
}, },
["copilot.vim"] = {
loaded = true,
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/copilot.vim",
url = "https://github.com/github/copilot.vim"
},
harpoon = { harpoon = {
loaded = true, loaded = true,
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/harpoon", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/harpoon",
@ -153,7 +158,7 @@ _G.packer_plugins = {
["presence.nvim"] = { ["presence.nvim"] = {
loaded = true, loaded = true,
path = "/home/hyro/.local/share/nvim/site/pack/packer/start/presence.nvim", path = "/home/hyro/.local/share/nvim/site/pack/packer/start/presence.nvim",
url = "https://github.com/andweeb/presence.nvim" url = "https://github.com/jiriks74/presence.nvim"
}, },
["telescope.nvim"] = { ["telescope.nvim"] = {
loaded = true, loaded = true,

View file

@ -1,6 +1,6 @@
tint2 & tint2 &
xcompmgr & xcompmgr &
nitrogen --restore xwallpaper --zoom ~/Pictures/Th0q7eQ.jpg
xrandr --output eDP-1 --auto --output HDMI-1 --mode 1920x1080 --rate 144 --primary --left-of eDP-1 xrandr --output eDP-1 --auto --output HDMI-1 --mode 1920x1080 --rate 144 --primary --left-of eDP-1
xbindkeys xbindkeys
xinput --set-prop "pointer:Razer Razer DeathAdder Essential" "libinput Accel Speed" -0.85 xinput --set-prop "pointer:Razer Razer DeathAdder Essential" "libinput Accel Speed" -0.85

View file

@ -12,9 +12,12 @@
</startupnotify> </startupnotify>
</action> </action>
</item> </item>
<item label="intellij"> <item label="idea">
<action name="Execute"><command>idea</command></action> <action name="Execute"><command>idea</command></action>
</item> </item>
<item label="zed">
<action name="Execute"><command>zed</command></action>
</item>
</menu> </menu>
<menu id="apps-games-menu" label="Games"> <menu id="apps-games-menu" label="Games">

View file

@ -5,6 +5,7 @@ pulse.rules = [
# Disable mic auto gain for some applications # Disable mic auto gain for some applications
matches = [ matches = [
{ application.process.binary = "chrome" } { application.process.binary = "chrome" }
{ application.process.binary = "chromium" }
{ application.process.binary = "Discord" } { application.process.binary = "Discord" }
{ application.process.binary = "teams" } { application.process.binary = "teams" }
{ application.process.binary = "skypeforlinux" } { application.process.binary = "skypeforlinux" }

View file

@ -1,18 +1,16 @@
from glob import glob from glob import glob
from os.path import expanduser, isdir
from os import mkdir
from shutil import copy2
import shutil import shutil
import os
def dump(stuff: list[str]): def dump(stuff: list[str]):
for pattern in stuff: for pattern in stuff:
expand = expanduser(pattern) expand = os.path.expanduser(pattern)
for path in glob(expand, recursive=True): for path in glob(expand, recursive=True):
normalized_path = path.removeprefix(expanduser("~/")) normalized_path = path.removeprefix(os.path.expanduser("~/"))
if isdir(normalized_path): if os.path.isdir(normalized_path) and not os.path.exists(normalized_path):
mkdir(normalized_path) os.mkdir(normalized_path)
else: elif os.path.isfile(normalized_path):
shutil.copy2(path, normalized_path) shutil.copy2(path, normalized_path)
exit(1) exit(1)