-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b8112d
commit 4345ac0
Showing
6 changed files
with
402 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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------------------------------------------------------------# |
Oops, something went wrong.