From 218a513d605dc37dc4131c96763735d3b6700935 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Mon, 18 Nov 2024 11:43:34 +0530 Subject: [PATCH] more ignores --- dunst/dunstrc | 2 +- foot/foot.ini | 4 +-- hypr/hyprland.conf | 31 ++++++++++++-------- hypr/info | 6 ++-- hypr/volume | 8 ++++-- nvim/init.lua | 19 ++++++------- nvim/lazy-lock.json | 28 +++++++++--------- starship.toml | 69 --------------------------------------------- zed/settings.json | 36 +++++++++++++++++++++-- 9 files changed, 85 insertions(+), 118 deletions(-) delete mode 100644 starship.toml diff --git a/dunst/dunstrc b/dunst/dunstrc index ca9d7b6..28cbdba 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -214,7 +214,7 @@ enable_recursive_icon_lookup = true # Set icon theme (only used for recursive icon lookup) - icon_theme = Papirus + icon_theme ="Papirus" # You can also set multiple icon themes, with the leftmost one being used first. # icon_theme = "Adwaita, breeze" diff --git a/foot/foot.ini b/foot/foot.ini index 7bf2466..43c7fd1 100644 --- a/foot/foot.ini +++ b/foot/foot.ini @@ -8,7 +8,7 @@ term=xterm-256color # title=foot # locked-title=no -font=IBM Plex Mono:size=13.5 +font=Iosevka Term:size=13.5 #font-bold= #font-italic=Victor Mono:style=Italic:size=12 #font-bold-italic= @@ -18,7 +18,7 @@ font=IBM Plex Mono:size=13.5 # vertical-letter-offset=0 # underline-offset= box-drawings-uses-font-glyphs=yes -# dpi-aware=auto +# dpi-aware=yes # initial-window-size-pixels=700x500 # Or, # initial-window-size-chars= diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index b3a8735..6eccd82 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -1,5 +1,5 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=eDP-1,highres,auto,1.5,vrr,0,bitdepth,10 +monitor=eDP-1,highrr,auto,1.5,vrr,0,bitdepth,10 $hypr_dir="$HOME/.config/hypr" $accent=6FAAFF @@ -67,10 +67,13 @@ decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 - drop_shadow = yes - shadow_range = 3 - shadow_render_power = 2 - col.shadow = rgba(1a1a1aee) + shadow { + enabled = true + range = 3 + render_power = 2 + color = rgba(1a1a1aee) + } + blur { enabled = yes size = 8 @@ -133,8 +136,8 @@ bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d -bind = $mainMod,Tab,cyclenext, -bind = $mainMod,Tab,bringactivetotop, +bind = ALT,Tab,cyclenext, +bind = ALT,Tab,bringactivetotop, # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 @@ -171,7 +174,7 @@ bind = $mainMod, Q, exec, $hypr_dir/dmenu_run_history bind = $mainMod, G, exec, $hypr_dir/rungame bind = $mainMod, SPACE, exec, $hypr_dir/bemoji bind = $mainMod, A, exec, [workspace 1] $browser -bind = $mainMod, C, exec, [workspace 3] code +bind = $mainMod, C, exec, [workspace 3] zeditor bind = $mainMod, E, exec, [workspace 3] pcmanfm bind = $mainMod, B, exec, $hypr_dir/bkmark "add" bind = $mainMod, I, exec, $hypr_dir/bkmark @@ -190,9 +193,9 @@ bind = $mainMod, F12, exec, $hypr_dir/date bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list' #media keys -binde =, XF86AudioLowerVolume, exec, pamixer --set-limit 140 --allow-boost -d 2 && $hypr_dir/volume -binde =, XF86AudioRaiseVolume, exec, pamixer --set-limit 140 --allow-boost -i 2 && $hypr_dir/volume -binde =, XF86AudioMute, exec, pamixer --set-limit 140 --allow-boost -t && $hypr_dir/volume +binde =, XF86AudioLowerVolume, exec, $hypr_dir/volume set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 2%- +binde =, XF86AudioRaiseVolume, exec, $hypr_dir/volume set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 2%+ +binde =, XF86AudioMute, exec, $hypr_dir/volume set-mute @DEFAULT_AUDIO_SINK@ toggle binde =, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket" binde =, XF86AudioPause, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket" binde =, XF86Launch2, exec, $HOME/repos_scripts/yt-music search_play #why not :) @@ -206,7 +209,6 @@ windowrulev2 = workspace 1,class:^(google-chrome)$ windowrulev2 = workspace 1,class:^(firefox)$ windowrulev2 = workspace 4,class:^(Google-chrome)$ windowrulev2 = workspace 3,class:^(mpv)$ -windowrulev2 = workspace 3,class:^([c|C]ode) #windowrulev2 = workspace 4,class:^(org.pulseaudio.pavucontrol)$ windowrulev2 = workspace 4,class:^(org.freedesktop.Xwayland)$ windowrulev2 = fullscreen,class:^(org.freedesktop.Xwayland)$ @@ -214,6 +216,11 @@ windowrulev2 = workspace 4,class:^(virt-manager)$ windowrulev2 = bordercolor rgba(64f2a4FF), xwayland: 1 windowrulev2 = workspace 3,class:^(Waydroid)$ windowrulev2 = pseudo, class:^(Waydroid)$ +windowrulev2 = workspace 3,title:^(Picture-in-Picture)$ +windowrulev2 = size 640 360, title:(Picture-in-Picture) +windowrulev2 = pin, title:^(Picture-in-Picture)$ +windowrulev2 = move 100%-641 100%-361, title:(Picture-in-Picture) +windowrulev2 = float, title:^(Picture-in-Picture)$ #workspace rules workspace = 1, on-created-empty:$browser diff --git a/hypr/info b/hypr/info index 4b303d8..a04cacb 100755 --- a/hypr/info +++ b/hypr/info @@ -11,10 +11,10 @@ top -ibn5 -d1 | while read -r line;do temp=$(cat /sys/class/thermal/thermal_zone0/temp) : $((temp /= 1000)) bat_stats=$(cat /sys/class/power_supply/BAT0/status) - vol_stats=$(pamixer --get-volume-human) + vol_stats=$(wpctl get-volume @DEFAULT_AUDIO_SINK@) charge=$(cat /sys/class/power_supply/BAT0/capacity) [ "$bat_stats" = "Discharging" ] && { [ "$charge" -lt 20 ] && bat_icon=🪫 || bat_icon=šŸ”‹ ;} || bat_icon=šŸ”Œ - [ "$vol_stats" = "muted" ] && vol_icon=šŸ”‡ || vol_icon=šŸ”Š - notify-send -e -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $cpu\nšŸŒ”ļø Cpu Temp : $temp °C\nšŸ”³ RAM : $mem\n$bat_icon Battery : $charge (${bat_stats})\nā˜€ļø Brightness : $("$(dirname "$0")"/brightness s)%\n$vol_icon Volume : $vol_stats\nšŸŽµ $SONG - $ARTIST" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 & + printf '%s' "$vol_stats" | grep -q 'MUTED' && vol_icon=šŸ”‡ || vol_icon=šŸ”Š + notify-send -e -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $cpu\nšŸŒ”ļø Cpu Temp : $temp °C\nšŸ”³ RAM : $mem\n$bat_icon Battery : $charge (${bat_stats})\nā˜€ļø Brightness : $("$(dirname "$0")"/brightness s)%\n$vol_icon Volume : $(printf '%s' "$vol_stats" | tr -cd '[0-9]' | sed 's|^0||g')%\nšŸŽµ $SONG - $ARTIST" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 & fi done diff --git a/hypr/volume b/hypr/volume index 3f1f88e..2b9e497 100755 --- a/hypr/volume +++ b/hypr/volume @@ -1,9 +1,11 @@ #!/bin/sh -vol_int=$(pamixer --get-volume) +#shellcheck disable=SC2068 +wpctl $@ +vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@) +vol_int=$(printf '%s' "$vol" | tr -cd '[:digit:]') vol_icon="low" -#[ "$vol_int" -gt 0 ] && pamixer -u || pamixer -m [ "$vol_int" -gt 33 ] && vol_icon="medium" [ "$vol_int" -gt 66 ] && vol_icon="high" -pamixer --get-mute | sh && vol_icon="muted" +printf '%s' "$vol" | grep -q 'MUTED' && vol_icon="muted" notify-send -e -i "/usr/share/icons/Papirus/16x16/panel/audio-volume-$vol_icon.svg" "$vol_int %" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1000 diff --git a/nvim/init.lua b/nvim/init.lua index 0b0f7ce..5e69af9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -23,11 +23,8 @@ require('lazy').setup({ { 'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } }, 'https://gitlab.com/__tpb/monokai-pro.nvim', { "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "neovim/nvim-lspconfig", }, - { "nvim-telescope/telescope.nvim" }, - { - "windwp/nvim-autopairs", - config = function() require("nvim-autopairs").setup {} end - }, + { "nvim-telescope/telescope.nvim" }, + { "windwp/nvim-autopairs", config = function() require("nvim-autopairs").setup {} end }, 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lua', 'gpanders/nvim-parinfer', @@ -184,12 +181,12 @@ require('lualine').setup { --nnoremap lua require'dap'.step_out() --dap server -local dap = require('dap') - dap.adapters.python = { - type = 'executable'; - command = os.getenv('HOME') .. '/.virtualenvs/tools/bin/python'; - args = { '-m', 'debugpy.adapter' }; -} +--local dap = require('dap') +-- dap.adapters.python = { +-- type = 'executable'; +-- command = os.getenv('HOME') .. '/.virtualenvs/tools/bin/python'; +-- args = { '-m', 'debugpy.adapter' }; +--} --treesitter diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index ea06b03..ba90fd2 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,26 +1,26 @@ { - "LuaSnip": { "branch": "master", "commit": "b84eeb3641b08324287587b426ec974b888390d9" }, + "LuaSnip": { "branch": "master", "commit": "2737edc9e674e537dc0a97e3405658d57d2d31ed" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, - "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" }, - "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, - "lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "f2acd4a21db1ca0a12559e7a9f7cdace3bdbfb09" }, + "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, + "friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" }, + "lazy.nvim": { "branch": "main", "commit": "60cf258a9ae7fffe04bb31141141a91845158dcc" }, + "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "4d0e5b49363cac187326998b96aa6a2884e0e89b" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "monokai-pro.nvim": { "branch": "main", "commit": "8ba1fea7774e7c522b006091a9adb32b5cef95b9" }, - "nvim-autopairs": { "branch": "master", "commit": "48ca9aaee733911424646cb1605f27bc01dedbe3" }, - "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, + "nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" }, + "nvim-cmp": { "branch": "main", "commit": "f17d9b4394027ff4442b298398dfcaab97e40c4f" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, - "nvim-dap": { "branch": "master", "commit": "2b428ff2632e73295e9decbcf1c40d8e26213305" }, - "nvim-dap-python": { "branch": "master", "commit": "d777c2b32ed39f61209c09bede28d7491621a631" }, - "nvim-lspconfig": { "branch": "master", "commit": "037ea0901ce9a28cfcaa36302618f06d2e164fbf" }, + "nvim-dap": { "branch": "master", "commit": "8517126e9323e346f6a99b3b594c5a940b914dcd" }, + "nvim-dap-python": { "branch": "master", "commit": "3e3dd98d4d83715c9e0e429b4a5da7bd706e6ceb" }, + "nvim-lspconfig": { "branch": "master", "commit": "4cb925e96288a71409a86c84fd97f4434a95453e" }, "nvim-parinfer": { "branch": "master", "commit": "5ca09287ab3f4144f78ff7977fabc27466f71044" }, - "nvim-treesitter": { "branch": "master", "commit": "3de418e73d5b912096229aaeea8bb7aef5094e0d" }, + "nvim-treesitter": { "branch": "master", "commit": "d105f2cb7bdd1a920dce959da45035dc121bce2d" }, "packer.nvim": { "branch": "master", "commit": "ea0cc3c59f67c440c5ff0bbe4fb9420f4350b9a3" }, - "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, - "telescope.nvim": { "branch": "master", "commit": "5972437de807c3bc101565175da66a1aa4f8707a" } + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "telescope.nvim": { "branch": "master", "commit": "85922dde3767e01d42a08e750a773effbffaea3e" } } diff --git a/starship.toml b/starship.toml deleted file mode 100644 index bba4184..0000000 --- a/starship.toml +++ /dev/null @@ -1,69 +0,0 @@ -# ~/.config/starship.toml - -format = " (bold green)$all" - -#[character] -#success_symbol = "[└─>](bold green)" -#error_symbol = "[└─>](bold red)" - -[cmd_duration] -min_time = 70 -format = " took [$duration]($style)" -#show_notifications = true -#min_time_to_notify = 30_000 - -[directory] -format = "[$path]($style)[$lock_symbol]($lock_style) " - -[git_branch] -format = "on [$symbol$branch]($style) " -symbol = "šŸ£ " -style = "bold yellow" - -[git_commit] -commit_hash_length = 8 -style = "bold white" - -[git_state] -format = '[\($state( $progress_current of $progress_total)\)]($style) ' - -[git_status] -conflicted = "āš”ļø " -ahead = "šŸŽļø šŸ’Ø Ɨ${count} " -behind = "šŸ¢Ć—${count} " -diverged = "šŸ”± {ahead} {behind}" -untracked = "šŸ›¤ļø Ɨ${count} " -stashed = "šŸ“¦ " -modified = "šŸ“Ć—${count} " -staged = "šŸ—ƒļø Ɨ${count} " -renamed = "šŸ“›Ć—${count} " -deleted = "šŸ—‘ļø Ɨ${count} " -style = "brightwhite" -format = "$all_status $ahead_behind " - -[hostname] -ssh_only = true -format = "<[$hostname]($style)>" -trim_at = "-" -style = "bold dimmed white" -disabled = true - -[package] -disabled = true - -[python] -format = "[$symbol$version]($style) " -style = "bold green" - -[rust] -format = "[$symbol$version]($style) " -style = "bold green" - -[golang] -format = "[$symbol$version]($style) " -style = "bold green" - -[username] -style_user = "bold fg:#ffa500" -show_always = true - diff --git a/zed/settings.json b/zed/settings.json index 93dcff0..93a2946 100644 --- a/zed/settings.json +++ b/zed/settings.json @@ -7,15 +7,45 @@ // custom settings, run `zed: open default settings` from the // command palette { + "terminal": { + "dock": "bottom" + }, + "collaboration_panel": { + "dock": "right" + }, + "features": { + "inline_completion_provider": "none" + }, + "ssh_connections": [ + { + "host": "se-live", + "projects": [ + { + "paths": ["/var/www/qa/student_edge_admin"] + }, + { + "paths": ["/var/www/html/student_edge_admin"] + } + ] + } + ], "telemetry": { "diagnostics": false, "metrics": false }, + "soft_wrap": "editor_width", "ui_font_size": 16, - "buffer_font_size": 16, + "buffer_font_size": 14, + "ui_font_family": "IBM Plex Sans", + "buffer_font_family": "Helvetica", "theme": { "mode": "system", - "light": "Base16 Oxocarbon Dark", - "dark": "One Dark" + "light": "Base16 Monokai", + "dark": "Base16 Monokai" + }, + "languages": { + "PHP": { + "language_servers": ["intelephense", "!phpactor"] + } } }