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:
parent
4d1f3e77cb
commit
e4d8cc3c8b
@ -1,5 +1,5 @@
|
|||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) printf " "$(date '+%d/%m/%y') ; exit ;;
|
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')
|
*) printf " "$(date '+%H:%M')
|
||||||
esac
|
esac
|
||||||
|
@ -5,7 +5,7 @@ import os
|
|||||||
|
|
||||||
button = os.environ.get('BLOCK_BUTTON')
|
button = os.environ.get('BLOCK_BUTTON')
|
||||||
if button == '1':
|
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]
|
updates = commands.getstatusoutput("/usr/bin/checkupdates | wc -l")[1]
|
||||||
if updates and updates != '0':
|
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_window pixel 6
|
||||||
new_float none
|
new_float none
|
||||||
|
|
||||||
@ -124,9 +130,10 @@ focus_follows_mouse yes
|
|||||||
bindsym $mod+Shift+j reload
|
bindsym $mod+Shift+j reload
|
||||||
bindsym $mod+Shift+p restart
|
bindsym $mod+Shift+p restart
|
||||||
bindsym $mod+c exec google-chrome-stable
|
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 Mod1+Tab exec ~/.config/i3/alt-tab.sh
|
||||||
bindsym $mod+Return exec i3-sensible-terminal
|
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+l exec ~/.config/i3/lock.sh
|
||||||
bindsym $mod+space exec rofi -show run -fg "#D3DAE3" -bg "#383C4A" -hlbg "#5294E2"
|
bindsym $mod+space exec rofi -show run -fg "#D3DAE3" -bg "#383C4A" -hlbg "#5294E2"
|
||||||
bindsym --release Print exec imgur-screenshot -s
|
bindsym --release Print exec imgur-screenshot -s
|
||||||
|
Loading…
Reference in New Issue
Block a user