Updated to current
This commit is contained in:
parent
c79881b41c
commit
4e391f7e4b
@ -1,7 +1,3 @@
|
||||
import = ["~/.config/alacritty/onedark.toml", "~/.config/alacritty/font.toml"]
|
||||
|
||||
live_config_reload = true
|
||||
|
||||
[window]
|
||||
padding = { x = 15, y = 15 }
|
||||
decorations = "None"
|
||||
@ -30,3 +26,7 @@ unfocused_hollow = false
|
||||
|
||||
[mouse]
|
||||
hide_when_typing = true
|
||||
|
||||
[general]
|
||||
live_config_reload = true
|
||||
import = ["~/.config/alacritty/onedark.toml", "~/.config/alacritty/font.toml"]
|
||||
|
@ -44,4 +44,4 @@ yellow = "#807476"
|
||||
blue = "#465b80"
|
||||
magenta = "#533969"
|
||||
cyan = "#385a73"
|
||||
white = "#e5e5e5"
|
||||
white = "#e5e5e5"
|
||||
|
@ -72,3 +72,6 @@ pidof -q polkit-gnome-authentication-agent-1 || { /usr/lib/polkit-gnome/polkit-g
|
||||
|
||||
# Fix cursor
|
||||
xsetroot -cursor_name left_ptr
|
||||
|
||||
# Fix dpi
|
||||
xrdb -merge "$HOME"/.Xresources
|
||||
|
@ -6,7 +6,7 @@ class = Dunst
|
||||
monitor = 0
|
||||
follow = mouse
|
||||
width = 300
|
||||
height = 300
|
||||
height = 120
|
||||
origin = top-right
|
||||
offset = 10x92
|
||||
indicate_hidden = yes
|
||||
|
@ -1,31 +0,0 @@
|
||||
position_mode = pointer
|
||||
stay_alive = 0
|
||||
tint2_look = 0
|
||||
terminal_exec = alacritty
|
||||
terminal_args = -e
|
||||
menu_width = 160
|
||||
menu_padding_top = 5
|
||||
menu_padding_right = 5
|
||||
menu_padding_bottom = 5
|
||||
menu_padding_left = 5
|
||||
menu_radius = 8
|
||||
menu_border = 0
|
||||
menu_halign = left
|
||||
sub_hover_action = 1
|
||||
item_margin_y = 5
|
||||
item_height = 30
|
||||
item_padding_x = 8
|
||||
item_radius = 6
|
||||
item_border = 0
|
||||
sep_height = 2
|
||||
font = Clarity City Bold 12px
|
||||
icon_size = 16
|
||||
icon_theme = Papirus-Dark
|
||||
arrow_string =
|
||||
color_menu_border = #ffffff 0
|
||||
color_menu_bg = #1f2329
|
||||
color_norm_bg = #ffffff 0
|
||||
color_norm_fg = #b8bfe5
|
||||
color_sel_bg = #23272e
|
||||
color_sel_fg = #b8bfe5
|
||||
color_sep_fg = #b3b3b3
|
@ -1,25 +0,0 @@
|
||||
Terminal ,openapp --floating ,/usr/share/icons/Papirus/32x32/apps/terminal.svg
|
||||
Web Browser ,openapp --browser ,/usr/share/icons/Papirus/32x32/apps/brave-browser.svg
|
||||
File Manager ,openapp --filemanager ,/usr/share/icons/Papirus/32x32/apps/org.xfce.filemanager.svg
|
||||
|
||||
^sep()
|
||||
|
||||
Widgets ,^checkout(wg) ,/usr/share/icons/Papirus/32x32/apps/kmenuedit.svg
|
||||
BSPWM ,^checkout(wm) ,/usr/share/icons/Papirus/32x32/apps/gnome-windows.svg
|
||||
Exit ,^checkout(exit) ,/usr/share/icons/Papirus/32x32/apps/system-shutdown.svg
|
||||
|
||||
^tag(wg)
|
||||
User Card ,openapp --usercard ,/usr/share/icons/Papirus/32x32/apps/system-users.svg
|
||||
Power Menu ,openapp --powermenu ,/usr/share/icons/Papirus/32x32/status/changes-allow.svg
|
||||
Calendar ,openapp --calendar ,/usr/share/icons/Papirus/32x32/apps/office-calendar.svg
|
||||
|
||||
^tag(wm)
|
||||
Change Theme ,openapp --rice ,/usr/share/icons/Papirus/32x32/apps/colors.svg
|
||||
Keybinds ,keybindingshelp ,/usr/share/icons/Papirus/32x32/apps/preferences-desktop-keyboard-shortcuts.svg
|
||||
Restart WM ,bspc wm -r ,/usr/share/icons/Papirus/32x32/apps/system-reboot.svg
|
||||
Quit ,bspc quit ,/usr/share/icons/Papirus/32x32/apps/system-log-out.svg
|
||||
|
||||
^tag(exit)
|
||||
Block computer ,physlock -d ,/usr/share/icons/Papirus/32x32/status/changes-prevent.svg
|
||||
Reboot ,systemctl reboot ,/usr/share/icons/Papirus/32x32/apps/system-reboot.svg
|
||||
Shutdown ,systemctl poweroff ,/usr/share/icons/Papirus/32x32/apps/system-shutdown.svg
|
|
@ -15,6 +15,8 @@ visualizer_type = "spectrum"
|
||||
visualizer_look = ●●
|
||||
visualizer_color = "13"
|
||||
visualizer_spectrum_smooth_look = "yes"
|
||||
visualizer_autoscale = "yes"
|
||||
visualizer_spectrum_smooth_look_legacy_chars = "no"
|
||||
|
||||
# GENERAL
|
||||
# ---
|
||||
@ -70,4 +72,4 @@ current_item_suffix = " $8"
|
||||
song_columns_list_format = "(50)[]{t|fr:Title} (0)[magenta]{a}"
|
||||
song_list_format = " {%t $R $8%a$8}|{%f $R $8%l$8} $8"
|
||||
song_status_format = "$b$2 $7 {$b$6$8 %t $6} $7 $8"
|
||||
song_window_title_format = "Now Playing .."
|
||||
song_window_title_format = "Now Playing .."
|
||||
|
@ -5,7 +5,7 @@
|
||||
;; Run `ip link | awk '/state UP/ {print $2}' | tr -d :` to get active network interface.
|
||||
|
||||
[system]
|
||||
sys_adapter = AC
|
||||
sys_battery = BAT1
|
||||
sys_graphics_card = intel_backlight
|
||||
sys_network_interface = wlan0
|
||||
sys_adapter = ucsi-source-psy-USBC000:002
|
||||
sys_battery = BAT0
|
||||
sys_graphics_card = amdgpu_bl0
|
||||
sys_network_interface = wlp8s0
|
Binary file not shown.
BIN
config/ranger/plugins/__pycache__/__init__.cpython-313.pyc
Normal file
BIN
config/ranger/plugins/__pycache__/__init__.cpython-313.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
# Websites
|
||||
ext x?html?, has brave, X, flag f = brave -- "$@"
|
||||
ext x?html?, has librewolf, X, flag f = librewolf -- "$@"
|
||||
|
||||
# Misc
|
||||
mime ^text, label editor = nvim -- "$@"
|
||||
@ -95,4 +95,4 @@ label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:
|
||||
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
||||
|
||||
# The very last action, so that it's never triggered accidentally, is to execute a program:
|
||||
mime application/x-executable = "$1"
|
||||
mime application/x-executable = "$1"
|
||||
|
@ -17,9 +17,8 @@ F1
|
||||
#####
|
||||
|
||||
# Apps (browser, editor, filemanager, music, and updater)
|
||||
shift + alt + {b,v,f,k,u}
|
||||
openapp {--browser,--nvim,--ranger, --music, --update}
|
||||
|
||||
shift + alt + {b,v,f,k,u,t,m,n}
|
||||
openapp {--browser,--nvim,--ranger, --music, --update, --terminal, --osmc, --nodeselector}
|
||||
|
||||
#|||----- System Keybindings -----|||#
|
||||
|
||||
@ -27,10 +26,6 @@ shift + alt + {b,v,f,k,u}
|
||||
alt + F1
|
||||
keybindingshelp
|
||||
|
||||
# jgmenu
|
||||
~button3
|
||||
xqp 0 $(xdo id -N Bspwm -n root) && jgmenu --csv-file=~/.config/jgmenu/menu.csv --config-file=~/.config/jgmenu/jgmenurc
|
||||
|
||||
# Scratchpad
|
||||
super + alt + o
|
||||
tdrop -a -w 70% -h 35% -y 0 -x 15% --class scratch alacritty --class=scratch
|
||||
@ -40,7 +35,7 @@ ctrl + super + alt + {p,r,q,l,k}
|
||||
{systemctl poweroff, systemctl reboot,bspc quit,physlock -d,xkill}
|
||||
|
||||
# Hide/Show Bar
|
||||
super + {h,u}
|
||||
ctrl + shift + {h,u}
|
||||
hidebar {-h,-u}
|
||||
|
||||
# Change transparency on focused window
|
||||
@ -123,7 +118,7 @@ super + c
|
||||
bspc node @/ --circulate {backward,forward}
|
||||
|
||||
# Change focus of the Node or Swap Nodes
|
||||
super + {_,shift + }{Left,Down,Up,Right}
|
||||
super + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# Switch workspace
|
||||
@ -172,4 +167,4 @@ super + alt + shift + {Left,Down,Up,Right}
|
||||
|
||||
# move a floating window
|
||||
alt + shift {Left,Down,Up,Right}
|
||||
bspc node -v {-10 0,0 10,0 -10,10 0}
|
||||
bspc node -v {-10 0,0 10,0 -10,10 0}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#files: 820 version: 5.9
|
||||
#files: 840 version: 5.9
|
||||
|
||||
_comps=(
|
||||
'-' '_precommand'
|
||||
@ -123,6 +123,7 @@ _comps=(
|
||||
'bunzip2' '_bzip2'
|
||||
'burst' '_mh'
|
||||
'busctl' '_busctl'
|
||||
'bwrap' '_bwrap'
|
||||
'bzcat' '_bzip2'
|
||||
'bzegrep' '_grep'
|
||||
'bzfgrep' '_grep'
|
||||
@ -134,6 +135,12 @@ _comps=(
|
||||
'cabal' '_cabal'
|
||||
'cal' '_cal'
|
||||
'calendar' '_calendar'
|
||||
'calibre' '_calibre'
|
||||
'calibredb' '_calibre'
|
||||
'calibre-debug' '_calibre'
|
||||
'calibre-server' '_calibre'
|
||||
'calibre-smtp' '_calibre'
|
||||
'cargo' '_cargo'
|
||||
'cat' '_cat'
|
||||
'catchsegv' '_precommand'
|
||||
'cc' '_gcc'
|
||||
@ -164,6 +171,7 @@ _comps=(
|
||||
'chroot' '_chroot'
|
||||
'chrt' '_chrt'
|
||||
'chsh' '_chsh'
|
||||
'chwd' '_chwd'
|
||||
'ci' '_rcs'
|
||||
'cifsiostat' '_sysstat'
|
||||
'cinder' '_openstack'
|
||||
@ -217,6 +225,7 @@ _comps=(
|
||||
'ctags' '_ctags'
|
||||
'ctags-exuberant' '_ctags'
|
||||
'ctags-universal' '_ctags'
|
||||
'ctr' '_ctr'
|
||||
'curl' '_curl'
|
||||
'cut' '_cut'
|
||||
'cvs' '_cvs'
|
||||
@ -261,6 +270,8 @@ _comps=(
|
||||
'dmesg' '_dmesg'
|
||||
'dmidecode' '_dmidecode'
|
||||
'doas' '_doas'
|
||||
'docker' '_docker'
|
||||
'dolphin' '_dolphin'
|
||||
'domainname' '_yp'
|
||||
'dos2unix' '_dos2unix'
|
||||
'drill' '_drill'
|
||||
@ -270,6 +281,10 @@ _comps=(
|
||||
'dsh' '_dsh'
|
||||
'dtruss' '_dtruss'
|
||||
'du' '_du'
|
||||
'_dunst' '_dunst'
|
||||
'dunst' '_dunst'
|
||||
'_dunstctl' '_dunstctl'
|
||||
'dunstctl' '_dunstctl'
|
||||
'dvibook' '_dvi'
|
||||
'dviconcat' '_dvi'
|
||||
'dvicopy' '_dvi'
|
||||
@ -282,6 +297,11 @@ _comps=(
|
||||
'dwb' '_webbrowser'
|
||||
'e2label' '_e2label'
|
||||
'eatmydata' '_precommand'
|
||||
'ebook-convert' '_calibre'
|
||||
'ebook-edit' '_calibre'
|
||||
'ebook-meta' '_calibre'
|
||||
'ebook-polish' '_calibre'
|
||||
'ebook-viewer' '_calibre'
|
||||
'ecasound' '_ecasound'
|
||||
'echotc' '_echotc'
|
||||
'echoti' '_echoti'
|
||||
@ -317,12 +337,14 @@ _comps=(
|
||||
'express' '_webbrowser'
|
||||
'extcheck' '_java'
|
||||
'extractres' '_psutils'
|
||||
'eza' '_eza'
|
||||
'fakeroot' '_fakeroot'
|
||||
'false' '_nothing'
|
||||
'fc' '_fc'
|
||||
'fc-list' '_xft_fonts'
|
||||
'fc-match' '_xft_fonts'
|
||||
'feh' '_feh'
|
||||
'fetch-ebook-metadata' '_calibre'
|
||||
'fetchmail' '_fetchmail'
|
||||
'ffmpeg' '_ffmpeg'
|
||||
'fg' '_jobs_fg'
|
||||
@ -346,6 +368,7 @@ _comps=(
|
||||
'fixwpps' '_psutils'
|
||||
'fixwwps' '_psutils'
|
||||
'flac' '_flac'
|
||||
'flatpak' '_flatpak'
|
||||
'flex' '_flex'
|
||||
'flex++' '_flex'
|
||||
'flipdiff' '_patchutils'
|
||||
@ -421,6 +444,7 @@ _comps=(
|
||||
'ggetopt' '_getopt'
|
||||
'ggrep' '_grep'
|
||||
'ggv' '_gnome-gv'
|
||||
'gh' '_gh'
|
||||
'ghead' '_head'
|
||||
'ghostscript' '_ghostscript'
|
||||
'ghostview' '_pspdf'
|
||||
@ -590,6 +614,7 @@ _comps=(
|
||||
'iftop' '_iftop'
|
||||
'ifup' '_net_interfaces'
|
||||
'ijoin' '_ispell'
|
||||
'img2sixel' '_img2sixel'
|
||||
'import' '_imagemagick'
|
||||
'inc' '_mh'
|
||||
'includeres' '_psutils'
|
||||
@ -693,10 +718,11 @@ _comps=(
|
||||
'lpr' '_lp'
|
||||
'lprm' '_lp'
|
||||
'lpstat' '_lp'
|
||||
'lrf2lrs' '_calibre'
|
||||
'lrfviewer' '_calibre'
|
||||
'ls' '_ls'
|
||||
'lsattr' '_lsattr'
|
||||
'lsblk' '_lsblk'
|
||||
'lsd' '_lsd'
|
||||
'lsdiff' '_patchutils'
|
||||
'lsinitcpio' '_mkinitcpio'
|
||||
'lsmod' '_modutils'
|
||||
@ -746,7 +772,6 @@ _comps=(
|
||||
'mencal' '_mencal'
|
||||
'mere' '_mere'
|
||||
'merge' '_rcs'
|
||||
'meson' '_meson'
|
||||
'metaflac' '_flac'
|
||||
'mformat' '_mtools'
|
||||
'mgv' '_pspdf'
|
||||
@ -865,6 +890,7 @@ _comps=(
|
||||
'ogginfo' '_vorbis'
|
||||
'oksh' '_sh'
|
||||
'okular' '_okular'
|
||||
'onefetch' '_onefetch'
|
||||
'oomctl' '_oomctl'
|
||||
'openstack' '_openstack'
|
||||
'opera' '_webbrowser'
|
||||
@ -898,7 +924,6 @@ _comps=(
|
||||
'-parameter-' '_parameter'
|
||||
'parec' '_pulseaudio'
|
||||
'parecord' '_pulseaudio'
|
||||
'pass' '_pass'
|
||||
'passwd' '_users'
|
||||
'paste' '_paste'
|
||||
'pasuspender' '_pulseaudio'
|
||||
@ -968,6 +993,7 @@ _comps=(
|
||||
'podgrep' '_perl_modules'
|
||||
'podpath' '_perl_modules'
|
||||
'podtoc' '_perl_modules'
|
||||
'poetry' '_poetry'
|
||||
'poff' '_pon'
|
||||
'policytool' '_java'
|
||||
'polybar' '_polybar'
|
||||
@ -1064,6 +1090,7 @@ _comps=(
|
||||
'resolvectl' '_resolvectl'
|
||||
'restart' '_initctl'
|
||||
'retawq' '_webbrowser'
|
||||
'rg' '_rg'
|
||||
'rgrep' '_grep'
|
||||
'rgview' '_vim'
|
||||
'rgvim' '_vim'
|
||||
@ -1089,6 +1116,7 @@ _comps=(
|
||||
'rubber-pipe' '_rubber'
|
||||
'ruby' '_ruby'
|
||||
'ruby-mri' '_ruby'
|
||||
'run0' '_run0'
|
||||
'run-help' '_run-help'
|
||||
'rup' '_hosts'
|
||||
'rusage' '_precommand'
|
||||
@ -1108,6 +1136,8 @@ _comps=(
|
||||
'schedtool' '_schedtool'
|
||||
'scons' '_scons'
|
||||
'scp' '_ssh'
|
||||
'scrcpy' '_scrcpy'
|
||||
'scrcpy.exe' '_scrcpy'
|
||||
'screen' '_screen'
|
||||
'script' '_script'
|
||||
'scriptreplay' '_script'
|
||||
@ -1264,6 +1294,7 @@ _comps=(
|
||||
'tkconch' '_twisted'
|
||||
'tkinfo' '_texinfo'
|
||||
'tla' '_tla'
|
||||
'tldr' '_tldr'
|
||||
'tload' '_tload'
|
||||
'tmux' '_tmux'
|
||||
'todo' '_devtodo'
|
||||
@ -1300,6 +1331,7 @@ _comps=(
|
||||
'type' '_which'
|
||||
'typeset' '_typeset'
|
||||
'udevadm' '_udevadm'
|
||||
'udisksctl' '_udisks2'
|
||||
'ulimit' '_ulimit'
|
||||
'uml_mconsole' '_uml'
|
||||
'uml_moo' '_uml'
|
||||
@ -1397,6 +1429,7 @@ _comps=(
|
||||
'-value-,XZ_OPT,-default-' '_xz'
|
||||
'-vared-' '_in_vared'
|
||||
'vared' '_vared'
|
||||
'varlinkctl' '_varlinkctl'
|
||||
'vcs_info_hookadd' '_vcs_info'
|
||||
'vcs_info_hookdel' '_vcs_info'
|
||||
'vi' '_vi'
|
||||
@ -1438,6 +1471,7 @@ _comps=(
|
||||
'wipefs' '_wipefs'
|
||||
'wodim' '_cdrecord'
|
||||
'wpa_cli' '_wpa_cli'
|
||||
'wpctl' '_wpctl'
|
||||
'write' '_users_on'
|
||||
'www' '_webbrowser'
|
||||
'xargs' '_xargs'
|
||||
@ -1670,17 +1704,21 @@ bindkey '^[,' _history-complete-newer
|
||||
bindkey '^[/' _history-complete-older
|
||||
bindkey '^[~' _bash_complete-word
|
||||
|
||||
autoload -Uz _alacritty _bootctl _bspc _busctl _checkupdates \
|
||||
_coredumpctl _curl _hostnamectl _journalctl _kernel-install \
|
||||
_libinput _localectl _loginctl _lsd _machinectl \
|
||||
_meson _mkinitcpio _mpv _networkctl _ninja \
|
||||
_oomctl _paccache _pacdiff _paclist _paclog-pkglist \
|
||||
_pacman _pacscripts _pacsearch _pacsort _pactree \
|
||||
_pass _playerctl _polybar _polybar_msg _pulseaudio \
|
||||
_rankmirrors _resolvectl _sd_hosts_or_user_at_host _sd_machines _sd_outputmodes \
|
||||
_sd_unit_files _systemctl _systemd _systemd-analyze _systemd-delta \
|
||||
_systemd-inhibit _systemd-nspawn _systemd-path _systemd-run _systemd-tmpfiles \
|
||||
_timedatectl _udevadm _updpkgsums _yay _yt-dlp \
|
||||
autoload -Uz _alacritty _bootctl _bspc _busctl _bwrap \
|
||||
_calibre _cargo _checkupdates _chwd _coredumpctl \
|
||||
_ctr _curl _docker _dolphin _dunst \
|
||||
_dunstctl _eza _flatpak _gh _hostnamectl \
|
||||
_img2sixel _journalctl _kernel-install _libinput _localectl \
|
||||
_loginctl _machinectl _mkinitcpio _mpv _networkctl \
|
||||
_ninja _onefetch _oomctl _paccache _pacdiff \
|
||||
_paclist _paclog-pkglist _pacman _pacscripts _pacsearch \
|
||||
_pacsort _pactree _pip _playerctl _poetry \
|
||||
_polybar _polybar_msg _pulseaudio _rankmirrors _resolvectl \
|
||||
_rg _run0 _scrcpy _sd_hosts_or_user_at_host _sd_machines \
|
||||
_sd_outputmodes _sd_unit_files _systemctl _systemd _systemd-analyze \
|
||||
_systemd-delta _systemd-inhibit _systemd-nspawn _systemd-path _systemd-run \
|
||||
_systemd-tmpfiles _timedatectl _tldr _udevadm _udisks2 \
|
||||
_updpkgsums _varlinkctl _wpctl _yay _yt-dlp \
|
||||
_zathura _cdr _all_labels _all_matches _alternative \
|
||||
_approximate _arg_compile _arguments _bash_completions _cache_invalid \
|
||||
_call_function _combination _complete _complete_debug _complete_help \
|
||||
@ -1837,4 +1875,4 @@ autoload -Uz _alacritty _bootctl _bspc _busctl _checkupdates \
|
||||
autoload -Uz +X _call_program
|
||||
|
||||
typeset -gUa _comp_assocs
|
||||
_comp_assocs=( '' )
|
||||
_comp_assocs=( '' )
|
||||
|
39
home/.zshrc
39
home/.zshrc
@ -1,11 +1,11 @@
|
||||
# Originally created by - https://github.com/gh0stzk
|
||||
|
||||
# Variables
|
||||
export VISUAL="${EDITOR}"
|
||||
export VISUAL='nvim'
|
||||
export EDITOR='nvim'
|
||||
export TERMINAL='alacritty'
|
||||
export BROWSER='brave'
|
||||
export HISTORY_IGNORE="(ls|dir|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
|
||||
export BROWSER='librewolf'
|
||||
export HISTORY_IGNORE='(ls|dir|cd|pwd|exit|sudo reboot|history|cd -|cd ..)'
|
||||
|
||||
if [ -d "$HOME/.local/bin" ] ;
|
||||
then PATH="$HOME/.local/bin:$PATH"
|
||||
@ -86,20 +86,39 @@ fi
|
||||
|
||||
# Alias
|
||||
alias mirrors="sudo reflector --verbose --latest 5 --country 'United States' --age 6 --sort rate --save /etc/pacman.d/mirrorlist"
|
||||
|
||||
alias grub-update="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
alias maintenance="yay -Sc && sudo pacman -Scc"
|
||||
alias trim="sudo fstrim -av"
|
||||
alias update="yay -Syu --combinedupgrade="false""
|
||||
|
||||
alias vm-on="sudo systemctl start libvirtd.service"
|
||||
alias vm-off="sudo systemctl stop libvirtd.service"
|
||||
|
||||
alias music="ncmpcpp"
|
||||
|
||||
alias ls='lsd -a --group-directories-first'
|
||||
alias dir='lsd -a --group-directories-first'
|
||||
alias ll='lsd -la --group-directories-first'
|
||||
alias ls='eza --icons=always --color=always --group-directories-first -a'
|
||||
alias dir='eza --icons=always --color=always --group-directories-first -a'
|
||||
alias ll='eza --icons=always --color=always --group-directories-first -la'
|
||||
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
||||
alias df='df -BG -xtmpfs -xdevtmpfs -xefivarfs'
|
||||
alias tldr='tldr -L en'
|
||||
|
||||
# Autostart
|
||||
$HOME/.local/bin/colorscript -r
|
||||
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
|
||||
exec startx
|
||||
fi
|
||||
___MY_VMOPTIONS_SHELL_FILE="${HOME}/.jetbrains.vmoptions.sh"; if [ -f "${___MY_VMOPTIONS_SHELL_FILE}" ]; then . "${___MY_VMOPTIONS_SHELL_FILE}"; fi
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/usr/etc/profile.d/conda.sh" ]; then
|
||||
. "/usr/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/usr/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
|
@ -1,25 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Simple CLI for shell-color-scripts
|
||||
DIR_COLORSCRIPTS="$HOME/.local/share/asciiart"
|
||||
|
||||
fmt_help=" %-20s\t%-54s\n"
|
||||
list_colorscripts="$(/usr/bin/ls "${DIR_COLORSCRIPTS}" | cut -d ' ' -f 1 | nl)"
|
||||
length_colorscripts="$(/usr/bin/ls "${DIR_COLORSCRIPTS}" | wc -l)"
|
||||
|
||||
function _help() {
|
||||
echo "Description: A collection of terminal color scripts."
|
||||
echo ""
|
||||
echo "Usage: colorscript [OPTION] [SCRIPT NAME/INDEX]"
|
||||
printf "${fmt_help}" \
|
||||
"-h, --help, help" "Print this help." \
|
||||
"-l, --list, list" "List all installed color scripts." \
|
||||
"-r, --random, random" "Run a random color script." \
|
||||
"-e, --exec, exec" "Run a specified color script by SCRIPT NAME or INDEX."
|
||||
}
|
||||
|
||||
function _list() {
|
||||
echo "There are "$(ls "${DIR_COLORSCRIPTS}" | wc -l)" installed color scripts:"
|
||||
echo "${list_colorscripts}"
|
||||
}
|
||||
|
||||
function _random() {
|
||||
declare -i random_index=$RANDOM%$length_colorscripts
|
||||
declare -i random_index=$((RANDOM % length_colorscripts + 1))
|
||||
[[ $random_index -eq 0 ]] && random_index=1
|
||||
|
||||
random_colorscript="$(echo "${list_colorscripts}" | sed -n ${random_index}p \
|
||||
| tr -d ' ' | tr '\t' ' ' | cut -d ' ' -f 2)"
|
||||
# echo "${random_colorscript}"
|
||||
exec "${DIR_COLORSCRIPTS}/${random_colorscript}"
|
||||
}
|
||||
|
||||
@ -67,6 +75,9 @@ case "$#" in
|
||||
-h | --help | help)
|
||||
_help
|
||||
;;
|
||||
-l | --list | list)
|
||||
_list
|
||||
;;
|
||||
-r | --random | random)
|
||||
_random
|
||||
;;
|
||||
|
@ -19,9 +19,12 @@ case "$class" in
|
||||
outcome "state=floating sticky=on center=on"
|
||||
;;
|
||||
mpv)
|
||||
outcome "state=pseudo_tiled focus=on rectangle=849x477+0+0 center=on"
|
||||
outcome "state=floating focus=on rectangle=849x477+0+0 center=on"
|
||||
;;
|
||||
virt-manager)
|
||||
outcome "state=floating center=on"
|
||||
;;
|
||||
ranger)
|
||||
outcome "state=floating rectangle=900x700+0+0 center=on"
|
||||
;;
|
||||
esac
|
||||
|
@ -4,9 +4,9 @@ case $1 in
|
||||
polybar-msg cmd hide | bspc config top_padding 2 | bspc config bottom_padding 2
|
||||
exit;;
|
||||
-u | --unhide | unhide)
|
||||
polybar-msg cmd show | bspc config top_padding 48 | bspc config bottom_padding 48
|
||||
polybar-msg cmd show | bspc config top_padding 76 | bspc config bottom_padding 76
|
||||
exit;;
|
||||
*)
|
||||
echo "Invalid option"
|
||||
exit;;
|
||||
esac
|
||||
esac
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
# I don't remember if I made this script or not.
|
||||
|
||||
#colors
|
||||
#bold="(tput bold)"
|
||||
@ -90,10 +89,15 @@ distro() {
|
||||
}
|
||||
|
||||
# Get root partition space used
|
||||
storage() {
|
||||
root_storage() {
|
||||
df -h --output=used,size / | awk 'NR == 2 { print $1" / "$2 }'
|
||||
}
|
||||
|
||||
home_storage() {
|
||||
if mountpoint -q "/home"; then
|
||||
df -h --output=used,size /home | awk 'NR == 2 { print $1" / "$2 }'
|
||||
fi
|
||||
}
|
||||
# Get Memory usage
|
||||
mem() {
|
||||
free --mega | awk 'NR == 2 { print $3" / "$2" MB" }'
|
||||
@ -142,6 +146,7 @@ echo -e " ${c0} ┃ ${c9}(${c0}${c8}\_;/${c0}${c9})${c0} ┃ ${c1
|
||||
echo -e " ┃ ${c0}┃ ${c2}init${c3} $(get_init)"
|
||||
echo -e " ┃ I ${c1}${c0} Arch ┃ ${c7}de/wm${c3} $(get_de_wm)"
|
||||
echo -e " ┃ ┃ ${c5}up${c3} $(get_uptime)"
|
||||
echo -e " ┃ ┃ ${c1}disk${c3} $(storage)"
|
||||
echo -e " ┃ ┃ ${c1}root${c3} $(root_storage)"
|
||||
echo -e " ┃ ┃ ${c1}home${c3} $(home_storage)"
|
||||
echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━┛ ${c1}━━━${c2}━━━${c3}━━━${c4}━━━${c5}━━━${c6}━━━${c7}━━━"
|
||||
echo -e " "
|
||||
echo -e " "
|
||||
|
40
misc/bin/nodeselector
Executable file
40
misc/bin/nodeselector
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
get_term_size() {
|
||||
IFS='[;' read -sp $'\e7\e[9999;9999H\e[6n\e8' -d R -rs _ lines
|
||||
}
|
||||
listNodes() {
|
||||
for nodeList in $(bspc query -N -n .window | grep -v "$(bspc query -N -n)"); do
|
||||
echo $(xtitle -t 90 ${nodeList})
|
||||
done
|
||||
}
|
||||
getNodes() {
|
||||
count=0
|
||||
for nodeCount in $(bspc query -N -n .window | grep -v "$(bspc query -N -n)"); do
|
||||
count=$((count+1))
|
||||
export node${count}=$nodeCount
|
||||
done
|
||||
selectedNode="node$y"
|
||||
}
|
||||
getCursorPos() {
|
||||
echo -en "\E[6n" && read -sdR CURPOS && CURPOS=${CURPOS#*[} && y=$(printf ";"$CURPOS | cut -d';' -f2)
|
||||
}
|
||||
listNodes
|
||||
printf '\e[H'
|
||||
while [[ true ]]; do
|
||||
read -rsn1 input
|
||||
getCursorPos
|
||||
getNodes
|
||||
if [[ "$input" = "j" && $y -lt $count ]]; then
|
||||
printf '\e[B'
|
||||
elif [[ "$input" = "k" ]]; then
|
||||
printf '\e[A'
|
||||
elif [[ "$input" = "l" ]]; then
|
||||
bspc node --focus ${!selectedNode}
|
||||
clear
|
||||
break
|
||||
elif [[ "$input" = "q" ]]; then
|
||||
clear
|
||||
break
|
||||
fi
|
||||
done
|
@ -21,7 +21,7 @@ case "$1" in
|
||||
alacritty --hold --class updating,alacritty -o window.dimensions.lines=22 window.dimensions.columns=47 -e updates --print-updates
|
||||
;;
|
||||
--ranger)
|
||||
alacritty --class alacritty -e ranger
|
||||
alacritty --class ranger,alacritty -e ranger
|
||||
;;
|
||||
--nvim)
|
||||
alacritty -e nvim
|
||||
@ -32,9 +32,15 @@ case "$1" in
|
||||
--fetch)
|
||||
alacritty --hold --class floaterm,alacritty -o window.dimensions.lines=21 window.dimensions.columns=90 -e neofetch
|
||||
;;
|
||||
--browser)
|
||||
brave
|
||||
--nodeselector)
|
||||
alacritty --class floaterm,alacritty -o window.dimensions.lines=21 window.dimensions.columns=90 -e nodeselector
|
||||
;;
|
||||
--browser)
|
||||
cachy-browser
|
||||
;;
|
||||
--osmc)
|
||||
prismlauncher -l b1.7.3
|
||||
;;
|
||||
*)
|
||||
echo "Not a Valid Option"
|
||||
;;
|
||||
|
@ -39,4 +39,4 @@ case $1 in
|
||||
take_screenshot -i "$(xdotool getactivewindow)";;
|
||||
*)
|
||||
take_screenshot;;
|
||||
esac
|
||||
esac
|
||||
|
14
setup.sh
14
setup.sh
@ -37,9 +37,9 @@ clear
|
||||
printf '%s%sInstalling needed packages..%s\n\n' "${CNC}" "${CRE}" "${CNC}"
|
||||
|
||||
dependencies=(alacritty base-devel brightnessctl bspwm dunst feh git imagemagick jgmenu \
|
||||
libnotify libwebp lsd maim mpc mpd ncmpcpp neofetch neovim \
|
||||
libnotify libwebp eza maim mpc mpd ncmpcpp neofetch neovim \
|
||||
pacman-contrib pamixer papirus-icon-theme physlock picom playerctl \
|
||||
polkit-gnome polybar ranger rofi sxhkd \
|
||||
polkit-gnome polybar ranger rofi sxhkd tealdear \
|
||||
ttf-jetbrains-mono ttf-jetbrains-mono-nerd \
|
||||
ueberzug webp-pixbuf-loader xclip xdg-user-dirs xdo xdotool \
|
||||
xorg-xdpyinfo xorg-xkill xorg-xprop xorg-xrandr xorg-xsetroot xorg-xwininfo \
|
||||
@ -257,12 +257,12 @@ sleep 1
|
||||
clear
|
||||
|
||||
# Installing Brave
|
||||
printf '%s%sInstalling Brave%s\n\n' "${CNC}" "${CRE}" "${CNC}"
|
||||
if command -v brave >/dev/null 2>&1; then
|
||||
printf "%s%sBrave is already installed.%s" "${BLD}" "${CGR}" "${CNC}"
|
||||
printf '%s%sInstalling Librewolf%s\n\n' "${CNC}" "${CRE}" "${CNC}"
|
||||
if command -v librewolf >/dev/null 2>&1; then
|
||||
printf "%s%sLibrewolf is already installed.%s" "${BLD}" "${CGR}" "${CNC}"
|
||||
else
|
||||
printf "%s%sInstalling Brave.%s" "${BLD}" "${CBL}" "${CNC}"
|
||||
yay -S brave-bin --noconfirm
|
||||
printf "%s%sInstalling Librewolf.%s" "${BLD}" "${CBL}" "${CNC}"
|
||||
yay -S librewolf-bin --noconfirm
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user