mirror of
				https://github.com/frebib/dotfiles.git
				synced 2024-06-14 12:57:23 +00:00 
			
		
		
		
	Change rules with i3 opening some windows as floating
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
case $BLOCK_BUTTON in
 | 
			
		||||
    1) printf " "$(date '+%d/%m/%y') ; exit ;;
 | 
			
		||||
    2|3) i3-sensible-terminal -e "$SHELL -c 'cal -y $(date +'%Y')';$SHELL" &;;
 | 
			
		||||
    2|3) i3-sensible-terminal -r i3blocks-clock-term --geometry 68x35 -e "$SHELL -c \"cal -y $(date +'%Y');$SHELL\"" &>/dev/null & ;;
 | 
			
		||||
    *) printf " "$(date '+%H:%M')
 | 
			
		||||
esac
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@ import os
 | 
			
		||||
 | 
			
		||||
button = os.environ.get('BLOCK_BUTTON')
 | 
			
		||||
if button == '1':
 | 
			
		||||
  os.system("i3-sensible-terminal -e 'pacaur -Syu'")
 | 
			
		||||
  os.system("i3-sensible-terminal -r i3blocks-update-term -e 'pacaur -Syu'")
 | 
			
		||||
 | 
			
		||||
updates = commands.getstatusoutput("/usr/bin/checkupdates | wc -l")[1]
 | 
			
		||||
if updates and updates != '0':
 | 
			
		||||
 
 | 
			
		||||
@@ -110,6 +110,12 @@ bar {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Window rules
 | 
			
		||||
for_window [title="Volume Control"] floating enable
 | 
			
		||||
for_window [window_role="floating-term"] floating enable
 | 
			
		||||
for_window [window_role="i3blocks-update-term"] floating enable
 | 
			
		||||
for_window [window_role="i3blocks-clock-term"] floating enable
 | 
			
		||||
 | 
			
		||||
new_window pixel 6
 | 
			
		||||
new_float none
 | 
			
		||||
 | 
			
		||||
@@ -124,9 +130,10 @@ focus_follows_mouse yes
 | 
			
		||||
bindsym $mod+Shift+j reload
 | 
			
		||||
bindsym $mod+Shift+p restart
 | 
			
		||||
bindsym $mod+c       exec google-chrome-stable
 | 
			
		||||
bindsym $mod+v       exec "i3-sensible-terminal -e \\"$SHELL -c vim;$SHELL\\""
 | 
			
		||||
bindsym $mod+v       exec "i3-sensible-terminal -e \\"$SHELL -c vim;$SHELL\\"
 | 
			
		||||
bindsym Mod1+Tab     exec ~/.config/i3/alt-tab.sh
 | 
			
		||||
bindsym $mod+Return  exec i3-sensible-terminal
 | 
			
		||||
bindsym $mod+Ctrl+Return  exec i3-sensible-terminal -r floating-term  --geometry 96x30
 | 
			
		||||
bindsym $mod+l       exec ~/.config/i3/lock.sh
 | 
			
		||||
bindsym $mod+space   exec rofi -show run -fg "#D3DAE3" -bg "#383C4A" -hlbg "#5294E2"
 | 
			
		||||
bindsym --release Print        exec imgur-screenshot -s
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user