diff --git a/.config/fish/config.fish b/.config/fish/config.fish index ea5b48f..2104f0e 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,3 +1,9 @@ +if status --is-login + if test -z "$DISPLAY" -a $XDG_VTNR = 1 + exec Hyprland > ~/.hyprland.log + end +end + if status is-interactive alias ls="lsd" @@ -9,14 +15,18 @@ if status is-interactive alias bat="bat -p" alias la="lsd -la" - - alias dotfiles="git --git-dir=/home/q/repos/dotfiles --work-tree=$HOME" - + set -U fish_user_paths $HOME/bin $fish_user_paths - set -x TERM "xterm-256color" + set -U fish_user_paths $HOME/.local/bin $fish_user_paths + alias dotfiles="git --git-dir=/home/q/repos/dotfiles --work-tree=$HOME" + alias chromium-browser-stable="chromium-browser-stable --disable-gpu --disable-software-rasterizer" + set -x PF_INFO "ascii title os kernel wm shell pkgs memory" - # set -x TERM "xterm" + + set -x TERM "xterm-256color" set -x EDITOR "nvim" + set -x VISUAL "nvim" + set -x XDG_DATA_HOME $HOME/.local/share set srcdir "$HOME/.cache/" diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index c06912b..996cc2b 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables @@ -49,6 +49,6 @@ SETUVAR fish_pager_color_selected_background:\x1d SETUVAR fish_pager_color_selected_completion:\x1d SETUVAR fish_pager_color_selected_description:\x1d SETUVAR fish_pager_color_selected_prefix:\x1d -SETUVAR fish_user_paths:/home/q/bin\x1e/home/q/\x2elocal/bin +SETUVAR fish_user_paths:/home/q/\x2elocal/bin\x1e/home/q/bin SETUVAR nvm_data:/home/q/\x2elocal/share/nvm SETUVAR nvm_mirror:https\x3a//nodejs\x2eorg/dist diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 51262f4..cd1e752 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -8,7 +8,7 @@ # title=foot # locked-title=no -font=JetBrainsMono Nerd Font Mono:size=9 +font=JetBrainsMono Nerd Font Mono:size=13 # font=monospace:size=8 # font-bold= diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index ffe2026..300edd0 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -15,12 +15,15 @@ monitor=,1920x1080,auto,1 # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox -exec-once = light -S 50 + exec-once = swww init exec-once = waybar +exec-once = light -S 50 exec-once = kotatogram-desktop exec-once = dunst -config ~/.config/dunst/dunstrc exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +exec-once = /usr/bin/chromium-browser-stable --disable-gpu --disable-software-rasterizer +exec-once = $HOME/bin/battery-daemon & # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf @@ -56,12 +59,8 @@ general { decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more - rounding = 10 - blur = yes - blur_size = 3 - blur_passes = 1 - blur_new_optimizations = on + blur: 3 drop_shadow = yes shadow_range = 4 @@ -124,10 +123,15 @@ windowrulev2 = workspace 2 silent,title:^(Kotatogram)$ windowrulev2 = size 641 1022,title:^(Kotatogram)$ windowrulev2 = move 25 45,title:^(Kotatogram)$ + +windowrulev2 = workspace 1 silent,title:^(chromium-browser)$ + $mainMod = SUPER bind = $mainMod SHIFT, S,exec, bin/w-screenrecord +# bindl=,switch:[switch name],exec,$HOME/bin/lockscreen + bind = $mainMod, C, killactive, bind = $mainMod, X, exit, @@ -148,7 +152,9 @@ bind = $mainMod, N, exec, foot -e lf bind = $mainMod, M, exec, foot -e cmus bind = $mainMod, d, exec, wofi --show drun -I -i bind = ,Print, exec, makescreenshot -bind = $mainMod, l, exec, lockscreen +# bind = $mainMod, SHIFT, L, exec, lockscreen +bind = ALT, L, exec, lockscreen + # not forget install xdg-desktop-portal 1.14.6 # Modify file /usr/share/xdg-desktop-portal/portals/{}.portal UserIn=sway;wlroots @@ -195,3 +201,7 @@ bind = $mainMod SHIFT,h, movewindow, l # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow + +misc { + disable_hyprland_logo = true +} diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 33aa31f..1c14a61 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -8,8 +8,8 @@ set shellopts '-eu' set previewer ctpv set cleaner ctpvclear -&ctpv -s $id -&ctpvquit $id +&ctpv -d -s $id >> ~/temp/lf_ctpv.log +&ctpvquit $id >> ~/temp/lf_ctpvquit.log cmd edit-config ${{ $EDITOR ~/.config/lf/lfrc @@ -27,7 +27,7 @@ cmd open &{{ esac }} -cmd setwallpaper %swww img "$f" --transition-type right --transition-fps 60 +cmd setwallpaper %swww img "$f" --transition-type wipe --transition-fps 60 cmd fzf_jump ${{ res="$(find . | fzf --reverse --header='Jump to location' | sed 's/\\/\\\\/g;s/"/\\"/g')" @@ -41,7 +41,7 @@ cmd fzf_jump ${{ lf -remote "send $id $cmd \"$res\"" }} -cmd fzf_search ${{ +cmd rg_search ${{ res="$( \ RG_PREFIX="rg --column --line-number --no-heading --color=always \ --smart-case " @@ -83,15 +83,28 @@ cmd zip ${{ # Trash bindings -cmd trash ${{ +cmd move-to-trash ${{ files=$(printf "$fx" | tr '\n' ';') while [ "$files" ]; do file=${files%%;*} - if [[ "$(pwd)" == "/home/$USER/.local/share/Trash/files" ]]; then - rm -rf "$fx" + trash-put "$(basename "$file")" + + if [ "$files" = "$file" ]; then + files='' else - trash-put "$(basename "$file")" + files="${files#*;}" + fi + done +}} + +cmd delete-from-trash ${{ + files=$(printf "$fx" | tr '\n' ';') + while [ "$files" ]; do + file=${files%%;*} + + if [[ "$(pwd)" == "$HOME/.local/share/Trash/files" ]]; then + rm -rf "$file" fi if [ "$files" = "$file" ]; then @@ -121,7 +134,9 @@ cmd trash ${{ # }} # lfrc -cmd restore-from-trash ${{ + + +cmd trash-restore-list ${{ ids="$(echo -ne '\n' | \ trash-restore | \ awk '$1 ~ /^[0-9]+/ {print $0}' | \ @@ -132,6 +147,27 @@ cmd restore-from-trash ${{ clear }} +cmd restore-from-trash ${{ + files=$(printf "$fx" | tr '\n' ';') + while [ "$files" ]; do + file=${files%%;*} + + Id="$(echo -ne '\n'| + trash-restore ~ | + grep $(basename "$file") | + awk '{print $1}' + )" + + echo $Id | trash-restore ~ + + if [ "$files" = "$file" ]; then + files='' + else + files="${files#*;}" + fi + done +}} + map m map o map n @@ -142,7 +178,7 @@ map e map f map t map u -map a +map a map ua unarchive @@ -158,13 +194,16 @@ map x cut map open map f :fzf_jump -map gf :fzf_search +map gf :rg_search map C edit-config map bg setwallpaper -map dd trash -map dr restore-from-trash +map mt move-to-trash +map dt delete-from-trash +map tr restore-from-trash +map trl trash-restore-list + map R reload diff --git a/.config/nvim/lua/core/keybinds.lua b/.config/nvim/lua/core/keybinds.lua index 6a50569..51c5673 100644 --- a/.config/nvim/lua/core/keybinds.lua +++ b/.config/nvim/lua/core/keybinds.lua @@ -6,7 +6,7 @@ vim.api.nvim_set_keymap('', '', '', {noremap = true}) vim.api.nvim_set_keymap('', '', '', {noremap = true}) vim.api.nvim_set_keymap('', '', '',{noremap = true}) -keymap("n",",",":nohlsearch") +keymap("n",",",":nohlsearch", {desc = "Clear an selected strings"}) keymap("n","s",'"_d"') @@ -14,3 +14,6 @@ keymap('n', 'gwh', 'h') keymap('n', 'gwj', 'j') keymap('n', 'gwk', 'k') keymap('n', 'gwl', 'l') + +keymap("n", "bf",":bf",{desc = "[G]oto first buffer"}) +keymap("n", "bl",":bl",{desc = "[G]oto last buffer"}) diff --git a/.config/nvim/lua/core/plugins.lua b/.config/nvim/lua/core/plugins.lua index e567bf2..d337542 100644 --- a/.config/nvim/lua/core/plugins.lua +++ b/.config/nvim/lua/core/plugins.lua @@ -26,6 +26,13 @@ require("lazy").setup({ vim.cmd.colorscheme "nord" end }, + -- { + -- "andersevenrud/nordic.nvim", + -- config = function() + -- vim.cmd.colorscheme "nordic" + -- end + -- }, + -- use {"catppuccin/nvim", as = "catppuccin"} -- use {"tiagovla/tokyodark.nvim"} -- use {'Everblush/everblush.nvim',as = 'everblush'} @@ -107,7 +114,10 @@ require("lazy").setup({ dependencies = { {"williamboman/mason.nvim", opts}, "williamboman/mason-lspconfig.nvim", - {"j-hui/fidget.nvim", opts = {}} + {"j-hui/fidget.nvim", + tag = "legacy", + opts = {} + } }, config = function() require("lsp") diff --git a/.config/nvim/lua/lsp/init.lua b/.config/nvim/lua/lsp/init.lua index a1aa10f..d521abb 100644 --- a/.config/nvim/lua/lsp/init.lua +++ b/.config/nvim/lua/lsp/init.lua @@ -36,21 +36,39 @@ local navic = require("nvim-navic") vim.g.lsp_capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) -vim.g.lsp_on_attach = function(client,bufnr) +vim.g.lsp_on_attach = function(client, bufnr) print("Attaching to:",client.name) - local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr,...) end - local opts = {noremap = true,silent=true} - + + local nmap = function(keys, func, desc) + if desc then + desc = 'LSP: ' .. desc + end + + vim.keymap.set("n", keys, func, {buffer = bufnr, desc = desc}) + end + if client.server_capabilities.documentSymbolProvider then navic.attach(client, bufnr) end + + nmap('gd', vim.lsp.buf.definition, "[G]oto [D]efinition") + nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') + nmap('gI', vim.lsp.buf.implementation, '[G]oto [I]mplementation') + nmap('D', vim.lsp.buf.type_definition, 'Type [D]efinition') + nmap('ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols') + nmap('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols') + + nmap('wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder') + nmap('wr', vim.lsp.buf.remove_workspace_folder, '[W]orkspace [R]emove Folder') + nmap('wl', function() + print(vim.inspect(vim.lsp.buf.list_workspace_folders())) + end, '[W]orkspace [L]ist Folders') - buf_set_keymap('n','gd','lua vim.lsp.buf.definition()',opts) - buf_set_keymap('n','K', 'lua vim.lsp.buf.hover()',opts) - buf_set_keymap('n','[d','lua vim.diagnostic.goto_prev()',opts) - buf_set_keymap('n',']d','lua vim.diagnostic.goto_next()',opts) - buf_set_keymap('n','d','lua vim.diagnostic.open_float({border="rounded"})',opts) - buf_set_keymap('n','f','lua vim.lsp.buf.format()',opts) + nmap('K',vim.lsp.buf.hover, "Hover Documentation") + + nmap('[d', vim.diagnostic.goto_prev, "[G]oto previous diagnostic message") + nmap(']d', vim.diagnostic.goto_next, "[G]oto next diagnostic message") + nmap('e', vim.diagnostic.open_float, "Open floating diagnostic message") end local servers = mason_lsp.get_installed_servers() @@ -66,7 +84,6 @@ for _, server in ipairs(servers) do end else vim.pretty_print({server = server, result = result}) - -- vim.notify("Missing server configuration for " .. server, "error") end end end diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index ff73c8a..3f9e3e9 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -7,8 +7,8 @@ end cmp.setup({ mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.select_next_item(), - [""] = cmp.mapping.select_next_item(), - [""] = cmp.mapping.select_prev_item(), + [""] = cmp.mapping.select_next_item(), + [""] = cmp.mapping.select_prev_item(), [""] = cmp.mapping.select_prev_item(), [""] = cmp.mapping.complete(), [""] = cmp.mapping.confirm({select = false}), diff --git a/.config/nvim/lua/plugins/luasnip.lua b/.config/nvim/lua/plugins/luasnip.lua index 78b96d9..30260b3 100644 --- a/.config/nvim/lua/plugins/luasnip.lua +++ b/.config/nvim/lua/plugins/luasnip.lua @@ -5,10 +5,10 @@ end local s = ls.s -local fmt = require("luasnip.extras.fmt").fmt +local fmt = require("luasnip.extras.fmt") local i = ls.insert_node - +local t = ls.text_node local rep = require("luasnip.extras").rep ls.setup({ @@ -20,22 +20,52 @@ ls.setup({ }) -ls.add_snippets("lua", { - s( - "reqm", - fmt( - [[ - local ok, {} = pcall(require,"{}") - if not ok then - vim.notify("Failed load {}\n") - end - ]], { - i(1, "mod"), - i(2), - rep(2), - } - ) - ) +-- ls.add_snippets("lua", { +-- ls.snippet("reqm", +-- fmt.fmta( +-- [[ +-- local ok, {} = pcall(require,"{}") +-- if not ok then +-- vim.notify("Failed load {}\n") +-- end +-- ]], { +-- i(1, "mod"), +-- i(2), +-- rep(2), +-- } +-- ) +-- ) +-- }) + + + +ls.add_snippets("go", { + ls.snippet("func", + fmt.fmta( + [[ + <>, err := <> + if err != nil { + <> + } + ]], { + i(1, "out"), + i(2, "func()"), + i(3, "// some code") + } + ) + ), + + ls.snippet( + "main", + fmt.fmta( + [[ + func main() { + <><> + } + ]], + { t("\t"), i(0) } + ) + ), }) -- Configuring keybinds diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 76d9dea..de42303 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -23,17 +23,13 @@ telescope.setup{ local keymap = vim.keymap.set -keymap("n","f",builtin.find_files) -keymap("n","l",builtin.live_grep) -keymap("n","L",builtin.grep_string) +keymap("n","sf",builtin.find_files, {desc = "[S]earch [F]iles"}) +keymap("n","sg",builtin.live_grep, {desc = "[S]earch by [G]rep"}) +keymap("n","sw",builtin.grep_string, {desc = "[S]earch current [W]ord"}) +keymap("n","ff",builtin.current_buffer_fuzzy_find, {desc = "[F]uzzy [F]ind in current [B]uffer"}) -keymap("n",";",builtin.current_buffer_fuzzy_find) -keymap("n","b",builtin.buffers) +keymap("n","fb",builtin.buffers, {desc = "[F]ind existing [B]uffers"}) -keymap("n","e",function() - builtin.diagnostics{bufnr = 0,severity_limit = "WARN"} -end) - -keymap("n","E",function() - builtin.diagnostics{severity_limit = "WARN"} -end) +keymap("n","sd",builtin.diagnostics, {desc = "[S]earch [D]iagnostics"}) +keymap("n","sdc",function() builtin.diagnostics{bufnr = 0} end, {desc = "[S]earch [D]iagnostics in current [B]uffer"}) +keymap("n","sk",builtin.keymaps, {desc = "[S]earch existing [K]eymaps"}) diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 47fdd84..a941b8d 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -71,7 +71,7 @@ button:focus { #workspaces button.active { background-color: @background; - color: @blue; + color: @white; } #workspaces button.urgent { diff --git a/Pictures/wallpapers/Anime/anime-coffee-girl.jpg b/Pictures/wallpapers/Anime/anime-coffee-girl.jpg new file mode 100644 index 0000000..f4aee42 Binary files /dev/null and b/Pictures/wallpapers/Anime/anime-coffee-girl.jpg differ diff --git a/Pictures/wallpapers/Anime/cat-girl-II.jpg b/Pictures/wallpapers/Anime/cat-girl-II.jpg new file mode 100644 index 0000000..6be5dce Binary files /dev/null and b/Pictures/wallpapers/Anime/cat-girl-II.jpg differ diff --git a/Pictures/wallpapers/Anime/circuit-waifu.png b/Pictures/wallpapers/Anime/circuit-waifu.png new file mode 100644 index 0000000..67649a5 Binary files /dev/null and b/Pictures/wallpapers/Anime/circuit-waifu.png differ diff --git a/Pictures/wallpapers/Anime/cowboy-beebop.png b/Pictures/wallpapers/Anime/cowboy-beebop.png new file mode 100644 index 0000000..f85e275 Binary files /dev/null and b/Pictures/wallpapers/Anime/cowboy-beebop.png differ diff --git a/Pictures/wallpapers/Anime/danny-and-the-franks-2.jpg b/Pictures/wallpapers/Anime/danny-and-the-franks-2.jpg new file mode 100644 index 0000000..fae99fc Binary files /dev/null and b/Pictures/wallpapers/Anime/danny-and-the-franks-2.jpg differ diff --git a/Pictures/wallpapers/Anime/depressed-girl-idk.png b/Pictures/wallpapers/Anime/depressed-girl-idk.png new file mode 100644 index 0000000..0a2946d Binary files /dev/null and b/Pictures/wallpapers/Anime/depressed-girl-idk.png differ diff --git a/Pictures/wallpapers/Anime/home.jpeg b/Pictures/wallpapers/Anime/home.jpeg new file mode 100644 index 0000000..70208cc Binary files /dev/null and b/Pictures/wallpapers/Anime/home.jpeg differ diff --git a/Pictures/wallpapers/Anime/programmer-girl-III.jpg b/Pictures/wallpapers/Anime/programmer-girl-III.jpg new file mode 100644 index 0000000..1f34910 Binary files /dev/null and b/Pictures/wallpapers/Anime/programmer-girl-III.jpg differ diff --git a/Pictures/wallpapers/Anime/reach-for-the-stars-girl.jpg b/Pictures/wallpapers/Anime/reach-for-the-stars-girl.jpg new file mode 100644 index 0000000..51f5816 Binary files /dev/null and b/Pictures/wallpapers/Anime/reach-for-the-stars-girl.jpg differ diff --git a/Pictures/wallpapers/Anime/sad-anime-girl.png b/Pictures/wallpapers/Anime/sad-anime-girl.png new file mode 100644 index 0000000..f3d8afd Binary files /dev/null and b/Pictures/wallpapers/Anime/sad-anime-girl.png differ diff --git a/Pictures/wallpapers/Anime/some-girl.jpg b/Pictures/wallpapers/Anime/some-girl.jpg new file mode 100644 index 0000000..0d6fcc2 Binary files /dev/null and b/Pictures/wallpapers/Anime/some-girl.jpg differ diff --git a/Pictures/wallpapers/1920x1080-945579-waves-digital-art-artwork-minimalism-The-Great-Wave-off-Kanagawa.png b/Pictures/wallpapers/Anime/the-great-wave-off-kanagawa.png similarity index 100% rename from Pictures/wallpapers/1920x1080-945579-waves-digital-art-artwork-minimalism-The-Great-Wave-off-Kanagawa.png rename to Pictures/wallpapers/Anime/the-great-wave-off-kanagawa.png diff --git a/Pictures/wallpapers/wallhaven-42xjrm_1920x1080 (1).png b/Pictures/wallpapers/Anime/wallhaven-42xjrm_1920x1080 (1).png similarity index 100% rename from Pictures/wallpapers/wallhaven-42xjrm_1920x1080 (1).png rename to Pictures/wallpapers/Anime/wallhaven-42xjrm_1920x1080 (1).png diff --git a/Pictures/wallpapers/wallhaven-4ow217_1920x1080.png b/Pictures/wallpapers/Anime/wallhaven-4ow217_1920x1080.png similarity index 100% rename from Pictures/wallpapers/wallhaven-4ow217_1920x1080.png rename to Pictures/wallpapers/Anime/wallhaven-4ow217_1920x1080.png diff --git a/Pictures/wallpapers/catppuccin/cat-blue-eye.png b/Pictures/wallpapers/Catppuccin/cat-blue-eye.png similarity index 100% rename from Pictures/wallpapers/catppuccin/cat-blue-eye.png rename to Pictures/wallpapers/Catppuccin/cat-blue-eye.png diff --git a/Pictures/wallpapers/catppuccin/mountain.png b/Pictures/wallpapers/Catppuccin/mountain.png similarity index 100% rename from Pictures/wallpapers/catppuccin/mountain.png rename to Pictures/wallpapers/Catppuccin/mountain.png diff --git a/Pictures/wallpapers/catppuccin/pacman_4k.png b/Pictures/wallpapers/Catppuccin/pacman.png similarity index 100% rename from Pictures/wallpapers/catppuccin/pacman_4k.png rename to Pictures/wallpapers/Catppuccin/pacman.png diff --git a/Pictures/wallpapers/catppuccin/premonition-1920×1080.jpg b/Pictures/wallpapers/Catppuccin/premonition.jpg similarity index 100% rename from Pictures/wallpapers/catppuccin/premonition-1920×1080.jpg rename to Pictures/wallpapers/Catppuccin/premonition.jpg diff --git a/Pictures/wallpapers/catppuccin/tetris.png b/Pictures/wallpapers/Catppuccin/tetris.png similarity index 100% rename from Pictures/wallpapers/catppuccin/tetris.png rename to Pictures/wallpapers/Catppuccin/tetris.png diff --git a/Pictures/wallpapers/Gruvbox/gruv-4.jpg b/Pictures/wallpapers/Gruvbox/gruv-4.jpg new file mode 100644 index 0000000..4c4f0c6 Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/gruv-4.jpg differ diff --git a/Pictures/wallpapers/Gruvbox/gruv-pacman-ghosts.png b/Pictures/wallpapers/Gruvbox/gruv-pacman-ghosts.png new file mode 100644 index 0000000..021abeb Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/gruv-pacman-ghosts.png differ diff --git a/Pictures/wallpapers/Gruvbox/gruv-pixel-III.png b/Pictures/wallpapers/Gruvbox/gruv-pixel-III.png new file mode 100644 index 0000000..6c2700d Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/gruv-pixel-III.png differ diff --git a/Pictures/wallpapers/Gruvbox/gruvbox_pixel.png b/Pictures/wallpapers/Gruvbox/gruvbox_pixel.png new file mode 100644 index 0000000..6a53111 Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/gruvbox_pixel.png differ diff --git a/Pictures/wallpapers/Gruvbox/nvim.jpg b/Pictures/wallpapers/Gruvbox/nvim.jpg new file mode 100644 index 0000000..44ab50f Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/nvim.jpg differ diff --git a/Pictures/wallpapers/Gruvbox/platform.jpg b/Pictures/wallpapers/Gruvbox/platform.jpg new file mode 100644 index 0000000..7f25bcf Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/platform.jpg differ diff --git a/Pictures/wallpapers/Gruvbox/solar-system.jpg b/Pictures/wallpapers/Gruvbox/solar-system.jpg new file mode 100644 index 0000000..1c48f90 Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/solar-system.jpg differ diff --git a/Pictures/wallpapers/Gruvbox/staircase.jpg b/Pictures/wallpapers/Gruvbox/staircase.jpg new file mode 100644 index 0000000..fc99574 Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/staircase.jpg differ diff --git a/Pictures/wallpapers/Gruvbox/stairs.jpg b/Pictures/wallpapers/Gruvbox/stairs.jpg new file mode 100644 index 0000000..17fa814 Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/stairs.jpg differ diff --git a/Pictures/wallpapers/gruvbox/862301.jpg b/Pictures/wallpapers/Gruvbox/steins-gate.jpg similarity index 100% rename from Pictures/wallpapers/gruvbox/862301.jpg rename to Pictures/wallpapers/Gruvbox/steins-gate.jpg diff --git a/Pictures/wallpapers/Gruvbox/wall_secondary.png b/Pictures/wallpapers/Gruvbox/wall_secondary.png new file mode 100644 index 0000000..d544ec9 Binary files /dev/null and b/Pictures/wallpapers/Gruvbox/wall_secondary.png differ diff --git a/Pictures/wallpapers/nord/1045054.jpg b/Pictures/wallpapers/Nord/1045054.jpg similarity index 100% rename from Pictures/wallpapers/nord/1045054.jpg rename to Pictures/wallpapers/Nord/1045054.jpg diff --git a/Pictures/wallpapers/nord/855154.png b/Pictures/wallpapers/Nord/855154.png similarity index 100% rename from Pictures/wallpapers/nord/855154.png rename to Pictures/wallpapers/Nord/855154.png diff --git a/Pictures/wallpapers/nord/cropped-1920-1080-977159.png b/Pictures/wallpapers/Nord/cropped-1920-1080-977159.png similarity index 100% rename from Pictures/wallpapers/nord/cropped-1920-1080-977159.png rename to Pictures/wallpapers/Nord/cropped-1920-1080-977159.png diff --git a/Pictures/wallpapers/nord/snowy-cloudy-mountains-1920×1080.jpg b/Pictures/wallpapers/Nord/snowy-cloudy-mountains-1920×1080.jpg similarity index 100% rename from Pictures/wallpapers/nord/snowy-cloudy-mountains-1920×1080.jpg rename to Pictures/wallpapers/Nord/snowy-cloudy-mountains-1920×1080.jpg diff --git a/Pictures/wallpapers/nord/wallhaven-4glwwl_1920x1080.png b/Pictures/wallpapers/Nord/wallhaven-4glwwl_1920x1080.png similarity index 100% rename from Pictures/wallpapers/nord/wallhaven-4glwwl_1920x1080.png rename to Pictures/wallpapers/Nord/wallhaven-4glwwl_1920x1080.png diff --git a/Pictures/wallpapers/nord/wallhaven-83z511_1920x1080.png b/Pictures/wallpapers/Nord/wallhaven-83z511_1920x1080.png similarity index 100% rename from Pictures/wallpapers/nord/wallhaven-83z511_1920x1080.png rename to Pictures/wallpapers/Nord/wallhaven-83z511_1920x1080.png diff --git a/Pictures/wallpapers/gruvbox/0c5vX9L.png b/Pictures/wallpapers/gruvbox/0c5vX9L.png deleted file mode 100644 index 3e2900b..0000000 Binary files a/Pictures/wallpapers/gruvbox/0c5vX9L.png and /dev/null differ diff --git a/Pictures/wallpapers/gruvbox/wallhaven-zxyqyv_1920x1080.png b/Pictures/wallpapers/gruvbox/wallhaven-zxyqyv_1920x1080.png deleted file mode 100644 index 732e683..0000000 Binary files a/Pictures/wallpapers/gruvbox/wallhaven-zxyqyv_1920x1080.png and /dev/null differ diff --git a/Pictures/wallpapers/nord/linux-be-good-4k.png b/Pictures/wallpapers/nord/linux-be-good-4k.png deleted file mode 100644 index f110b8c..0000000 Binary files a/Pictures/wallpapers/nord/linux-be-good-4k.png and /dev/null differ diff --git a/Pictures/wallpapers/nord/pixelmoon.png b/Pictures/wallpapers/nord/pixelmoon.png deleted file mode 100644 index b885be1..0000000 Binary files a/Pictures/wallpapers/nord/pixelmoon.png and /dev/null differ diff --git a/Pictures/wallpapers/wallpaperflare.com_wallpaper.jpg b/Pictures/wallpapers/wallpaperflare.com_wallpaper.jpg deleted file mode 100644 index 71fe9fc..0000000 Binary files a/Pictures/wallpapers/wallpaperflare.com_wallpaper.jpg and /dev/null differ diff --git a/bin/backup-game-files.sh b/bin/backup-game-files.sh new file mode 100755 index 0000000..2e5ea49 --- /dev/null +++ b/bin/backup-game-files.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +declare -A local_games +local_games=( ["Factorio"]="$HOME/.factorio" ["Terraria"]="$HOME/.local/share/Terraria" ) + +remote_games_path="Game Files" + +for game in ${!local_games[@]} +do + echo "${local_games[$game]} => $remote_games_path/$game" + upload-to-nextcloud "${local_games[$game]}" "$remote_games_path/$game" +done diff --git a/bin/battery-daemon b/bin/battery-daemon index f7febd6..4fabbae 100755 --- a/bin/battery-daemon +++ b/bin/battery-daemon @@ -27,7 +27,14 @@ while true; do "Battery is low ($time_to_empty hours left)" \ -r 100 \ -i "$notify_icons/battery-low.png" - mpv "/home/q/.config/alarm/low-battery-sound.mp3" + mpv "/home/q/.config/alarm/low-battery-sound.mp3" > /dev/null 2>&1 + fi + + if [ "$battery_level" -gt 80 ] && [ "$discharging" -eq 0 ]; then + dunstify -a "Battery" \ + "Battery is charged: ${battery_level}%" \ + -r 100 \ + -i "$notify_icons/battery-charged.png" fi sleep ${check_interval}s diff --git a/bin/ctpv b/bin/ctpv new file mode 100755 index 0000000..77f35a6 Binary files /dev/null and b/bin/ctpv differ diff --git a/bin/ctpvclear b/bin/ctpvclear new file mode 100755 index 0000000..dc894cf --- /dev/null +++ b/bin/ctpvclear @@ -0,0 +1,5 @@ +#!/bin/sh + +[ -z "$id" ] && id="$1" + +exec ctpv -c "$id" diff --git a/bin/last-pkg-updates b/bin/last-pkg-updates deleted file mode 100755 index f72b064..0000000 --- a/bin/last-pkg-updates +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -last_pkg_updates=$(grep 'pacman -Suuy' /var/log/pacman.log | tail -1 | tr -d '[' | cut -f 1 -d 'T') - -echo "Last update: $last_pkg_updates ($(date +'%Y-%m-%d'))" diff --git a/bin/last-update b/bin/last-update index 0e73aff..0f5507d 100755 --- a/bin/last-update +++ b/bin/last-update @@ -5,12 +5,11 @@ last_pkg_updates=$(grep 'pacman -Suuy' /var/log/pacman.log | tail -1 | tr -d '[' case $1 in "--notification") - dunstify -a "Updates" \ - "$num updates available" \ - "Last update: $last_pkg_updates ($(date +'%Y-%m-%d'))" \ + dunstify -a "Updates" \ -r 100 \ + "Updates" \ + "$num updates available\nLast update: $last_pkg_updates ($(date +'%Y-%m-%d'))" ;; esac - #echo "Last update: $last_pkg_updates ($(date +'%Y-%m-%d'))" diff --git a/bin/lf b/bin/lf new file mode 100755 index 0000000..0127874 Binary files /dev/null and b/bin/lf differ diff --git a/bin/restart b/bin/restart index 91fe34e..99ce653 100755 --- a/bin/restart +++ b/bin/restart @@ -2,25 +2,10 @@ if [ -z "$1" ] then - echo "./restart --picom/--polybar/--sxhkd"; + echo "./restart [service]"; exit 1; fi - -case $1 in - "--picom") - pkill -USR1 -x picom - dunstify "picom restarted" -t 3500 - ;; - - "--polybar") - pkill -USR1 -x polybar - dunstify "polybar restarted" -t 3500 - ;; - - "--sxhkd") - pkill -USR1 -x sxhkd - dunstify "sxhkd restarted" -t 3500 - ;; - -esac +pkill -USR1 -x $1 +dunstify "$1 restarted" -t 3500 +$1 & > /dev/null 2>&1 diff --git a/bin/swww b/bin/swww new file mode 100755 index 0000000..3d4d2ed Binary files /dev/null and b/bin/swww differ diff --git a/bin/swww-daemon b/bin/swww-daemon new file mode 100755 index 0000000..8f8202b Binary files /dev/null and b/bin/swww-daemon differ diff --git a/bin/telegram-bot-api b/bin/telegram-bot-api new file mode 100755 index 0000000..43dd2ab Binary files /dev/null and b/bin/telegram-bot-api differ diff --git a/bin/unmkbootimg b/bin/unmkbootimg new file mode 100755 index 0000000..2ba6b70 Binary files /dev/null and b/bin/unmkbootimg differ diff --git a/bin/upload-to-nextcloud b/bin/upload-to-nextcloud index 7264e7d..22f92c9 100755 --- a/bin/upload-to-nextcloud +++ b/bin/upload-to-nextcloud @@ -1,8 +1,8 @@ #!/bin/bash -username="user" -password="pass123456" -url="https://domain.nextcloud.com/remote.php/dav/files/$username" +username="q" +password="k6gHR-3DPiD-s5fow-pNbzr-4MfdG" +url="https://cloud.fakeowl1.com/remote.php/dav/files/$username" if [[ $# -lt 2 ]]; then echo "upload-to-nextcloud - upload directory to nextcloud" diff --git a/bin/user-acpid b/bin/user-acpid new file mode 100755 index 0000000..8182b85 Binary files /dev/null and b/bin/user-acpid differ diff --git a/bin/w-screenrecord b/bin/w-screenrecord new file mode 100755 index 0000000..4d03791 --- /dev/null +++ b/bin/w-screenrecord @@ -0,0 +1,9 @@ +#!/bin/bash + +SCREENCAST_FILE="$HOME/Videos/$(date +'%Y-%m-%d_%H:%M').mp4" + +geometry=$(slurp -d -f "%wx%h %x,%y") + +status=$(pkill -f "wf-recorder" || wf-recorder -f $SCREENCAST_FILE --codec=libx264) + +notify-send "Screen recording started" -i "$HOME/.config/dunst/icons/record.png" -t 1000 diff --git a/bin/wrappedhl b/bin/wrappedhl new file mode 100755 index 0000000..a283e05 --- /dev/null +++ b/bin/wrappedhl @@ -0,0 +1,8 @@ +#!/bin/sh + +cd ~ + +export _JAVA_AWT_WM_NONREPARENTING=1 +export XCURSOR_SIZE=24 + +exec Hyprland diff --git a/bin/yt-music b/bin/yt-music index 6895d9c..3f0fd4a 100755 --- a/bin/yt-music +++ b/bin/yt-music @@ -15,7 +15,7 @@ artist=`echo $artist | sed 's/ *$//g'` song=${array[1]} song=`echo $song | sed 's/ *$//g'` -yt-dlp $1 -x --audio-format mp3 -o "$filename" $3 +yt-dlp $1 -x --verbose --audio-format mp3 -o "$filename" $3 id3v2 -a "${artist}" "$filename" id3v2 -t "${song}" "$filename"