Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Aug 6, 2024
1 parent 9b8112d commit 4345ac0
Show file tree
Hide file tree
Showing 6 changed files with 402 additions and 35 deletions.
2 changes: 1 addition & 1 deletion bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ source "${HOME}/bashrc_files/aliases"
source "${HOME}/.config/broot/launcher/bash/br"
mps 'xs' #setting PS1
#------------------BASH-HISTORY--------#
#xset -dpms

shopt -s histappend

#[[ ${BLE_VERSION-} ]] && ble-attach
13 changes: 6 additions & 7 deletions bashrc_files/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ alias clne=' fzf_cd -d "${CLONED}"'
#alias listpics=' fd . -tf -e jpg -e jpeg -e png -e tiff -e webp -e bmp -e avif -e ico -e gif -e gifv'
#alias listvids=' fd . -tf -e mov -e m4v -e mkv -e mpeg -e mp4 -e mpv -e webm -e avi -e amv'
#alias listmedia=" listaudio; listpics; listvids"
alias i3e=' fd . -d1 -tf "${XDG_CONFIG_HOME}/i3/" -X nvim'
alias i3e=' fd . -d1 -0 -a -tf "${XDG_CONFIG_HOME}/i3/" | sort -z | xargs -0 nvim -c "Buffers"'
alias full_i3e=' fd . -0 -a -tf "${XDG_CONFIG_HOME}/i3/" | sort -z | xargs -0 nvim -c "Buffers"'
alias gfi=' fd --search-path "/" -u --mount'
#--------------------------------------------------Python--------------------------------#
alias pips=' poetry search'
Expand All @@ -115,9 +116,9 @@ alias sman=' man -K --regex'
#--------------------------------------------------nvim----------------------------------#
alias nv=' nvim'
alias nvgr=' grep --file="-" -Pri "${HOME}/.config/nvim/" <<< '
alias full_ednv=' fd . -tf -0 "${HOME}/.config/nvim/" -X nvim'
alias ednv=' nvim "${HOME}/.config/nvim/lua/"*.lua "${HOME}/.config/nvim/"*.vim'
alias nva=' fd . --exact-depth 1 -tf -X nvim'
alias full_ednv=' fd . -tf -0 "${HOME}/.config/nvim/" -X nvim -c "Buffers"'
alias ednv=' nvim -c "Buffers" "${XDG_CONFIG_HOME}/nvim/lua/"*.lua "${XDG_CONFIG_HOME}/nvim/"*.vim'
alias nva=' fd . --exact-depth 1 -tf -0 -X nvim -c "Buffers"'
#--------------------------------------------------zathura-------------------------------#
alias z=' zathura --fork'
alias eread=' fd "[.](pdf|epub|mobi|azw2|djvu)$" | fzf --preview="ctpv {}" --print0 | xargs -0 -r -o zathura --fork; exit'
Expand Down Expand Up @@ -159,7 +160,6 @@ alias alas_np=' alias -p | grep -Pio "^[ \t]*alias[ \t]*\K[^=]*" | column'
alias cop=' xclip -selection "clipboard" -i -r <<< '
alias decl=' declare -f'
alias doren=' perl-rename -v'
alias ezchmod=' chmod og-rwx -R .'
alias rifs=" IFS=$' \t\n'"
alias pifs=' printf "\n_%q_\n\n" "${IFS}"'
alias getfont=' fc-list -v | grep -i '
Expand All @@ -180,7 +180,7 @@ alias tracenet=' strace'
alias upfonts=' fc-cache -f -v; echo $?'
alias getmonospacefonts='fc-list :spacing=100 | grep -i '
alias sctl=' journalctl | ccze -m ansi'
alias ebash=' nvim "${HOME}/.bashrc" "${HOME}/bashrc_files/"*; source "${HOME}/.bashrc"'
alias ebash=' nvim -c "Buffers" "${HOME}/.bashrc" "${HOME}/bashrc_files/"*; source "${HOME}/.bashrc"'
alias emime=' nvim "${HOME}/.config/mimeapps.list"'
alias ysb=' source "${HOME}/.bashrc"'
alias i3gr=' grep --file="-" -Pri "${HOME}/.config/i3/" <<< '
Expand All @@ -192,7 +192,6 @@ alias ydl=' cd "${VIDEOS}"; yt-dlp -f "bestvideo[height<=?1080]+bestaudio/
alias ystream=' stream_ytdl_mpv'
alias getkeysall=' xmodmap -pke'
alias betterkey=' showkey -k'

#- q #
#- u #
#alias m=' mimetype'
Expand Down
30 changes: 3 additions & 27 deletions i3wm/config
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
set_from_resource $BRAVE_SCALE brave.BRAVE_SCALE 1
#-------------------------------------------------------INCLUDE-----------#
include $BORDER_FILE
include regular_bindings_i3wm.conf
include modes_i3wm.conf
include regular_bindings.conf
include modes.conf
include windows.conf
#-------WORKSPACES--------------------------------------------------------#
#-------------------------------LEFT--------#
workspace 1 output $MON_1
Expand All @@ -83,31 +84,6 @@
floating_maximum_size 1920 x 1080
font pango:Hermit 7
show_marks yes
#-------ASSIGN------------------------------------------------------------#
#assign [class=".*Deluge.*"] workspace 12
#-------FOR_WINDOW--------------------------------------------------------#
for_window [class=".*qutebrowser.*"] floating enable, move scratchpad, resize set 1450px 900px, scratchpad show, move position center
for_window [instance="(i3s_note|i3s_st)"] $scratchpad_default
for_window [title="i3s_kitty_term"] $scratchpad_default
for_window [class=".*icecat.*"] $scratchpad_default
for_window [class="Tor Browser"] $scratchpad_default
for_window [class=".*Thunar.*"] $scratchpad_default
for_window [class=".*Xsane.*"] $scratchpad_default
for_window [class="Emacs"] $scratchpad_default
for_window [window_role="task_dialog"] $floating_default
for_window [window_role="Preferences"] $floating_default
for_window [window_role="pop-up"] $floating_default
for_window [window_role="bubble"] $floating_default
for_window [window_type="dialog"] $floating_default
for_window [window_type="popup_menu"] $floating_default
#-------SPECIAL-XMESSAGE-----------#
for_window [class="Xmessage"] floating enable
no_focus [class="Xmessage"]
#-------TITLE----------------------#
for_window [all] title_window_icon padding 8px
for_window [all] title_format "<big><big><big><span background='#000000' rise='7pt'> <small><small>%title</small></small> </span></big></big></big>"
#floating_minimum_size 100 x 100
focus_on_window_activation focus
#---------------------------------------------------------EXECS-----------#
#$EXC xcmenu
$EXC xcompmgr -n
Expand Down
209 changes: 209 additions & 0 deletions i3wm/modes.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@

#-------------------------------------------------------------------------------------------|
#------------<[--MAXIMILIAN-BALLARD--]>-----------------<[--MODES--]>-----------------------|
#-------------------------------------------------------------------------------------------|
# i3 config file (v4)
#-------------------------------------------------------------------------------------------|
#---------------------------------------------------SET-MACROS-----------------------------------------------------#
set $MovePosCenter move position center
set $MoveUp move up
set $MoveDown move down
set $MoveLeft move left
set $MoveRight move right
set $ResizeSet resize set
set $mode_be exec killall xmessage ; mode
set $mode_be_default exec killall xmessage ; mode "default"

#---------------------------------------------------POLYBAR-MOVE---------------------------------------------------#

mode "mark" {
bindsym m exec i3-input -F 'mark %s' -l 1 -P 'Mark: '
bindsym Return $mode_be_default
bindsym Ctrl+c $mode_be_default
bindsym Escape $mode_be_default
}

mode "polymove" {
bindsym Shift+j exec $HOME/bin/polybar_manipulate.sh "DOWN" "LEFT"
bindsym Shift+k exec $HOME/bin/polybar_manipulate.sh "DOWN" "RIGHT"
bindsym j exec $HOME/bin/polybar_manipulate.sh "UP" "LEFT"
bindsym k exec $HOME/bin/polybar_manipulate.sh "UP" "RIGHT"
bindsym semicolon exec $HOME/bin/polybar_manipulate.sh "TOGGLE"
bindsym p exec $HOME/bin/polybar_manipulate.sh "PRIMARY" "TOGGLE"
bindsym Shift+semicolon exec $HOME/bin/polybar_select_dmenu.sh
bindsym slash $mode_be_default
bindsym $mod+slash $mode_be_default
bindsym Return $mode_be_default
bindsym Ctrl+c $mode_be_default
bindsym Escape $mode_be_default
}

#---------------------------------------------------FREEKEY--------------------------------------------------------#
mode "freekey" {
#WORK IN PROGRESS
#bindsym --release Shift+bracketleft exec xdotool key 'Tab' ; exec xdotool key 'Tab' ; exec xdotool key 'Tab' ; exec sleep 0.2
#bindsym --release Shift+bracketright exec xdotool key 'Shift+Tab' ; exec xdotool key 'Shift+Tab' ; exec xdotool key 'Shift+Tab' ; exec sleep 0.2
#bindsym --release Shift+j exec xdotool key 'Alt+Left' ; $mode_be_default
#bindsym --release Shift+k exec xdotool key 'Alt+Right' ; $mode_be_default
bindsym $mod+y $mode_be_default
bindsym --release $mod+h exec xdotool key 'alt+Left'
bindsym --release $mod+l exec xdotool key 'alt+Right'
}

#---------------------------------------------------RESIZE---------------------------------------------------------#
mode "resize" {
bindsym e layout toggle split
#-----------------------------------
bindsym bracketleft $ResizeSet 50ppt 50ppt , $MovePosCenter
bindsym bracketright $ResizeSet 25ppt 25ppt , $MovePosCenter
bindsym Shift+bracketleft resize shrink height 20px; resize shrink width 40px; $MovePosCenter
bindsym Shift+bracketright resize grow height 20px; resize grow width 40px; $MovePosCenter
#-----------------------------------
bindsym Shift+equal $ResizeSet $DefaultSize, $MovePosCenter
bindsym equal $MovePosCenter
bindsym minus $ResizeSet $SmallSize , $MovePosCenter, $MoveRight 480px, $MoveUp 150px
bindsym Shift+minus $ResizeSet $SmallSize , $MovePosCenter, $MoveLeft 480px, $MoveUp 150px
bindsym 0 $ResizeSet $SmallSize , $MovePosCenter, $MoveRight 480px, $MoveDown 150px
bindsym Shift+0 $ResizeSet $SmallSize , $MovePosCenter, $MoveLeft 480px, $MoveDown 150px
#-----------------------------------
bindsym h resize shrink width 40px or 4ppt
bindsym j resize shrink height 40px or 4ppt
bindsym k resize grow height 40px or 4ppt
bindsym l resize grow width 40px or 4ppt
bindsym Shift+h resize shrink width 1px or 2ppt
bindsym Shift+j resize shrink height 1px or 2ppt
bindsym Shift+k resize grow height 1px or 2ppt
bindsym Shift+l resize grow width 1px or 2ppt
bindsym Shift+m move position center
#-----------------------------------
bindsym a $MoveRight 42px, resize shrink width 40px
bindsym s $MoveDown 54px, resize shrink height 40px
bindsym d $MoveUp 36px, resize grow height 40px
bindsym f $MoveLeft 35px, resize grow width 40px
#-----------------------------------
bindsym $mod+r $mode_be_default
bindsym Ctrl+c $mode_be_default
bindsym Return $mode_be_default
bindsym Escape $mode_be_default
}

#---------------------------------------------------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 i "exec xdotool mousemove_relative --polar 290 50"\
bindsym o "exec xdotool mousemove_relative --polar 70 50"\
bindsym comma "exec xdotool mousemove_relative --polar 250 50"\
bindsym period "exec xdotool mousemove_relative --polar 110 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"

#bindcode 44 133 "exec xdotool mousemove_relative --polar 270 100"\
#bindsym grave+j "exec xdotool mousemove_relative --polar 180 100"\
#bindsym grave+k "exec xdotool mousemove_relative --polar 0 100"\
#bindsym grave+l "exec xdotool mousemove_relative --polar 90 100"\

mode "mousedown1" {
$MOUSE_MOVE_BIND
bindsym Escape exec "xdotool mouseup 1" ; $mode_be "mousemove" ; $xm_hd "mousemove"
# ; $xm_hd "Mousemove"
bindsym $mod+Escape exec "xdotool mouseup 1" ; $mode_be "mousemove" ; $xm_hd "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" ; $xm_hd "mousemove"
#; $xm_hd "Mousemove"
bindsym $mod+Escape exec "xdotool mouseup 2" ; $mode_be "mousemove" ; $xm_hd "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" ; $xm_hd "mousemove"
#; $xm_hd "Mousemove"
bindsym $mod+Escape exec "xdotool mouseup 3" ; $mode_be "mousemove" ; $xm_hd "mousemove"
#; $xm_hd "Mousemove"
bindsym $mod+f exec "xdotool mouseup 3" ; $mode_be_default
}

# - To Do - #
#mode "mousemove_geo" {
# $MOUSE_MOVE_BIND
#}

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"
bindsym $mod+k "exec xdotool mousemove_relative --polar 0 100"
bindsym $mod+l "exec xdotool mousemove_relative --polar 90 100"
bindsym $mod+Shift+h "exec xdotool mousemove_relative --polar 270 3"
bindsym $mod+Shift+j "exec xdotool mousemove_relative --polar 180 3"
bindsym $mod+Shift+k "exec xdotool mousemove_relative --polar 0 3"
bindsym $mod+Shift+l "exec xdotool mousemove_relative --polar 90 3"
#------------------------IN-HERE-SINCE-CAN'T-PUT-MACRO-IN-MACRO
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"; $xm_hd "mousedown 1"
#; $xm_hd "Mousedown"
bindsym w exec "xdotool mousedown 2" ; $mode_be "mousedown2"; $xm_hd "mousedown 2"
#; $xm_hd "Mousedown"
bindsym e exec "xdotool mousedown 3" ; $mode_be "mousedown3"; $xm_hd "mousedown 3"
#; $xm_hd "Mousedown"
bindsym $mod+space focus floating; move position mouse
bindsym Escape $mode_be_default
bindsym $mod+Escape $mode_be_default
bindsym $mod+f $mode_be_default
}


mode "mpv" {
bindsym Return exec "socat - /tmp/mpvsocket <<< 'cycle pause'"
bindsym $mod+q exec "socat - /tmp/mpvsocket <<< 'quit'"
bindsym h exec "socat - /tmp/mpvsocket <<< 'seek -1'"
bindsym l exec "socat - /tmp/mpvsocket <<< 'seek 1'"
bindsym Shift+h exec "socat - /tmp/mpvsocket <<< 'seek -5'"
bindsym Shift+l exec "socat - /tmp/mpvsocket <<< 'seek 5'"
bindsym j exec "socat - /tmp/mpvsocket <<< 'add volume -1'"
bindsym k exec "socat - /tmp/mpvsocket <<< 'add volume 1'"
bindsym Shift+less exec "socat - /tmp/mpvsocket <<< 'playlist-prev'"
bindsym Shift+greater exec "socat - /tmp/mpvsocket <<< 'playlist-next'"
bindsym o exec "socat - /tmp/mpvsocket <<< 'no-osd cycle-values osd-level 3 1'"
bindsym f exec "socat - /tmp/mpvsocket <<< 'cycle fullscreen'"
bindsym Shift+minus exec "socat - /tmp/mpvsocket <<< 'script-binding skip-key'"
bindsym $mod+Escape $mode_be_default
bindsym Escape $mode_be_default
}

mode "zathura" {
bindsym g exec $zathura_script -g
bindsym d exec $zathura_script -d
bindsym r exec $zathura_script -r
bindsym o exec $zathura_script -o
bindsym Shift+o exec $zathura_script -O

bindsym Shift+minus exec $zathura_script -p-
bindsym minus exec $zathura_script -p-
bindsym plus exec $zathura_script -p+
bindsym equal exec $zathura_script -p+

bindsym $mod+Escape $mode_be_default
bindsym Escape $mode_be_default
}

#---------------------------------------------------END------------------------------------------------------------#
Loading

0 comments on commit 4345ac0

Please sign in to comment.