Skip to content

Commit

Permalink
AUTO_SAVE_Mon Dec 26 07:30:20 PM EST 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Dec 27, 2022
1 parent 5b71b26 commit c763784
Show file tree
Hide file tree
Showing 8 changed files with 167 additions and 116 deletions.
28 changes: 18 additions & 10 deletions bash/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,18 @@ rifs() { IFS=$' \t\n'; printf 'IFS=%q\n' "${IFS}" ; }
ppifs() { printf "IFS=%q" "${IFS}"; echo "" ; }
pifs() { printf "%q" "${IFS}"; echo "" ; }
acheck() { compgen -c | grep -x ${@} ; }
find_b() { find ${2+${1}} -mount ${[@]:1-"${1}"} ; }


#---------------------------------------------------------------------- #
#-ALIASES #
#---------------------------------------------------------------------- #
alias sudo=' sudo '
alias kctpv=' kill "$(pidof "ctpv")"'
alias flg=" pacil | grep -A 3 -B 18 'Installed as a dependency for another package' | grep -Pi -B 10 -A 11 '^Required by.*None' | grep -Pi -B 12 '^Optional\ for.*None$' | grep -Pio '^Name[\ \t:]*\K.*$'"
alias fl=" pacil | grep -A 3 -B 18 'Installed as a dependency for another package' | grep -Pi -B 10 -A 11 '^Required by.*None' | grep -Pio '^Name[\ \t:]+\K.*$'"
alias fle=' pacil | grep -A 3 -B 18 "Installed as a dependency for another package" | grep -Pi -B 10 -A 11 '"'^Required by [\ \t]*:\ None'"' | grep -Pi '"'^Name.*$'"
alias b=' cd "$HOME/bin/"'
alias c=' my_cd'
alias f=' $HOME/bin/my_find.sh'
alias comv=' command -V'
alias f=' find_b'
alias h=' cd "$HOME"'
alias t=' trash-put'
alias x=' $HOME/bin/FOR_BASHRC/stars_c.sh'
Expand Down Expand Up @@ -140,14 +139,19 @@ alias tyren=' perl-rename -v -n'
alias doren=' perl-rename -v'
alias quickren=" perl-rename -v 's/[^0-9a-zA-Z\-.]/_/g' *"
alias ka=' killall'

#alias pacman=' pac_func() { pacman "$@" 2>&1 | tee -a "$HOME/PACMAN_LOG.txt"; }; pac_func'
#PAC----------------------------------NON-LOCAL----------#
alias fl=" pacil | grep -A 3 -B 18 'Installed as a dependency for another package' | grep -Pi -B 10 -A 11 '^Required by.*None' | grep -Pio '^Name[\ \t:]+\K.*$'"
alias flg=" pacil | grep -A 3 -B 18 'Installed as a dependency for another package' | grep -Pi -B 10 -A 11 '^Required by.*None' | grep -Pi -B 12 '^Optional\ for.*None$' | grep -Pio '^Name[\ \t:]*\K.*$'"
alias fle=' pacil | grep -A 3 -B 18 "Installed as a dependency for another package" | grep -Pi -B 10 -A 11 '"'^Required by [\ \t]*:\ None'"' | grep -Pi '"'^Name.*$'"
alias reqs=' (read _a ; yay -Qi "${_a}" | grep -Pi "^(Required by:|Optional For:)" | grep -Pi "(Required by|Optional For|[^ \t]+)") <<<'
alias rqs=' (read _a ; yay -Qi "${_a}" | grep -Pi "(Required[ ]by[ \t]*[:]|Optional[ ]For[ \t]*[:])" | grep -Pio "(.*[:]|[ \t]*[^ \t]*)") <<<'
alias pigse=' (read _a _b; pacman -Ss "${_a}" | grep -C1 -Pi "${_b:-^[^ \t].*}") <<< '
alias pig=' (read _a _b; pacman -Ss "${_a}" | grep -C1 -Pi "${_b:-^[^ \t].*}") <<< '
alias pacse=' pacman -Ss'
alias pasce=' pacman -Ss'
alias paci=' pacman -Si'
alias pacr=' pacman -R'
alias yigse=' (read _a _b; yay -Ss "${_a}" | grep -C1 -Pi "${_b:-^[^ \t].*}") <<< '
alias yig=' (read _a _b; yay -Ss "${_a}" | grep -C1 -Pi "${_b:-^[^ \t].*}") <<< '
alias yayse=' yay --sortby="votes" -Ss'
Expand All @@ -160,7 +164,8 @@ alias pacil=' pacman -Qi'
alias yaysel=' yay -Qs'
alias yayil=' yay -Qi'
alias paclast=" expac --timefmt='%Y %m %d %R' '%l -- %n' | sort | grep"
alias pacclean=' yay -Scc; yay --clean'
alias pacl=' yay --clean'
alias pacln=' yay -Scc; yay --clean'
alias pacfrom=' pacman -Qo'
#PAC-----------------------------------------------------#

Expand Down Expand Up @@ -191,8 +196,9 @@ alias nimg=' nsxiv -0 .'
alias ldi=' fdisk -l -o +uuid'
alias szof=' du -ahc --time --max-depth=1'
alias bgsz=" sudo szof | grep -P '^[^ ]*G'"
alias l=" lsd --icon='never'"
alias ll=" lsd --icon='never' -rt --permission='octal' --date=+'[%_H:%M:%S|%a|%D]' --blocks='permission,user,date,name'"
alias pcal=' calcurse'
alias l=' lsd --icon="never"'
alias ll=" lsd --icon='never' -rt --permission='octal' --date=+'[%_H:%M:%S|%a|%D]' --blocks='permission,user,date,name'"
alias lst=" lsd --icon='never' -ltrh"
alias lsz=" lsd --icon='never' -lSrh"
alias psg=' ps ax | grep -Pi'
Expand Down Expand Up @@ -227,6 +233,7 @@ alias getfont=' fc-list -v | grep -i '
alias lc=' compgen -c'
alias slc=' compgen -c | grep -i'
alias list_coms=' compgen -c'
alias fnsc=' (read _x; $EDITOR <(xlsfonts | grep -F -- "--0-0-0-0-" | grep -Pi -- "${_x:-''}")) <<<'
#---------------------------------------------------------------------- #
#-QUICK-ADDED-ALIASES #
#---------------------------------------------------------------------- #
Expand Down Expand Up @@ -258,7 +265,7 @@ export ATHAME_USE_JOBS=1
if [ -d "$HOME/bin/" ] ; then PATH="$HOME/bin/:$PATH" ; fi
if [ -d "$HOME/bin/txt2man" ] ; then PATH="$HOME/bin/txt2man:$PATH" ; fi
if [ -d "$HOME/bin/i3wm" ] ; then PATH="$HOME/bin/i3wm:$PATH" ; fi
if [ -d "$HOME/bin/gman" ] ; then PATH="$HOME/bin/gman:$PATH" ; fi
if [ -d "$HOME/bin/mentat" ] ; then PATH="$HOME/bin/mentat:$PATH" ; fi
if [ -d "$HOME/bin/personal" ] ; then PATH="$HOME/bin/personal:$PATH" ; fi
if [ -d "$HOME/bin/ufw" ] ; then PATH="$HOME/bin/ufw:$PATH" ; fi
if [ -d "$HOME/bin/random" ] ; then PATH="$HOME/bin/random:$PATH" ; fi
Expand All @@ -269,9 +276,10 @@ if [ -d "/usr/bin" ] ; then PATH="/usr/bin/:$PATH" ;
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
set -o vi
shopt -s dotglob
#######shopt -s dotglob
#######shopt -s globstar
#---------------------------------------------------------------------- #
#-END #
#---------------------------------------------------------------------- #


2 changes: 1 addition & 1 deletion bash/inputrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set convert-meta off
set output-meta on
set colored-stats on
set colored-completion-prefix on
set mark-modified-lines on
set mark-modified-lines off
#set visible-stats on
set completion-map-case on
set completion-query-items 300
Expand Down
8 changes: 4 additions & 4 deletions i3wm/bindings_i3wm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$BM c $BORD1 move position center
$BM d $_ exec dmenu_run -b -i -nf '#00FF00' -nb '#000000' -l 10 -fn "Office Code Pro:pixelsize=20:antialias=true:autohint=true"
$BM e $_ layout toggle split
$BM f $_ $yad_hd Mousemove (mode)</span>' ; mode mousemove
$BM f $_ $xm_hd "Mousemove"; mode mousemove
$BM g $_ exec gnome-screenshot
$BM h $BORD1 focus left
$BM i $_ exec $HOME/bin/dmenu_websearch.sh
Expand All @@ -20,7 +20,7 @@
$BM n $BORD1 [instance="i3s_note"] scratchpad show
$BM o $_ fullscreen
$BM p $_ exec dunstctl close-all
$BM r $_ $yad_hd Resize (mode)</span>' ; mode resize
$BM r $_ $xm_hd "Resize"; mode resize
$BM s $_ layout stacking
$BM t $BORD1 [class="Tor Browser"] scratchpad show
$BM u $BORD1 [instance="i3s_st"] scratchpad show
Expand All @@ -29,7 +29,7 @@
$BM v $_ split v
$BM w $_ layout tabbed
$BM x $_ exec dmenu_run -b -nb "#000000" -l 10 -fn "Office Code Pro:pixelsize=20:antialias=true:autohint=true"
$BM y $_ $yad_hd Freekey (mode)</span>' ; mode freekey
$BM y $_ $xm_hd "Freekey"; mode freekey
#$BM z $_ exec dmenu_run -b -nb "#000000" -l 10 -fn "Office Code Pro:pixelsize=20:antialias=true:autohint=true"
#--------------------------------------------------[^a-z]-BINDS----------------------------------------------------#
$BM 1 $BORD1 workspace 1
Expand Down Expand Up @@ -62,7 +62,7 @@
$BM space $BORD1 focus mode_toggle
$BM Down $_ exec pamixer --decrease 1
$BM Up $_ exec pamixer --increase 1
$BM slash $_ $yad_hd Polymove (mode)</span>' ; mode polymove
$BM slash $_ $xm_hd "Polymove"; mode polymove
$BM backslash $_ [class=".*icecat.*"] scratchpad show
#---------------------------------------------[a-z]-SHIFT-BINDS----------------------------------------------------#
#SPEC a $_
Expand Down
8 changes: 4 additions & 4 deletions i3wm/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#---------------------------------------------------------------------|
# i3 config file (v4)
#-------------------------------------------------SPECIAL-BINDS-----------#
set $mode_be exec killall yad ; mode
set $yad_hd exec $HOME/bin/yad_html_dia.sh -theme 'BlackMATE' '<span foreground="#00FF00" size="x-large">
set $xmes_hd exec $HOME/bin/yad_html_dia.sh -theme 'BlackMATE' '<span foreground="#00FF00" size="x-large">
set $mode_be exec killall xmessage ; mode
set $xm_hd exec $HOME/bin/xmsg_quick.sh
set $xmes_hd exec $HOME/bin/xmsg_quick.sh
bindsym Super_L $BORD1 sticky toggle
bindsym Mod1+Shift+r exec --no-startup-id "xrdb ~/.Xresources; $HOME/bin/i3configcheck.sh --3"
bindsym Mod1+Shift+c exec --no-startup-id "xrdb ~/.Xresources; $HOME/bin/i3configcheck.sh --NOASK --0"
Expand Down Expand Up @@ -48,7 +48,7 @@
#-------------------------------------------------------SETTINGS----------#
floating_modifier $mod
focus_follows_mouse yes
floating_minimum_size 100 x 100
#floating_minimum_size 100 x 100
floating_maximum_size 1800 x 1080
#---TEXT------------------------------------------#
for_window [all] title_window_icon no
Expand Down
50 changes: 25 additions & 25 deletions i3wm/modes_i3wm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@
set $pptY_RE_UNIT_LARGE 2ppt
set $pptX_RE_UNIT_SMALL 1ppt
set $pptY_RE_UNIT_SMALL 1ppt
#---------------------------------------------------SET-MACROS-----------------------------------------------------#
set $MOUSE_MOVE_BIND\
bindsym Shift+h "exec xdotool mousemove_relative --polar 270 5"\
bindsym Shift+j "exec xdotool mousemove_relative --polar 180 5"\
bindsym Shift+k "exec xdotool mousemove_relative --polar 0 5"\
bindsym Shift+l "exec xdotool mousemove_relative --polar 90 5"\
bindsym h "exec xdotool mousemove_relative --polar 270 50"\
bindsym j "exec xdotool mousemove_relative --polar 180 50"\
bindsym k "exec xdotool mousemove_relative --polar 0 50"\
bindsym l "exec xdotool mousemove_relative --polar 90 50"\
bindsym f "exec xdotool click 1"\
bindsym d "exec xdotool click 3"\
bindsym s "exec xdotool click 2"\
bindsym g "exec xdotool click 4"\
bindsym v "exec xdotool click 5"

#---------------------------------------------------POLYBAR-MOVE---------------------------------------------------#
mode "polymove" {
bindsym Shift+j exec $HOME/bin/polybar_manipulate.sh "DOWN" "LEFT"
Expand Down Expand Up @@ -58,45 +74,29 @@ mode "resize" {
}

#---------------------------------------------------MOUSE-MOVEMENT-------------------------------------------------#
set $MOUSE_MOVE_BIND\
bindsym Shift+h "exec xdotool mousemove_relative --polar 270 5"\
bindsym Shift+j "exec xdotool mousemove_relative --polar 180 5"\
bindsym Shift+k "exec xdotool mousemove_relative --polar 0 5"\
bindsym Shift+l "exec xdotool mousemove_relative --polar 90 5"\
bindsym h "exec xdotool mousemove_relative --polar 270 50"\
bindsym j "exec xdotool mousemove_relative --polar 180 50"\
bindsym k "exec xdotool mousemove_relative --polar 0 50"\
bindsym l "exec xdotool mousemove_relative --polar 90 50"\
bindsym f "exec xdotool click 1"\
bindsym d "exec xdotool click 3"\
bindsym s "exec xdotool click 2"\
bindsym g "exec xdotool click 4"\
bindsym v "exec xdotool click 5"

mode "mousedown1" {
$MOUSE_MOVE_BIND
bindsym Escape exec "xdotool mouseup 1" ; $mode_be "mousemove" ; $yad_hd Mousemove (mode)</span>'
bindsym $mod+Escape exec "xdotool mouseup 1" ; $mode_be "mousemove" ; $yad_hd Mousemove (mode)</span>'
bindsym Escape exec "xdotool mouseup 1" ; $mode_be "mousemove" ; $xm_hd "Mousemove"
bindsym $mod+Escape exec "xdotool mouseup 1" ; $mode_be "mousemove" ; $xm_hd "Mousemove"
bindsym $mod+f exec "xdotool mouseup 1" ; $mode_be "default"
}

mode "mousedown2" {
$MOUSE_MOVE_BIND
bindsym Escape exec "xdotool mouseup 2" ; $mode_be "mousemove" ; $yad_hd Mousemove (mode)</span>'
bindsym $mod+Escape exec "xdotool mouseup 2" ; $mode_be "mousemove" ; $yad_hd Mousemove (mode)</span>'
bindsym Escape exec "xdotool mouseup 2" ; $mode_be "mousemove" ; $xm_hd "Mousemove"
bindsym $mod+Escape exec "xdotool mouseup 2" ; $mode_be "mousemove" ; $xm_hd "Mousemove"
bindsym $mod+f exec "xdotool mouseup 2" ; $mode_be "default"
}

mode "mousedown3" {
$MOUSE_MOVE_BIND
bindsym Escape exec "xdotool mouseup 3" ; $mode_be "mousemove" ; $yad_hd Mousemove (mode)</span>'
bindsym $mod+Escape exec "xdotool mouseup 3" ; $mode_be "mousemove" ; $yad_hd Mousemove (mode)</span>'
bindsym Escape exec "xdotool mouseup 3" ; $mode_be "mousemove" ; $xm_hd "Mousemove"
bindsym $mod+Escape exec "xdotool mouseup 3" ; $mode_be "mousemove" ; $xm_hd "Mousemove"
bindsym $mod+f exec "xdotool mouseup 3" ; $mode_be "default"
}


mode "mousemove" {
$MOUSE_MOVE_BIND
#------------------------IN-HERE-SINCE-CAN'T-PUT-MACRO-IN-MACRO W
bindsym $mod+h "exec xdotool mousemove_relative --polar 270 100"
bindsym $mod+j "exec xdotool mousemove_relative --polar 180 100"
Expand All @@ -110,9 +110,9 @@ mode "mousemove" {
bindsym f exec xdotool click 1
bindsym d exec xdotool click 3
bindsym s exec xdotool click 2
bindsym r exec "xdotool mousedown 1" ; $mode_be "mousedown1" ; $yad_hd Mousedown1 (mode)</span>'
bindsym w exec "xdotool mousedown 2" ; $mode_be "mousedown2" ; $yad_hd Mousedown2 (mode)</span>'
bindsym e exec "xdotool mousedown 3" ; $mode_be "mousedown3" ; $yad_hd Mousedown3 (mode)</span>'
bindsym r exec "xdotool mousedown 1" ; $mode_be "mousedown1" ; $xm_hd "Mousedown"
bindsym w exec "xdotool mousedown 2" ; $mode_be "mousedown2" ; $xm_hd "Mousedown"
bindsym e exec "xdotool mousedown 3" ; $mode_be "mousedown3" ; $xm_hd "Mousedown"
bindsym $mod+space focus floating; move position mouse
bindsym Escape $mode_be "default"
bindsym $mod+Escape $mode_be "default"
Expand Down
Loading

0 comments on commit c763784

Please sign in to comment.