From 9fb07b739f7c555a3d646377a45b25faffe5e322 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Mon, 1 May 2023 13:48:27 +0530 Subject: [PATCH] Added some NullPointerExceptions - Happy easter, you bastards! :D --- .zshrc | 19 ++++++++++++++----- dunst/dunstrc | 2 +- eww/eww.scss | 4 ++-- eww/eww.yuck | 12 ++++++------ gtk-3.0/settings.ini | 2 +- htop/htoprc | 12 +++++++----- hypr/hyprland.conf | 10 ++++++---- hypr/info | 2 +- hypr/workspace | 2 +- mimeapps.list | 1 + nvim/init.lua | 14 +++++++++----- nvim/lazy-lock.json | 3 ++- pcmanfm/default/pcmanfm.conf | 7 ++++--- qt5ct/qt5ct.conf | 6 +++--- 14 files changed, 58 insertions(+), 38 deletions(-) diff --git a/.zshrc b/.zshrc index 996027e..3ff04ab 100644 --- a/.zshrc +++ b/.zshrc @@ -8,6 +8,8 @@ gtp(){ } megamind() { + len=$(printf '%s' "$*" | wc -c) + printf "———————————%s——————————— ⠀⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝ ⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇ @@ -22,7 +24,12 @@ megamind() { ⠀⠀⠀⣴⣿⣾⣿⣿⣿⡿⡽⡑⢌⠪⡢⡣⣣⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⡟⡾⣿⢿⢿⢵⣽⣾⣼⣘⢸⢸⣞⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠁⠇⠡⠩⡫⢿⣝⡻⡮⣒⢽⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -———————————————————————————————\n" "$*" +——————————————————————" "$*" + for i in $(seq $len); do + printf '—' + done + printf '\n' + unset len } gtb () { [ -z "$*" ] && br=$(git branch -a | fzf --border=rounded --layout=reverse --height=10 | tr -d ' ') || br=$* @@ -42,7 +49,7 @@ Tuesday 24th October Dussehra Sunday-Tuesday 12-14 November Diwali & Bhai dooj\n' | bat -pp -l tsv } -b64 () { printf "%s" "$1" | base64 $2; } +b64 () { printf "%s" "$1" | base64 $2 $3; } url() { [ -z "$2" ] && duration="1440" || duration=$2 @@ -63,8 +70,9 @@ url() { gtd () { preview="git diff $@ --color=always -- {-1}" - git diff $@ --name-only --relative | fzf --ansi --preview $preview --preview-window right:65%:wrap -0 - unset preview + file=$(git diff $@ --name-only --relative | fzf --ansi --preview $preview --preview-window right:65%:wrap -0) + [ -n "$file" ] && nvim $file + unset preview file } gtc () { [ -z "$*" ] && [ -p "/dev/stdin" ] && read -r query /tmp/discordrpclog exec-once=xrdb -merge $HOME/.config/.Xresource exec-once=$hypr_dir/workspace 'focus' exec-once=eww open-many music_0 time_0 diff --git a/hypr/info b/hypr/info index d6b7c09..4bd1441 100755 --- a/hypr/info +++ b/hypr/info @@ -10,7 +10,7 @@ while [ $i -le "5" ];do vol_stats=$(pamixer --get-mute) [ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌 [ "$vol_stats" = "true" ] && vol_icon=🔇 || vol_icon=🔊 - notify-send -i "lol" "<------------(STATS)------------>" "🧠 CPU usage : $(top -ibn1 | sed -nE 's_%Cpu\(s\):(.*)us.*_\1_p' | cut -d' ' -f2-3) %\n🌡️ Cpu Temp : $temp °C\n🔳 RAM : $mem MB / 7733 MB\n$bat_icon Battery : $(cat /sys/class/power_supply/BAT*/capacity) (${bat_stats})\n☀️ Brightness : $(light -G | cut -d'.' -f1)%\n$vol_icon Volume : $(pamixer --get-volume-human)\n🎵 $(pgrep -af mpvsocket >/dev/null && cut -d ">" -f1 /tmp/yt-music/current | cut -d":" -f2)" -r 2 -t 1500 & + notify-send -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $(top -ibn1 | sed -nE 's_%Cpu\(s\):(.*)us.*_\1_p' | cut -d' ' -f2-3) %\n🌡️ Cpu Temp : $temp °C\n🔳 RAM : $mem MB / 7733 MB\n$bat_icon Battery : $(cat /sys/class/power_supply/BAT*/capacity) (${bat_stats})\n☀️ Brightness : $(light -G | cut -d'.' -f1)%\n$vol_icon Volume : $(pamixer --get-volume-human)\n🎵 $(pgrep -af mpvsocket >/dev/null && cut -d ">" -f1 /tmp/yt-music/current | cut -d":" -f2)" -r 2 -t 1500 & : $((i+=1)) sleep 1 done diff --git a/hypr/workspace b/hypr/workspace index 8bf7d55..67ec3fa 100755 --- a/hypr/workspace +++ b/hypr/workspace @@ -5,7 +5,7 @@ setup_dual_monitor(){ sleep 2 if hyprctl monitors | grep -q "HDMI-A-1";then notify-send "Setting up dual monitor workflow" - wlr-randr --output 'HDMI-A-1' --custom-mode '1920x1080' + wlr-randr --output 'HDMI-A-1' --custom-mode '1900x1080@60' for i in $(seq 2 4);do hyprctl dispatch moveworkspacetomonitor "$i 0" done diff --git a/mimeapps.list b/mimeapps.list index 0fd8177..8311a97 100644 --- a/mimeapps.list +++ b/mimeapps.list @@ -26,6 +26,7 @@ application/x-shellscript=nvim.deskop text/x-c=nvim.deskop text/x-c++=nvim.deskop video/x-matroska=mpv.desktop +application/json=nvim.desktop; [Added Associations] video/x-matroska=mpv.desktop; diff --git a/nvim/init.lua b/nvim/init.lua index a097e53..cf491fa 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -17,18 +17,21 @@ if not vim.loop.fs_stat(lazypath) then lazypath, }) end -vim.opt.rtp:prepend(lazypath) +set.rtp:prepend(lazypath) require('lazy').setup({ 'wbthomason/packer.nvim', { '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", }, - { + { "adalessa/laravel.nvim", dependencies = { "nvim-telescope/telescope.nvim", }, - cmd = {"Artisan", "Composer"}, + cmd = {"Sail", "Artisan", "Composer"}, + keys = { + {"pa", ":Artisan"}, + }, config = function() require("laravel").setup() require("telescope").load_extension("laravel") @@ -44,6 +47,7 @@ require('lazy').setup({ 'mfussenegger/nvim-dap', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path', + 'mfussenegger/nvim-dap-python', 'norcalli/nvim-colorizer.lua', 'hrsh7th/cmp-cmdline', 'hrsh7th/nvim-cmp', @@ -98,7 +102,7 @@ local MY_FQBN = "esp8266:esp8266:nodemcu" lspconfig.arduino_language_server.setup { cmd = { "arduino-language-server", - "-cli-config", "/path/to/arduino-cli.yaml", + "-cli-config", "$HOME/.arduino15/arduino-cli.yaml", "-fqbn", MY_FQBN } @@ -106,7 +110,7 @@ lspconfig.arduino_language_server.setup { -- Enable some language servers with the additional completion capabilities offered by nvim-cmp -local servers = { 'bashls', 'pyright', 'lua_ls', 'clangd','intelephense','phpactor' } +local servers = { 'bashls', 'pyright', 'lua_ls', 'clangd','intelephense','phpactor' , 'html' ,'cssls'} for _, lsp in ipairs(servers) do lspconfig[lsp].setup { capabilities = capabilities, diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 12ce33c..5e712d6 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -8,7 +8,7 @@ "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "friendly-snippets": { "branch": "main", "commit": "009887b76f15d16f69ae1341f86a7862f61cf2a1" }, "laravel.nvim": { "branch": "main", "commit": "e04d31dae87ea24211658e1f42a73e5e582602bb" }, - "lazy.nvim": { "branch": "main", "commit": "14075657131b9a19883a8845c47f1ab65461cd6f" }, + "lazy.nvim": { "branch": "main", "commit": "0e230caab9466ae352e9aaa6a4327ebd3e72302a" }, "lualine.nvim": { "branch": "master", "commit": "e99d733e0213ceb8f548ae6551b04ae32e590c80" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "e4badf7984f7a5f0ac7dc10657dbedbd99a82f94" }, "mason.nvim": { "branch": "main", "commit": "c400270804059087e2d0041893a95c6bab4df3c1" }, @@ -17,6 +17,7 @@ "nvim-cmp": { "branch": "main", "commit": "feed47fd1da7a1bad2c7dca456ea19c8a5a9823a" }, "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" }, "nvim-dap": { "branch": "master", "commit": "c1bfcd89ef440a44d02ade7e71befb1e5aa358ca" }, + "nvim-dap-python": { "branch": "master", "commit": "65ccab83fb3d0b29ead6c765c1c52a1ed49592e8" }, "nvim-lspconfig": { "branch": "master", "commit": "1a2d5f5224c65b0709bf5da0ccd9cad29272083a" }, "nvim-parinfer": { "branch": "master", "commit": "82bce5798993f4fe5ced20e74003b492490b4fe8" }, "nvim-treesitter": { "branch": "master", "commit": "980f0816cc28c20e45715687a0a21b5b39af59eb" }, diff --git a/pcmanfm/default/pcmanfm.conf b/pcmanfm/default/pcmanfm.conf index 42a27ed..592776e 100644 --- a/pcmanfm/default/pcmanfm.conf +++ b/pcmanfm/default/pcmanfm.conf @@ -8,6 +8,7 @@ autorun=1 [autorun] x-content/win32-software=pcmanfm +x-content/image-dcf=*pcmanfm [ui] always_show_tabs=0 @@ -15,7 +16,7 @@ max_tab_chars=32 win_width=948 win_height=1066 maximized=1 -splitter_pos=152 +splitter_pos=239 media_in_new_tab=0 desktop_folder_new_win=0 change_tab_on_drop=1 @@ -24,8 +25,8 @@ focus_previous=0 side_pane_mode=places view_mode=list show_hidden=0 -sort=name;ascending; -columns=name:200;desc:143;size;mtime:946; +sort=name;descending; +columns=name:200;desc:143;size;mtime:870; toolbar=newtab;navigation;home; show_statusbar=1 pathbar_mode_buttons=0 diff --git a/qt5ct/qt5ct.conf b/qt5ct/qt5ct.conf index 16d7f68..68d845f 100644 --- a/qt5ct/qt5ct.conf +++ b/qt5ct/qt5ct.conf @@ -6,8 +6,8 @@ standard_dialogs=gtk3 style=Fusion [Fonts] -fixed=@Variant(\0\0\0@\0\0\0\f\0R\0o\0\x62\0o\0t\0o@&\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) -general=@Variant(\0\0\0@\0\0\0\f\0R\0o\0\x62\0o\0t\0o@&\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x39\x10) +fixed="Roboto,11,-1,5,50,0,0,0,0,0" +general="Roboto,11,-1,5,57,0,0,0,0,0" [Interface] activate_item_on_single_click=1 @@ -25,7 +25,7 @@ underline_shortcut=1 wheel_scroll_lines=3 [SettingsWindow] -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\x2\x4\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37) +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)) [Troubleshooting] force_raster_widgets=1