We should delete this crap before shipping.

This commit is contained in:
coolnsx
2022-12-27 00:29:41 +05:30
parent fcd970e366
commit a5d425e3c8
5 changed files with 25 additions and 8 deletions

25
.zshrc
View File

@@ -1,7 +1,7 @@
#user-defined functions #user-defined functions
gtp(){ gtp(){
[ -z "$*" ] && commit=$(curl -s "https://raw.githubusercontent.com/ngerakines/commitment/master/commit_messages.txt" | shuf -n1) || commit=$* [ -z "$*" ] && commit=$(curl -s "https://raw.githubusercontent.com/ngerakines/commitment/master/commit_messages.txt" | shuf -n1) || commit=$*
git add . git add -p
git commit -m "$commit" git commit -m "$commit"
git push git push
unset commit unset commit
@@ -18,7 +18,7 @@ url() { curl -s https://0x0.st -F "file=@$*" | wl-copy && notify-send "Link copi
gtd () { gtd () {
[ -z "$*" ] && file=$(git diff --name-only | fzf --border=rounded --height=10 --layout=reverse | tr -d ' ') || file=$* [ -z "$*" ] && file=$(git diff --name-only | fzf --border=rounded --height=10 --layout=reverse | tr -d ' ') || file=$*
[ -z "$file" ] || git diff $file [ -z "$file" ] || git diff --name-only --relative --diff-filter=d $file | xargs bat --paging=never --diff
unset file unset file
} }
@@ -33,6 +33,23 @@ clshist() {
[ "$a" -gt 201 ] && sed -i "1,$((a - 200))d" ~/.histfile [ "$a" -gt 201 ] && sed -i "1,$((a - 200))d" ~/.histfile
} }
v() {
[ -z "$*" ] && file=$(fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}' -m) || file=$*
nvim -O $file
}
help() {
"$@" --help 2>&1 | bat -pp --language=help
}
addpkg(){
paru -Ss "$*" | sed -nE 's|^[a-z]*/([^ ]*).*|\1|p' | fzf --preview 'paru -Si {} | bat --language=yaml --color=always -pp' --preview-window right:65%:wrap | paru -S -
}
rmpkg(){
paru -Qs "$*" | sed -nE 's|^[a-z]*/([^ ]*).*|\1|p' | fzf --preview 'paru -Si {} | bat --language=yaml --color=always -pp' --preview-window right:65%:wrap | paru -Rcns -
}
# Lines configured by zsh-newuser-install # Lines configured by zsh-newuser-install
export EDITOR="nvim" export EDITOR="nvim"
export VISUAL="nvim" export VISUAL="nvim"
@@ -41,13 +58,13 @@ export OPENER="xdg-open"
export VIDEO="mpv" export VIDEO="mpv"
export WM="hyprland" export WM="hyprland"
export IMAGE="nsxiv" export IMAGE="nsxiv"
alias v="nvim -O" alias cat="bat -pp"
alias anime="$HOME/lol/ani-cli" alias anime="$HOME/lol/ani-cli"
alias cp="cp -v" alias cp="cp -v"
alias rm="rm -v" alias rm="rm -v"
alias mv="mv -v" alias mv="mv -v"
alias pgrep="pgrep -a" alias pgrep="pgrep -a"
alias grep="grep --color=auto -n" alias grep="grep --color=auto"
alias ncdu="ncdu --color dark" alias ncdu="ncdu --color dark"
alias ll="ls --color=auto -alh" alias ll="ls --color=auto -alh"
alias ls="ls --color=auto" alias ls="ls --color=auto"

View File

@@ -61,6 +61,7 @@ dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this preserve_split = yes # you probably want this
force_split=2
} }
master { master {
@@ -164,7 +165,6 @@ windowrulev2=workspace 2,class:^(foot)$
windowrulev2=workspace 3,class:^(pcmanfm)$ windowrulev2=workspace 3,class:^(pcmanfm)$
windowrulev2=workspace 3,class:^(mpv)$ windowrulev2=workspace 3,class:^(mpv)$
windowrulev2=workspace 3,class:^([c|C]ode) windowrulev2=workspace 3,class:^([c|C]ode)
windowrulev2=workspace 4,class:^(Skype)$
windowrulev2=workspace 4,class:^(pavucontrol)$ windowrulev2=workspace 4,class:^(pavucontrol)$
#startup applications #startup applications

View File

@@ -10,7 +10,7 @@ while [ $i -le "5" ];do
vol_stats=$(pamixer --get-mute) vol_stats=$(pamixer --get-mute)
[ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌 [ "$bat_stats" = "Discharging" ] && bat_icon=🔋 || bat_icon=🔌
[ "$vol_stats" = "true" ] && vol_icon=🔇 || vol_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🎵 $(cut -d ">" -f1 $HOME/.cache/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 $HOME/.cache/yt-music/current | cut -d":" -f2)" -r 2 -t 1500 &
: $((i+=1)) : $((i+=1))
sleep 1 sleep 1
done done

View File

@@ -23,7 +23,7 @@ close_on_unmount=1
focus_previous=0 focus_previous=0
side_pane_mode=places side_pane_mode=places
view_mode=list view_mode=list
show_hidden=1 show_hidden=0
sort=name;ascending; sort=name;ascending;
columns=name:200;desc:143;size;mtime; columns=name:200;desc:143;size;mtime;
toolbar=newtab;navigation;home; toolbar=newtab;navigation;home;

View File

@@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\0\0\0\xe\xff\0\0\x4\x37\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\x1\x2\x4\0\0\a\x80\0\0\a\x80\0\0\0\0\0\0\xe\xff\0\0\x4\x37) 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)
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1