Skip to content

Instantly share code, notes, and snippets.

@lopesivan
Created May 20, 2026 06:36
Show Gist options
  • Select an option

  • Save lopesivan/b26c3e4b2e44e654d9e5d931b8b0eb8d to your computer and use it in GitHub Desktop.

Select an option

Save lopesivan/b26c3e4b2e44e654d9e5d931b8b0eb8d to your computer and use it in GitHub Desktop.
# ~.config/i3/config
## Use xprop para identificar as classes dos aplicativos
for_window [class="^.*"] border pixel 3
gaps inner 10
gaps outer 10
smart_gaps on
smart_borders on
## variáveis
set $mod Mod4
set $ALT Mod1
set $exe exec --no-startup-id
set $stoprec --no-startup-id killall ffmpeg
# ############################################################################
# DEBUG: $ i3status -c i3status.conf
# ############################################################################
set $st /home/linuxbrew/.linuxbrew/bin/st
set $nvin /home/linuxbrew/.linuxbrew/bin/nvin
set $ddspawn /home/linuxbrew/.linuxbrew/bin/ddspawn
set $tmuxdd /home/linuxbrew/.linuxbrew/bin/tmuxdd
set $tmux /home/linuxbrew/.linuxbrew/bin/tmux
set $maple /home/linuxbrew/.linuxbrew/bin/maple
set $term1 rxvt -fn "xft:Hack Nerd Font Mono:size=15:hinting=true"
set $term2 rxvt -fn "xft:DroidSansM Nerd Font Propo:size=15:hinting=true"
set $term3 rxvt -fn "xft:SauceCodePro Nerd Font Propo:size=15:hinting=true"
set $stmd /home/linuxbrew/.linuxbrew/bin/st
set $st0 /home/linuxbrew/.linuxbrew/bin/st
set $st1 /home/linuxbrew/.linuxbrew/bin/st
set $st2 /home/linuxbrew/.linuxbrew/bin/st
set $st3 /home/linuxbrew/.linuxbrew/bin/st
set $st4 /home/linuxbrew/.linuxbrew/bin/st
set $st5 /home/linuxbrew/.linuxbrew/bin/st
set $st6 /home/linuxbrew/.linuxbrew/bin/st
set $st7 /home/linuxbrew/.linuxbrew/bin/st
set $st8 /home/linuxbrew/.linuxbrew/bin/st
set $st9 /home/linuxbrew/.linuxbrew/bin/st
set $st10 /home/linuxbrew/.linuxbrew/bin/st
set $st11 /home/linuxbrew/.linuxbrew/bin/st
set $lhowto /home/linuxbrew/.linuxbrew/bin/lhowto.sh
set $pdoc /home/linuxbrew/.linuxbrew/bin/pdoc.sh
set $ldoc /home/linuxbrew/.linuxbrew/bin/ldoc.sh
set $neovide /home/linuxbrew/.linuxbrew/bin/neovide.sh
## variáveis de ambiente
exec_always --no-startup-id export WINIT_X11_SCALE_FACTOR=1.0
exec_always --no-startup-id export NEOVIDE_MULTIGRID=true
exec_always --no-startup-id export NVIM_APPNAME=nvim-pde
exec_always --no-startup-id export NDE_APP_CONFIG=/home/ivan/.config/nvim-pde
exec_always --no-startup-id export NVIM_LISTEN_ADDRESS=/tmp/neovim.socket
## I3 GAPS CHANGE
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
## terminal
bindsym $mod+u $exe $ddspawn $tmuxdd
#bindsym $mod+e $exe $term2 -e sh -c 'bash --rcfile /home/ivan/.bashrc.without-brew'
bindsym $mod+e exec --no-startup-id /home/linuxbrew/.linuxbrew/bin/open-terminal-here.sh
## botão temporário: Menu
bindsym Menu $exe $st -e sh -c 'bash --rcfile /home/ivan/.bashrc.without-brew'
## ranger
bindsym $mod+Return $exe $st -n `uuidgen` -d /workspace -e sh -c 'ranger'
# joga comando na janela do tmux
# bindsym XF86HomePage exec tmux send-keys -t 0 'ranger' Enter
## horizontal
bindsym $mod+apostrophe split horizontal ;; exec $st3
## vertical
bindsym $mod+slash split vertical ;; exec $st3
## monitor
exec_always --no-startup-id ~/.screenlayout/monitor-hdmi-aoc.sh
#exec_always --no-startup-id ~/.screenlayout/monitor-hdmi-laptop.sh
#exec_always --no-startup-id ~/.screenlayout/monitor-clone.sh
#exec_always --no-startup-id ~/.screenlayout/monitor-clone-with2workspaces.sh
#exec_always --no-startup-id ~/.screenlayout/monitor-desktop.sh
## Wall paper
exec_always --no-startup-id ~/.config/i3/wallpaper.sh
## Compton
# exec_always --no-startup-id ~/.config/i3/compton.sh
## Unclutter: makes the mouse invisible after a brief period
$exe unclutter
## Arrastar: Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
## chrome
bindsym $mod+g $exe /bin/google-chrome
## kill focused window
bindsym $mod+Shift+q kill
bindsym $ALT+F4 kill
## change focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
## move focused window
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## split in horizontal orientation
bindsym $mod+Shift+h split h
## split in vertical orientation
bindsym $mod+Shift+v split v
## enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
## toggle tiling / floating
bindsym $mod+Shift+space floating toggle
## Wokspace
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
## reload the configuration file
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
## exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
## resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym ccedilla resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
# w = (w/f)*f + 2, h = (h/2f)*2f + 2
#bindsym 1 resize set 1002 1042; move position center
#bindsym 2 resize set 546 610; move position center
#bindsym 3 resize set 466 514; move position center
}
bindsym $mod+r mode "resize"
## workspaces
set $wbrowser 3
set $wjet 4
set $wgimp 5
set $wmath 6
set $wgvim 7
set $wvp 8
## SYSTEMD
set $shutdown sudo shutdown -h now
set $reboot sudo reboot
set $netrefresh --no-startup-id sudo systemctl restart NetworkManager
set $hibernate sudo systemctl suspend
## MPV
# Usage:
# $ mpv /dev/video0
for_window [title="video0 - mpv"] floating enable
for_window [title="video0 - mpv"] sticky enable
for_window [ instance="gl" class="mpv" ] floating enable
for_window [ instance="gl" class="mpv" ] border 1pixel
for_window [ instance="gl" class="mpv" ] move scratchpad
bindsym $mod+v [ instance="gl" class="mpv" ] scratchpad show; [ instance="gl" class="mpv" ] move position center; fullscreen toggle
## NVIDIA-SMI
bindsym $mod+n $exe $st.5 -n wnvidia -e sh -c "watch -n 1 nvidia-smi"
for_window [instance="wnvidia"] move position center
for_window [instance="wnvidia"] floating enable border normal focus
for_window [instance="wnvidia"] fullscreen enable
## BLUETOOTH......................................................DESABILITADO
#bindsym $ALT+b exec "rfkill unblock bluetooth && blueman-manager"
## XF86 Botõoes ldoc. lhowto, pdoc
bindsym XF86Mail $exe $st -n wldoc -e sh -c $lhowto
# XF86HomePage
bindsym XF86Messenger $exe $st -n wldoc -e sh -c $pdoc
bindsym XF86Tools $exe $st -n wldoc -e sh -c $ldoc
for_window [instance="wldoc"] move position top
for_window [instance="wldoc"] floating enable border normal focus
for_window [instance="wldoc"] fullscreen enable
## XCLOCK
bindsym $mod+c [instance="xclock"] scratchpad show; [instance="xclock"] move position center; fullscreen toggle
for_window [class="XClock" instance="xclock"] floating enable
for_window [class="XClock" instance="xclock"] border 1pixel
for_window [class="XClock" instance="xclock"] resize set 100 100
for_window [class="XClock" instance="xclock"] move scratchpad
$exe xclock -digital -brief -fg cyan -bg black -brief -face Courier:size=450 -padding 40
## GIMP
for_window [class="Gimp"] move workspace $ws6
for_window [window_role="gimp-dock"] floating disable; move left; resize shrink width 50 px or 50ppt
for_window [window_role="gimp-toolbox"] floating disable; move right; resize grow width 30 px or 30ppt
## Others
bindsym $mod+Delete exec $stoprec
# Lock screen
bindsym $mod+l exec i3lock -i ~/.config/i3/scripts/lockscreen/lockscreen.png -t
focus_follows_mouse no
# X86
# Calculator and sound mixer
bindsym XF86Calculator exec gnome-calculator
## Volume control
# Volume keys
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
#bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
bindsym XF86AudioMute exec amixer -q set Master toggle
bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '5%+'"
bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '5%-'"
#=bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
#https://github.com/acrisci/playerctl/
# mpd
# bindsym XF86AudioPlay exec mpc play
# bindsym XF86AudioNext exec mpc next
# bindsym XF86AudioPrev exec mpc prev
# bindsym XF86AudioStop exec mpc stop
# md_navigate_next:  :
# linea_music_end_button:  :
# linea_music_beginning_button:  :
# linea_music_stop_button:  :
# XF86AudioPlay
# XF86AudioPrev
# XF86AudioNext
# XF86AudioStop
# XF86Mail
# XF86HomePage
# XF86Messenger
# XF86Messenger
# XF86Tools
# XF86Tools
# Path to volume control, without trailing slash
#set $volumepath ~/.config/i3-volume
# Command for the status line (used with -t, requires -u)
# ie: i3blocks, i3status
set $statuscmd /bin/i3status
# Signal used to update the status line (used with -u, requires -t)
# i3blocks uses SIGRTMIN+10 by default
# i3status uses SIGUSR1 by default
set $statussig SIGUSR1
# Amount to increase/decrease volume as a percentage (used with -i, -d)
set $volumestep 5
## gtk............................................................DESABILITADO
# Regra para forçar a aplicação GTKmm a ser flutuante (floating)
#for_window [class="App"] floating enable
# Regra para forçar a aplicação a ser flutuante (floating)
for_window [class="App"] floating enable, border pixel 1 # (border pixel é opcional, mas ajuda a ver)
## WXGLADE
# --- Regras para wxGlade ---
# 1. Atribuição de Workspace (Workspace Assignment)
# Atribui a janela ao workspace $ws3 (o '3') usando a classe
# Corrigido para a ordem provável: class="Wxglade"
assign [class="Wxglade"] 3
# 2. Propriedades da Janela (Window Properties)
# Aplica as propriedades Flutuante e Borda.
# Não use o 'assign' aqui, use 'for_window'.
for_window [class="Wxglade"] floating enable, border pixel 1
#/usr/lib/gnome-settings-daemon/gnome-settings-daemon-localeexec
# Restore GNOME's settings
#exec --no-startup-id /usr/lib/gnome-settings-daemon/gnome-settings-daemon-localeexec
# Fix a bug in gnome-settings-daemon: http://feeding.cloud.geek.nz/posts/creating-a-modern-tiling-desktop-environment-using-i3/
#exec --no-startup-id dconf write /org/gnome/settings-daemon/plugins/cursor/active false
## SHORTCUTS APPLICATIONS
# Gimp
workspace $wgimp gaps inner 2
workspace $wgimp gaps outer 2
assign [class="^Blender$"] → $wgimp
assign [class="^Gimp$"] → $wgimp
assign [class="^MyPaint$"] → $wgimp
assign [class="^Adl$"] → $wgimp
# for_window [window_role="gimp-toolbox"] floating disable
# for_window [window_role="gimp-dock"] floating disable
# for_window [window_role="gimp-image-window"] floating disable
for_window [window_role="GtkFileChooserDialog"] resize shrink height 10 px
# jetbrains
for_window [class="^jetbrains-.+" instance="jetbrains-.+"] border none
for_window [title="^Android Emulator -"] floating enable
# Maple
assign [class="java-lang-Thread" instance="sun-awt-X11-XFramePeer"] $ws6
for_window [class="java-lang-Thread" instance="sun-awt-X11-XFramePeer"] focus
## SHORTCUTS WORKSPACES
#set $script_path ~/developer/scripts/voidrice/meta_workspaces.py
# next/previous workspace
# #---Workspace Bindings---# #
bindsym $mod+Home workspace $ws1
bindsym $mod+Shift+Home move container to workspace $ws1
bindsym $mod+End workspace $ws10
bindsym $mod+Shift+End move container to workspace $ws10
#bindsym $mod+Prior workspace prev
#bindsym $mod+Shift+Prior move container to workspace prev
#bindsym $mod+Next workspace next
#bindsym $mod+Shift+Next move container to workspace next
#bindsym $mod+Tab workspace back_and_forth
# bindsym $mod+Tab workspace next
# bindsym $mod+Shift+Tab workspace prev
bindsym $mod+Next workspace next
bindsym $mod+Prior workspace prev
#bindsym $mod+XF86Back workspace prev
#bindsym $mod+Shift+XF86Back move container to workspace prev
#bindsym $mod+XF86Forward workspace next
#bindsym $mod+Shift+XF86Forward move container to workspace next
#bindsym $mod+semicolon workspace next
# bindsym $mod+apostrophe split horizontal ;; exec $st3
# bindsym $mod+slash split vertical ;; exec $st3
bindsym $mod+Shift+slash kill
#bindsym $mod+backslash workspace back_and_forth
## Bindings to make the webcam float and stick.
for_window [title="mpvfloat"] floating enable
for_window [title="mpvfloat"] sticky enable
for_window [title="mpvfloat"] border pixel 0
no_focus [title="mpvfloat"]
## Function Buttons Fx
bindsym $mod+F12 $exe ~/.config/rofi/powermenu/type-1/powermenu.sh
bindsym F11 fullscreen toggle
#bindsym F9 $exe /opt/scripts/mouseup.sh
#bindsym --release F9 exec pkill mouseup.sh
#bindsym F10 $exe /opt/scripts/mousedown.sh
#bindsym --release F10 exec pkill mousedown.sh
## Nautilus
#bindsym $mod+F1 $exe nautilus --class Files --name small --new-window /tmp
## For screenshots and recording
#bindsym Print $exe scrot -u '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/'
bindsym Print $exe scrot -u '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f /workspace/obs/'
#bindsym Print $exe scrot -u '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f /workspace/calculo'
#bindsym Print $exe scrot -u '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/'
#bindsym Print $exe scrot -u '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f /home/ivan/work/curso/cpp'
bindsym Shift+Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
#bindsym Shift+Print exec "scrot /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
#bindsym Shift+Print $exe scrot -u
bindsym Control+Print $exe gnome-screenshot -i
## MODE_SYSTEM
bindsym $mod+Pause mode "$mode_system"
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l $exe ~/.config/i3/scripts/i3exit.sh lock, mode "default"
bindsym e $exe ~/.config/i3/scripts/i3exit.sh logout, mode "default"
bindsym s $exe ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
bindsym h $exe ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
bindsym r $exe ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
bindsym Shift+s $exe ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
## Theme colors
# workspace_auto_back_and_forth yes
# force_display_urgency_hint 0 ms
# focus_on_window_activation urgent
# floating_minimum_size -1 x -1
# floating_maximum_size -1 x -1
#font pango:Hack, FontAwesome 12
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 16
## COLORS
set_from_resource $darkred color1 #000000
set_from_resource $red color9 #000000
set_from_resource $darkgreen color2 #000000
set_from_resource $green color10 #000000
set_from_resource $darkyellow color3 #000000
set_from_resource $yellow color11 #000000
set_from_resource $darkblue color4 #000000
set_from_resource $blue color12 #000000
set_from_resource $darkmagenta color5 #000000
set_from_resource $magenta color13 #000000
set_from_resource $darkcyan color6 #000000
set_from_resource $cyan color14 #000000
set_from_resource $darkwhite color7 #000000
set_from_resource $white color15 #000000
# Use custom colors for black
set $black #282828
set $darkblack #1d2021
set $transparent #00000000
# BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER
client.focused $black $black $darkwhite $darkblack $darkblack
client.unfocused $black $black $white $darkblack $darkblack
client.focused_inactive $black $black $white $darkblack $darkblack
client.urgent $darkred $darkred $black $darkred $darkred
client.background $black
# Ivan
bar {
#font pango: 34px
font pango:DroidSansM Nerd Font Propo 25px
status_command i3blocks
position top
mode dock
modifier None
}
## MOUSE
# left click
bindsym $mod+s exec xdotool click 1
# hold left click
bindsym $mod+Shift+s exec xdotool mousedown 1
# Left Drag release
bindsym $mod+space exec xdotool mouseup 1
# Left Clik
# bindsym <F1> exec xdotool click 1
# # Middle Click
# bindsym <F2> exec xdotool click 2
# # Right Click
# bindsym <F3> exec xdotool click 3
bindsym XF86Documents exec xdotool click 1
mode "mouse" {
# set your three speeds here
set $slow 1
set $quick 10
set $fast 50
# Mouse movement (slow/fine-tuned) -- vim keybindings
# bindsym h exec xdotool mousemove_relative -- -$slow 0
# bindsym j exec xdotool mousemove_relative 0 $slow
# bindsym k exec xdotool mousemove_relative -- 0 -$slow
# bindsym l exec xdotool mousemove_relative $slow 0
# Mouse movement (slow/fine-tuned) -- arrow keys
bindsym Left exec xdotool mousemove_relative -- -$slow 0
bindsym Down exec xdotool mousemove_relative 0 $slow
bindsym Up exec xdotool mousemove_relative -- 0 -$slow
bindsym Right exec xdotool mousemove_relative $slow 0
# Mouse movement (quicker) -- vim keybindings
# bindsym Shift+h exec xdotool mousemove_relative -- -$quick 0
# bindsym Shift+j exec xdotool mousemove_relative 0 $quick
# bindsym Shift+k exec xdotool mousemove_relative -- 0 -$quick
# bindsym Shift+l exec xdotool mousemove_relative $quick 0
# Mouse movement (quicker) -- arrow keys
bindsym Shift+Left exec xdotool mousemove_relative -- -$quick 0
bindsym Shift+Down exec xdotool mousemove_relative 0 $quick
bindsym Shift+Up exec xdotool mousemove_relative -- 0 -$quick
bindsym Shift+Right exec xdotool mousemove_relative $quick 0
# Mouse movement (fast) -- vim keybindings
# bindsym Shift+$mod+h exec xdotool mousemove_relative -- -$fast 0
# bindsym Shift+$mod+j exec xdotool mousemove_relative 0 $fast
# bindsym Shift+$mod+k exec xdotool mousemove_relative -- 0 -$fast
# bindsym Shift+$mod+l exec xdotool mousemove_relative $fast 0
# Mouse movement (fast) -- arrow keys
bindsym Shift+$mod+Left exec xdotool mousemove_relative -- -$fast 0
bindsym Shift+$mod+Down exec xdotool mousemove_relative 0 $fast
bindsym Shift+$mod+Up exec xdotool mousemove_relative -- 0 -$fast
bindsym Shift+$mod+Right exec xdotool mousemove_relative $fast 0
# Left Click
bindsym s exec xdotool click 1
# Left Click-and-drag
bindsym Shift+s exec xdotool mousedown 1
# Left Drag release
bindsym $mod+s exec xdotool mouseup 1
# Middle Click
bindsym d exec xdotool click 2
# Middle Click-and-drag
bindsym Shift+d exec xdotool mousedown 2
# Middle Drag release
bindsym $mod+d exec xdotool mouseup 2
# Right Click
bindsym f exec xdotool click 3
# Right Click-and-drag
bindsym Shift+f exec xdotool mousedown 3
# Right Drag release
bindsym $mod+f exec xdotool mouseup 3
# scrool
#bindsym $mod+Down exec xdotool key Page_Up
#bindsym $mod+Up exec xdotool key Page_Down
#Scroll active window several times
bindsym z exec xdotool click --clearmodifiers 4
bindsym x exec xdotool click --clearmodifiers 5
# return to normal keybindings -- IMPORTANT!!
bindsym Escape mode "default"
}
# estrela:
bindsym XF86Favorites mode "mouse"; exec --no-startup-id xdotool mousemove 50 50
## modeline:
# vim:set foldtext=getline(v\:foldstart) foldmethod=expr foldexpr=getline(v\:lnum)=~'^##'?'>1'\:'=':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment