i3: added more precise resize; added cpu temp to bar

master
Jef Roosens 2022-04-27 09:30:33 +02:00
parent 6cb1bbf2fa
commit 40a1069990
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
3 changed files with 23 additions and 12 deletions

View File

@ -19,6 +19,23 @@ mode "config" {
bindsym $mod+s mode "config"
# Resize focused window
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym Shift+h resize shrink width 2 px or 2 ppt
bindsym Shift+j resize shrink height 2 px or 2 ppt
bindsym Shift+k resize grow height 2 px or 2 ppt
bindsym Shift+l resize grow width 2 px or 2 ppt
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# reload the configuration file
bindsym $mod+Shift+c reload

View File

@ -60,18 +60,6 @@ bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# Resize focused window
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#resize floating windows with mouse scroll:
bindsym --whole-window --border $mod+button4 resize shrink height 5 px or 5 ppt
bindsym --whole-window --border $mod+button5 resize grow height 5 px or 5 ppt

View File

@ -32,6 +32,12 @@ block = "cpu"
interval = 1
format = "{utilization} {frequency}"
[[block]]
block = "temperature"
collapsed = false
interval = 1
chip = "*-isa-*"
[[block]]
block = "nvidia_gpu"
label = "GTX 1060"