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

@ -35,7 +35,7 @@ These are all the programs that i3 calls somewhere in its config, whether that b
* alacritty or kitty (currently uses kitty, just comment out one line or the other in the i3 conf to switch)
* cool retro term
* i3-lock
* betterlockscreen
* brightnessctl
* xdotool
* maim (screenshot program)
@ -45,8 +45,10 @@ These are all the programs that i3 calls somewhere in its config, whether that b
* geoclue (geolocation dameon)
* feh (for setting desktop wallpaper)
* dunst
* i3status
* i3status-rust
* xclip
* playerctl
* upower
* gnome-keyring (for login management in, for example, nextcloud. See https://gabevenberg.com/posts/autologinnextcloudclientonarch/ for details.)
### x11 and x11hidpi

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"