User Tools

Site Tools


i3wm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
i3wm [2020/10/25 13:32] – ↷ Page moved from tool:software:i3wm to i3wm rjti3wm [2023/06/04 16:40] (current) – [Floating Windows] Anoth Godot one rjt
Line 8: Line 8:
 You can set different bars for different screens. For example I find it useful to have time, date, battery, and volume always on my laptop screen, and have some monitoring stuff like free disk space, Internet bandwidth, and RAM usage when i have a secondary monitor plugged-in. You can set different bars for different screens. For example I find it useful to have time, date, battery, and volume always on my laptop screen, and have some monitoring stuff like free disk space, Internet bandwidth, and RAM usage when i have a secondary monitor plugged-in.
  
-So I have two seperate ''bar{}'' sections in my main i3 config file, one for each. You just need to give them each a label, a screen to target, and a seperate config to load.+So I have two seperate ''bar{}'' sections in my main i3 config file, one for each screen. You just need to give them each a label, a screen to target, and a seperate config to load.
  
 For example this is at the top of each ''bar'' definition: For example this is at the top of each ''bar'' definition:
Line 19: Line 19:
   output VGA1   output VGA1
   status_command i3blocks -c ~/.config/i3blocks/config-secondary   status_command i3blocks -c ~/.config/i3blocks/config-secondary
 +
 +==== Floating Windows ====
 +
 +Some useful lines to set some windows to always float:
 +
 +<code ini>
 +for_window [title="alsamixer"] floating enable
 +for_window [title="Calculator"] floating enable, move position center
 +for_window [class="Firefox" instance="Navigator"] floating enable
 +for_window [class="Godot" instance="Godot_ProjectList"] floating enable
 +for_window [instance="Godot_Engine" title="\(DEBUG\)$"] floating enable
 +for_window [class="Lazarus"] floating enable
 +for_window [title="MediaInfo"] floating enable
 +for_window [title="Minecraft Launcher"] floating enable
 +for_window [title="Page Info*"] floating enable
 +for_window [class="pcmanfm" instance="Confirm File Replacing"] move position center
 +for_window [title="Preferences$"] floating enable
 +for_window [title="Radiotray-NG Bookmark Editor"] floating enable
 +for_window [title="Screenshot Uploader"] floating enable
 +for_window [class="Steam" title="^Steam Community Market"] floating enable
 +for_window [class="Thunderbird" title="^Edit Event"] floating enable
 +</code>
 +
 +And here's a useful trick to have a shortcut to load a terminal window floating. So I have ''Meta+Enter'' to open a regular terminal window, and ''Meta+Shift+Enter'' to open a floating one. I use it a bunch when I want to quickly open a terminal, do something, and close it again; EG grab a video with [[yt-dlp]]:
 +
 +<code ini>bindsym $mod+Shift+Return exec --no-startup-id urxvt -geometry 80x26 -name "floating_urxvt"
 +for_window [class="URxvt" instance="floating_urxvt$"] floating enable</code>
 +
 +What this does is set a shortcut to launch [[urxvt]], specify window dimensions, and give it a name. Then we use the regular stuff we use to tell a window to float, and target that specific window by the name we gave it. Can't remember where I read this, but I wish I'd always known it!
  
 ===== Tools ===== ===== Tools =====
-  * [[git>talwrii/i3parse|i3parse]] - scans config file for unused keys (+?)+  * [[github>talwrii/i3parse|i3parse]] - scans config file for unused keys (+?)
  
-{{tag>linux}}+{{tag>guide linux window-manager}}
i3wm.1603593162.txt.gz · Last modified: 2020/10/25 13:32 by rjt