added i3status-rust and betterlockscreen.

This commit is contained in:
Gabe Venberg 2024-04-12 21:44:48 -05:00
parent 6835374b3d
commit ecaec8688c
3 changed files with 63 additions and 11 deletions

View file

@ -178,8 +178,8 @@ smart_borders on
bindsym $mod+ctrl+r mode "resize"
# lock and turn off the screen with mod+x, and lock+suspend computer with mod+shift+x
set $lock_command i3lock
set $lock_command_nof i3lock -n #versuon of $lock_command that does not fork.
set $lock_command betterlockscreen --lock
set $lock_command_nof betterlockscreen --lock -- -n #version of $lock_command that does not fork.
bindsym $mod+x exec --no-startup-id "~/dotfiles/scripts/screen_off $lock_command_nof"
bindsym $mod+shift+x exec --no-startup-id "$lock_command"; exec --no-startup-id "systemctl suspend"
@ -224,13 +224,6 @@ smart_borders on
for_window [class="Pavucontrol"] floating enable
for_window [title="Origin"] floating enable
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}
#startup applications
#resetting the wallpaper. We are not setting it here, so we can have different wallpapers on different machines. use feh --bg-fill FILE to set it. it will write a .fehbg file.
@ -245,3 +238,9 @@ bar {
#geoclue
exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
#bar (i3status-rust)
bar {
position bottom
status_command i3status-rs ~/.config/i3status-rust/config-default.toml
}

View file

@ -0,0 +1,51 @@
[[block]]
block = "music"
format = "{$icon $combo.str(max_w:25,rot_interval:0.5) $play $prev $next $player.str(max_w:5,rot_interval:0.5) [$cur/$avail]|}"
[[block]]
block = "memory"
format = "$icon $mem_used_percents"
format_alt = "$icon $swap_used_percents (swap)"
[[block]]
block = "cpu"
interval = 1
[[block]]
block = "load"
format = "$icon $1m"
interval = 1
[[block]]
block = "net"
format = "$icon {$signal_strength $ssid.str(max_w:5,rot_interval:0.5)|}"
format_alt = "$icon {$signal_strength $ssid.str(max_w:5,rot_interval:0.5) $frequency|} ipv4-$ip ipv6-$ipv6 via $device"
[[block]]
block = "backlight"
[[block]]
block = "battery"
driver = "upower"
device = "DisplayDevice"
format = "$icon $percentage {$time|}"
[[block]]
block = "sound"
format = "$icon {$volume.bar(v:true) $volume.eng(w:2)|}"
headphones_indicator = true
[[block.click]]
button = "left"
cmd = "pwvucontrol"
[[block]]
block = "time"
format = "$timestamp.datetime(f:'%F %R')"
interval = 60
[icons]
icons = "material-nf"
[theme]
theme = "gruvbox-dark"