Added some NullPointerExceptions - Happy easter, you bastards! :D

This commit is contained in:
coolnsx
2023-05-01 13:48:27 +05:30
parent 3a751e4ab6
commit 9fb07b739f
14 changed files with 58 additions and 38 deletions

19
.zshrc
View File

@@ -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 </dev/stdin || query=$*; git clone "$query"; }
@@ -104,7 +112,7 @@ export OPENER="xdg-open"
export VIDEO="mpv"
export WM="hyprland"
export IMAGE="nsxiv"
alias cat="bat -pp"
alias cat="bat -pp --color=always"
alias open="xdg-open"
alias cp="cp -v"
alias art="php artisan"
@@ -131,3 +139,4 @@ compinit
zstyle ':completion:*' menu select
eval "$(starship init zsh)"
[ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $HOME/.config/fzf-tab/fzf-tab.plugin.zsh

View File

@@ -228,7 +228,7 @@
### Misc/Advanced ###
# dmenu path.
dmenu = "/sbin/bemenu -i --fn 'Roboto 16' -l 10 -c -W 0.4 -B 3 -p 'dunst:'"
dmenu = "/sbin/bemenu -i --fn 'IBM Plex Sans 15' -l 10 -c -W 0.4 -B 3 -p 'dunst:'"
# Browser for opening urls in context menu.
browser = /usr/bin/xdg-open

View File

@@ -11,8 +11,8 @@
/** Generic window ***********************************/
.genwin {
background-color: rgba(39, 40, 34, 0.5);
//background-color: rgba(0,0,0,0);
//background-color: rgba(39, 40, 34, 0.5);
background-color: rgba(0,0,0,0);
border-radius: 16px;
}

View File

@@ -3,9 +3,9 @@
:monitor 1
:geometry (geometry :x "50px"
:y "50px"
:width "23%"
:width "25%"
:height "200px"
:anchor "bottom right")
:anchor "top right")
:stacking "bg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
@@ -16,9 +16,9 @@
:monitor 0
:geometry (geometry :x "50px"
:y "50px"
:width "23%"
:width "25%"
:height "200px"
:anchor "bottom right")
:anchor "top right")
:stacking "bg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
@@ -44,7 +44,7 @@
:monitor 0
:geometry (geometry :x "50"
:y "50"
:width "30%"
:width "35%"
:height "40px"
:anchor "bottom left")
:stacking "bg"
@@ -57,7 +57,7 @@
:monitor 1
:geometry (geometry :x "50"
:y "50"
:width "30%"
:width "35%"
:height "40px"
:anchor "bottom left")
:stacking "bg"

View File

@@ -1,7 +1,7 @@
[Settings]
gtk-theme-name=Materia-dark
gtk-icon-theme-name=ePapirus-Dark
gtk-font-name=Roboto 13
gtk-font-name=IBM Plex Sans 13
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ

View File

@@ -1,15 +1,17 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.2.1
htop_version=3.2.2
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
hide_kernel_threads=1
hide_userland_threads=0
hide_running_in_container=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=0
highlight_deleted_exe=1
shadow_distribution_path_prefix=0
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
@@ -36,17 +38,17 @@ column_meters_0=LeftCPUs Memory Swap
column_meter_modes_0=1 1 1
column_meters_1=RightCPUs Tasks LoadAverage Uptime
column_meter_modes_1=1 2 2 2
tree_view=0
tree_view=1
sort_key=47
tree_sort_key=0
tree_sort_key=47
sort_direction=-1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_MEM
.tree_sort_key=PID
.tree_view=0
.tree_sort_key=PERCENT_MEM
.tree_view=1
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1

View File

@@ -133,9 +133,10 @@ bind = $mainMod, Q, exec, dmenu_run_history
bind = $mainMod, A, exec, google-chrome-stable
bind = $mainMod, C, exec, code
bind = $mainMod, E, exec, pcmanfm
bind = $mainMod, B, exec, $HOME/repos_scripts/bkmark "add"
bind = $mainMod, I, exec, $HOME/repos_scripts/bkmark
bind = $mainMod SHIFT, B, exec, $HOME/repos_scripts/bkmark "rm"
bind = $mainMod, B, exec, $hypr_dir/bkmark "add"
bind = $mainMod, I, exec, $hypr_dir/bkmark
bind = $mainMod SHIFT, I, exec, $hypr_dir/bkmark "copy"
bind = $mainMod SHIFT, B, exec, $hypr_dir/bkmark "rm"
#bind = $mainMod, S, exec, skypeforlinux
bind = $mainMod, F11, exec, $hypr_dir/info
bind = $mainMod, F10, exec, $hypr_dir/bluetooth
@@ -169,7 +170,8 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
#startup applications
exec-once=dbus-update-activation-environment --systemd --all
exec-once=ssh-agent
exec-once=swaybg -i ~/wall/14.jpg
exec-once=swaybg -i ~/wall/9.png
exec-once=node ~/arrpc/src > /tmp/discordrpclog
exec-once=xrdb -merge $HOME/.config/.Xresource
exec-once=$hypr_dir/workspace 'focus'
exec-once=eww open-many music_0 time_0

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -17,7 +17,7 @@ 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 } },
@@ -28,7 +28,10 @@ require('lazy').setup({
dependencies = {
"nvim-telescope/telescope.nvim",
},
cmd = {"Artisan", "Composer"},
cmd = {"Sail", "Artisan", "Composer"},
keys = {
{"<leader>pa", ":Artisan<cr>"},
},
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,

View File

@@ -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" },

View File

@@ -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

View File

@@ -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