i3 (i3.config)
i3-wm config compatível com XFCE e KDE
Categoria: Miscelânea
Software: i3
[ Hits: 7.117 ]
Por: Ryuk Shinigami
Arquivo de configuração do i3-wm/i3-gaps compatível com sessões XFCE ou KDE.
# i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! # # This config file uses keycodes (bindsym) and was written for the QWERTY # layout. # # To get a config file with the same key positions, but for your current # layout, use the i3-config-wizard # ############### # i3 settings # ############### ## Set mod key (Mod1=<Alt>, Mod4=<Super>) set $mod Mod4 ## Edit configuration file bindsym $mod+c exec urxvt -e bash -c 'nano $HOME/.config/i3/config' ## Reload the configuration file bindsym $mod+Shift+c reload ## 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'" ## i3exit script (Set shut down, restart and locking features) #bindsym Ctrl+Mod1+Delete mode "$mode_system" #bindsym XF86PowerOff mode "$mode_system" #bindsym $mod+Shift+e mode "$mode_system" #set $mode_system (e)xit, (l)ock, (s)uspend, (r)eboot, (Shift+s)hutdown #mode "$mode_system" { # bindsym e exec "i3exit.sh logout", mode "default" # bindsym l exec "i3exit.sh lock", mode "default" # bindsym s exec "i3exit.sh suspend", mode "default" # bindsym r exec "i3exit.sh reboot", mode "default" # bindsym Shift+s exec "i3exit.sh shutdown", mode "default" # # exit system mode: "Enter" or "Escape" # bindsym Return mode "default" # bindsym Escape mode "default" #} ## Exit/Suspend/Reboot/Shutdown alternatives #bindsym $mod+Shift+e exec xfce4-session-logout #bindsym XF86PowerOff exec obsession-logout #bindsym $mod+Shift+e exec qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1 ## Lock screen bindsym Mod1+Ctrl+l exec --no-startup-id i3lock -c "000000" #bindsym Mod1+Ctrl+l exec --no-startup-id xflock4 ## i3bar (plus the system information i3status) ## Disable on XFCE/KDE session bar { position top status_command i3status #tray_output none #mode invisible font pango:DejaVuSansMono Nerd Font 9 #strip_workspace_numbers yes colors { separator #444444 background #222222 statusline #c0c0c0 focused_workspace #d70a53 #d70a53 #ffffff active_workspace #222222 #222222 #c0c0c0 inactive_workspace #222222 #222222 #c0c0c0 urgent_workspace #eb709b #eb709b #ffffff } } ## Hide/unhide i3status bar bindsym $mod+m bar mode toggle #################### # Windows settings # #################### ## Font for window titles. font pango:DejaVu Sans Mono 8 ## Theme colors ## class border backgr. text indic. child_border client.focused #d70a53 #d70a53 #ffffff #8c0333 client.focused_inactive #222222 #222222 #c0c0c0 #222222 client.unfocused #222222 #222222 #c0c0c0 #222222 client.urgent #eb709b #eb709b #ffffff #eb709b ## Default border style for new windows (normal|none|pixel) default_border pixel 2 default_floating_border normal ## Hiding borders adjacent to the screen edges (none|vertical|horizontal|both|smart) hide_edge_borders smart ## Change borders #bindsym $mod+n border normal #bindsym $mod+y border pixel 2 #bindsym $mod+u border none bindsym $mod+b border toggle ## kill focused window bindsym $mod+q kill bindsym Mod1+F4 kill ## The middle button over a titlebar kills the window #bindsym --release button2 kill ## The middle button and a modifer over any part of the window kills the window #bindsym --whole-window $mod+button2 kill ## Constraining floating window size #floating_minimum_size 75 x 75 #floating_maximum_size 800 x 600 ##################### # Split and Layouts # ##################### ## Set default desktop layout "stacking|tabbed" (default is tiling) #workspace_layout tabbed ## Orientation for new workspaces (horizontal|vertical|auto) default_orientation auto ## Split in horizontal/vertical orientation bindsym $mod+h split h bindsym $mod+v split v bindsym $mod+t split toggle ## Change container layout (stacked, tabbed, toggle split) #bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split ## Fullscreen mode for the focused container bindsym $mod+F11 fullscreen toggle ## Toggle tiling / floating bindsym $mod+Shift+space floating toggle ## The right button toggles floating #bindsym $mod+button3 floating toggle ############################# # Window Focus and Movement # ############################# ## Default focus to mouse (yes) focus_follows_mouse no ## Focus on window activation (smart|urgent|focus|none) focus_on_window_activation smart ## Toggle sticky (show on all workspaces) bindsym $mod+Shift+s sticky toggle ## Change focus between tiling / floating windows bindsym $mod+space focus mode_toggle ## Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod ## Focus the parent container bindsym $mod+a focus parent ## Focus the child container bindsym $mod+z focus child ## Move the currently focused window to the scratchpad bindsym $mod+Shift+minus move scratchpad ## Show the next scratchpad window or hide the focused scratchpad window. ## If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show ## Set keys for focus, movement, and resize directions set $left j set $down k set $up l set $right ccedilla ## Change focus bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right 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 bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right ## resize window (you can also use the mouse for that) bindsym $mod+r mode "resize" mode "resize" { 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 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 bindsym Return mode "default" bindsym Escape mode "default" } ## Jump to urgent window bindsym Mod1+Ctrl+a [urgent=latest] focus #################### # i3-gaps settings # #################### ## Set inner/outer gaps gaps inner 2 gaps outer 2 # ## Smart gaps (gaps used if only more than one container on the workspace) smart_gaps on # ## Smart borders (draw borders around container only if it is not the only container on this workspace) ## on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) smart_borders on # ## Press $mod+i|o to enter the inner or outer gap mode. ## Press one of +/- (in/decrement) or 0 (remove gaps) ## Press Shift with these keys, the change will be global for all workspaces. bindsym $mod+i mode "$mode_gaps_inner" bindsym $mod+o mode "$mode_gaps_outer" set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) 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" } ##################################### # Workspaces settings and shortcuts # ##################################### ## Workspace names set $ws1 1 set $ws2 2 set $ws3 3 set $ws4 4 set $ws5 5 set $ws6 6 set $ws7 7 set $ws8 8 ## Fonts-Awesome 4.7 (sscode;) #set $ws1 "1 " #csscode  #set $ws2 "2 " #csscode  #set $ws3 "3 " #csscode  #set $ws4 "4 " #csscode  #set $ws5 "5 " #csscode  #set $ws6 "6 " #csscode  #set $ws7 "7 " #csscode  #set $ws8 "8 " #csscode  ## Open applications on specific workspaces #assign [class="Xfce4-terminal"] $ws1 #assign [class="Firefox|Midori|Chromium-browser"] $ws2 #assign [class="Thunar|libreoffice-*"] $ws3 #assign [class="Gimp*|Inkscape"] $ws4 #assign [class="Audacious|Spotify|Easytag"] $ws5 #assign [class="vlc|Aegisub*|Gnome-subtitles"] $ws6 #assign [class="(?i)virtualbox"] $ws7 ## Switch to workspace bindsym Ctrl+F1 workspace $ws1 bindsym Ctrl+F2 workspace $ws2 bindsym Ctrl+F3 workspace $ws3 bindsym Ctrl+F4 workspace $ws4 bindsym Ctrl+F5 workspace $ws5 bindsym Ctrl+F6 workspace $ws6 bindsym Ctrl+F7 workspace $ws7 bindsym Ctrl+F8 workspace $ws8 ## Move focused container to workspace bindsym $mod+Ctrl+1 move container to workspace $ws1 bindsym $mod+Ctrl+2 move container to workspace $ws2 bindsym $mod+Ctrl+3 move container to workspace $ws3 bindsym $mod+Ctrl+4 move container to workspace $ws4 bindsym $mod+Ctrl+5 move container to workspace $ws5 bindsym $mod+Ctrl+6 move container to workspace $ws6 bindsym $mod+Ctrl+7 move container to workspace $ws7 bindsym $mod+Ctrl+8 move container to workspace $ws8 ## Move to workspace with focused container bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 ## Navigate workspaces next / previous bindsym Mod1+Ctrl+Right workspace next bindsym Mod1+Ctrl+Left workspace prev ## Move focused container to workspaces next / previous bindsym $mod+Home move container to workspace prev; workspace prev bindsym $mod+End move container to workspace next; workspace next ## Switch between the current and the previously focused one bindsym $mod+x workspace back_and_forth bindsym $mod+Shift+x move container to workspace back_and_forth; workspace back_and_forth ## Switch to workspace with urgent window automatically #for_window [urgent=latest] focus ## Delaying urgency hint reset on workspace change (default: 500 ms) #force_display_urgency_hint 0 ms #################### # Floating Windows # #################### ## Open specific applications in floating mode for_window [class="Calamares"] floating enable border normal for_window [class="Clipgrab"] floating enable for_window [class="Five-or-more"] floating enable border normal for_window [class="Four-in-a-row"] floating enable border normal for_window [class="Galculator"] floating enable border normal for_window [class="Gcolor2"] floating enable border normal for_window [class="Gnome-chess"] floating enable border normal for_window [class="Gnome-mahjongg"] floating enable border normal for_window [class="Gnome-mines"] floating enable border normal for_window [class="Gnome-sudoku"] floating enable border normal for_window [class="Gnome-tetravex"] floating enable border normal for_window [class="GParted"] floating enable border normal for_window [class="Gtkhash"] floating enable border normal for_window [class="(?i)System-config-printer.py"] floating enable border normal for_window [class="Lightdm-gtk-greeter-settings"] floating enable border normal for_window [class="Lxappearance"] floating enable sticky enable border normal for_window [class="Manjaro Settings Manager"] floating enable border normal for_window [class="Manjaro Welcome"] floating enable for_window [class="Mediainfo-gui"] floating enable for_window [class="Nitrogen"] floating enable sticky enable border normal for_window [class="Oblogout"] fullscreen enable for_window [class="octopi"] floating enable for_window [class="Pamac-manager"] floating enable for_window [class="Pavucontrol"] floating enable border normal for_window [class="pipewalker"] floating enable border normal for_window [class="qt5ct"] floating enable sticky enable border normal for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal for_window [class="Simple-scan"] floating enable border normal for_window [class="Skype"] floating enable border normal for_window [class="Sol"] floating enable border normal for_window [class="Thus"] floating enable border normal for_window [class="Timeset-gui"] floating enable border normal for_window [class="Xfburn"] floating enable border normal for_window [class="Xfce4-appfinder"] floating enable for_window [class="Xfce4-sensors"] floating enable border normal for_window [class="Xfce4-panel"] floating enable border normal for_window [title="alsamixer"] floating enable border normal for_window [title="File Transfer*"] floating enable border normal for_window [title="i3_help"] floating enable sticky enable border normal for_window [title="Mintdrivers.py"] floating enable border normal for_window [title="MuseScore: Play Panel"] floating enable ## KDE plasma integration for_window [title="Desktop — Plasma"] kill for_window [title="Área de Trabalho — Plasma"] kill for_window [title="plasma-desktop"] floating enable, border none for_window [title="win7"] floating enable border none for_window [class="plasmashell"] floating enable for_window [class="Klipper"] floating enable border none for_window [class="Kmix"] floating enable border none for_window [class="Plasmoidviewer"] floating enable border none for_window [class="bovo"] floating enable for_window [class="kcalc"] floating enable for_window [class="kcolorchooser"] floating enable for_window [class="klines"] floating enable for_window [class="knights"] floating enable for_window [class="kruler"] floating enable for_window [class="krunner"] floating enable border none for_window [class="ksysguard"] floating enable for_window [class="yakuake"] floating enable # for_window [window_role="About"] floating enable for_window [window_role="Preferences"] floating enable for_window [window_role="bubble"] floating enable for_window [window_role="pop-up"] floating enable for_window [window_role="task_dialog"] floating enable for_window [window_type="dialog"] floating enable for_window [window_type="menu"] floating enable # no_focus [class=”plasmashell”] no_focus [window_role="pop-up"] no_focus [window_type="notification"] ####################################################### # Applications launcher and others keyboard shortcuts # ####################################################### ## Start a terminal bindsym $mod+Return exec i3-sensible-terminal #bindsym $mod+Return exec urxvt ## dmenu (a program launcher) bindsym $mod+d exec --no-startup-id dmenu_run -b -nf '#F3F4F5' -nb '#2F343F' -sb '#1793D1' -sf '#f3f4f5' -fn 'monospace-10' -p 'run:' ## Rofi bindsym Mod1+F1 exec --no-startup-id rofi -show run ## XFCE whisker popup menu #bindsym $mod+d exec --no-startup-id xfce4-popup-whiskermenu ## krunner (KDE-plasma) #bindsym $mod+d exec qdbus org.kde.kglobalaccel /component/krunner org.kde.kglobalaccel.Component.invokeShortcut 'run command' ## Skippy-xd (show all windows) #bindsym $mod+Tab exec --no-startup-id skippy-xd --toggle-window-picker ## Posicionar o cursor no canto superior esquerdo da tela bindsym $mod+Ctrl+F1 exec xdotool mousemove 0 0 ## Xkill bindsym $mod+Ctrl+Delete --release exec --no-startup-id xkill ## Screenshot #bindsym Print exec --no-startup-id xfce4-screenshooter bindsym Print exec --no-startup-id i3-scrot bindsym $mod+Print --release exec --no-startup-id i3-scrot -w bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s ## Pulse Audio controls bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle ## Alsamixer #bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ #bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- #bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle-mute #bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ #bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- #bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle ## Media player controls bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause bindsym XF86AudioPause exec --no-startup-id playerctl pause bindsym XF86AudioNext exec --no-startup-id playerctl next bindsym XF86AudioPrev exec --no-startup-id playerctl previous ## Sreen brightness controls bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10% bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10% #bindsym XF86MonBrightnessUp exec light -A 10 # Increase Brightness #bindsym XF86MonBrightnessDown exec light -U 10 # Decrease Brightness ## Touchpad controls #bindsym XF86TouchpadToggle exec --no-startup-id $HOME/.local/bin/toggletouchpad.sh ########################## # Autostart applications # ########################## ## Polkit #exec --no-startup-id /usr/lib64/polkit-gnome/polkit-gnome-authentication-agent-1 ## Background exec --no-startup-id xsetroot -solid "#333333" #exec --no-startup-id nitrogen --restore #exec --no-startup-id feh --bg-scale $HOME/Imagens/wallpaper exec --no-startup-id bash $HOME/.local/bin/wallpapers-rotate.sh ## Power manager #exec --no-startup-id xset -dpms; xset s off ## AutoLock #exec --no-startup-id xautolock -time 10 -locker blurlock ## Keyboard layout #exec --no-startup-id setxkbmap -model abnt2 -layout br -variant abnt2 ## Touchpad #exec --no-startup-id xinput set-prop "SynPS/2 Synaptics Touchpad" "libinput Tapping Enabled" 1 ## Notifications exec --no-startup-id dunst ## Compositor exec --no-startup-id compton --backend glx --vsync opengl-swc ## Services daemons #exec --no-startup-id unclutter #exec --no-startup-id mpd #exec --no-startup-id nm-applet ## Permite abrir o menu do KDE com a tecla Super (Meta); simula o atalho "Alt+F1" #exec --no-startup-id ksuperkey
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Criando uma VPC na AWS via CLI
Multifuncional HP imprime mas não digitaliza
Dica básica para escrever um Artigo.
Como Exibir Imagens Aleatórias no Neofetch para Personalizar seu Terminal
Pq me aparece isso quando fui atualizar o Ubuntu 24.10 no terminal? (3)
Pegar a ultima ocorrencia viva (2)
como coloco para instalar com esse erro. (13)
Alguém sabe de documentos de texto e /ou vídeo aulas de certificações ... (1)