updates to i3 conf

This commit is contained in:
Solomon Laing 2021-11-14 20:19:22 +10:30
parent 7058a14555
commit 7c0481af47
3 changed files with 80 additions and 30 deletions

View File

@ -52,31 +52,20 @@ bindsym $mod+Shift+j kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+a exec --no-startup-id "dmenu_run -bw 3 -c -l 15 -h 26" bindsym $mod+a exec --no-startup-id "dmenu_run -bw 3 -c -l 15 -h 26"
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun" # prompt for shutdown, restart, lock, and logout
# There also is i3-dmenu-desktop which only displays applications shipping a bindsym $mod+Shift+s exec /usr/local/bin/dmenuprompt "Are you sure you want to Shutdown?" "shutdown now"
# .desktop file. It is a wrapper around dmenu, so you need that installed. bindsym $mod+Shift+r exec /usr/local/bin/dmenuprompt "Are you sure you want to Restart?" "reboot"
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop bindsym $mod+Escape exec /usr/local/bin/dmenuprompt "Are you sure you want to lock?" "slock" 1
bindsym $mod+Shift+l exec /usr/local/bin/dmenuprompt "Are you sure you want to logout?" "logout"
# change focus # change focus
bindsym $mod+h focus left
bindsym $mod+t focus down
bindsym $mod+n focus up
bindsym $mod+s focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left bindsym $mod+Left focus left
bindsym $mod+Down focus down bindsym $mod+Down focus down
bindsym $mod+Up focus up bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# move focused window # move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+t move down
bindsym $mod+Shift+n move up
bindsym $mod+Shift+s move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up bindsym $mod+Shift+Up move up
@ -160,16 +149,16 @@ mode "resize" {
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt bindsym h resize shrink width 5 px or 5 ppt
bindsym t resize grow height 10 px or 10 ppt bindsym t resize grow height 5 px or 5 ppt
bindsym n resize shrink height 10 px or 10 ppt bindsym n resize shrink height 5 px or 5 ppt
bindsym s resize grow width 10 px or 10 ppt bindsym s resize grow width 5 px or 5 ppt
# same bindings, but for the arrow keys # same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt bindsym Left resize shrink width 5 px or 5 ppt
bindsym Down resize grow height 10 px or 10 ppt bindsym Down resize grow height 5 px or 5 ppt
bindsym Up resize shrink height 10 px or 10 ppt bindsym Up resize shrink height 5 px or 5 ppt
bindsym Right resize grow width 10 px or 10 ppt bindsym Right resize grow width 5 px or 5 ppt
# back to normal: Enter or Escape or $mod+r # back to normal: Enter or Escape or $mod+r
bindsym Return mode "default" bindsym Return mode "default"
@ -186,4 +175,4 @@ bar {
} }
gaps inner 8 gaps inner 8
gaps outer 8 gaps outer 4

65
.config/i3status/config Normal file
View File

@ -0,0 +1,65 @@
general {
colors = true
interval = 1
}
order += "ipv6"
order += "wireless wlp36s0"
order += "ethernet enp33s0"
order += "path_exists VPN"
order += "battery 0"
order += "disk /"
order += "memory"
order += "cpu_usage"
order += "tztime local"
order += "tztime adelaide"
wireless wlp36s0 {
format_up = "W: (%quality at %essid, %bitrate) %ip"
format_down = "W: down"
}
ethernet enp33s0 {
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining %emptytime"
format_down = "No battery"
status_chr = "⚡ CHR"
status_bat = "🔋 BAT"
status_unk = "? UNK"
status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
hide_if_equals_localtime = true
}
tztime adelaide {
format = "%Y-%m-%d %H:%M:%S %Z"
timezone = "Australia/Adelaide"
}
cpu_usage {
format = "all: %usage"
}
memory {
format = "%used"
threshold_degraded = "10%"
format_degraded = "MEMORY: %free"
}
disk "/" {
format = "%free"
}

View File

@ -47,7 +47,3 @@ if [ "$HOST" == "archmetabox" ] ; then
xrandr --auto xrandr --auto
fi fi
# start my trusty window manager
#exec xmonad --recompile
#exec xmonad --replace