Compare commits

...

4 commits

Author SHA1 Message Date
finga 914e5da29e Use the correct command to take screenshots 2023-04-19 16:11:03 +02:00
finga e68f01d1a7 Update i3status-rs configs 2023-04-19 16:09:56 +02:00
finga 5eb19a39ea Add autolock to i3 config 2023-04-19 16:08:36 +02:00
finga 63d1d56ee6 Add new screen setup 2023-04-19 15:37:58 +02:00
4 changed files with 114 additions and 72 deletions

View file

@ -200,8 +200,9 @@ client.focused #000000 #009900 #ffffff #ff0000
client.unfocused #000000 #005500 #000000 #ff0000 client.unfocused #000000 #005500 #000000 #ff0000
# use variables for screens # use variables for screens
set $screen0 "DP-1" set $screen0 "eDP-1"
set $screen1 "HDMI-2" set $screen1 "DP-1-8"
set $screen2 "DP-1-1"
# Start i3bar to display a workspace bar (plus the system information # Start i3bar to display a workspace bar (plus the system information
# i3status-rust finds out, if available) # i3status-rust finds out, if available)
@ -222,8 +223,9 @@ bar {
#client.orientation #ff0000 #client.orientation #ff0000
} }
} }
bar { bar {
status_command i3status-rs ~/.config/i3status-rust/secondary.toml status_command i3status-rs
font pango:DejaVu Sans Mono, forkawesome 8 font pango:DejaVu Sans Mono, forkawesome 8
position top position top
tray_output primary tray_output primary
@ -240,14 +242,35 @@ bar {
} }
} }
workspace $ws1 output $screen0 bar {
workspace $ws2 output $screen0 status_command i3status-rs ~/.config/i3status-rust/secondary.toml
workspace $ws3 output $screen0 font pango:DejaVu Sans Mono, forkawesome 8
workspace $ws4 output $screen0 position top
workspace $ws5 output $screen0 tray_output primary
workspace_buttons yes
mode dock
modifier $mod
output $screen2
workspace $ws10 output $screen1 colors {
workspace $ws9 output $screen1 statusline #00ff00
workspace $ws8 output $screen1 focused_workspace #00cc00 #00ff00 #000000
workspace $ws7 output $screen1 inactive_workspace #00cc00 #008b00 #cccccc
workspace $ws6 output $screen1 #client.orientation #ff0000
}
}
workspace $ws1 output $screen1
workspace $ws2 output $screen1
workspace $ws3 output $screen1
workspace $ws4 output $screen1
workspace $ws5 output $screen1
workspace $ws6 output $screen2
workspace $ws7 output $screen2
workspace $ws8 output $screen2
workspace $ws9 output $screen2
workspace $ws10 output $screen0
# start autolock
exec_always xautolock -time 5 -locker "fuzzy-i3lock"

View file

@ -1,5 +1,5 @@
[icons] [icons]
icons = "awesome" icons = "awesome4"
[theme] [theme]
theme = "solarized-dark" theme = "solarized-dark"
@ -12,89 +12,113 @@ separator_fg = "#00cc00"
separator_bg = "#222222" separator_bg = "#222222"
[[block]] [[block]]
block = "maildir" block = "uptime"
interval = 15
inboxes = ["/home/finga/mail/onders.org/Inbox", "/home/finga/mail/chaostreff.at/Inbox"]
display_type = "new"
[[block]] [[block]]
block = "weather" block = "weather"
format = "$weather $temp, $humidity, $wind m/s $direction" format = " $icon $weather $temp, $humidity, $wind m/s $direction "
service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" } service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" }
[[block]] [[block]]
block = "sound" block = "sound"
driver = "pulseaudio"
[[block]] [[block]]
block = "music" block = "net"
format = "$combo.rot-str(30) $play" device = "br0"
player = "mpd" format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up "
[[block]] [[block]]
block = "net" block = "net"
device = "enp0s31f6" device = "enp0s31f6"
format = "$ip $graph_down $speed_down $graph_up $speed_up" format = " $icon $ip $graph_down $speed_down $graph_up $speed_up "
# [[block]] [[block]]
# block = "disk_space" block = "net"
# path = "/" device = "tn0"
# info_type = "used" format = " $icon $ip $speed_down^icon_net_down $speed_up^icon_net_up "
# format = "{path} {percentage}"
# [[block]] [[block]]
# block = "disk_space" block = "net"
# path = "/home" format = " $icon {$signal_strength $ssid $frequency| x} via $device "
# info_type = "used"
# format = "{path} {percentage}"
# [[block]] [[block]]
# block = "disk_space" block = "disk_space"
# path = "/var" path = "/"
# info_type = "used" warning = 80.0
# warning = 20.0 alert = 90.0
# format = "{path} {percentage}" info_type = "used"
format = " $icon $path $percentage "
# [[block]] [[block]]
# block = "disk_space" block = "disk_space"
# path = "/tmp" path = "/home"
# info_type = "used" warning = 75.0
# format = "{path} {percentage}" alert = 80.0
info_type = "used"
format = " $icon $path $percentage "
[[block]]
block = "disk_space"
path = "/tmp"
warning = 75.0
alert = 80.0
info_type = "used"
format = " $icon $path $percentage "
[[block]]
block = "disk_space"
path = "/var"
warning = 80.0
alert = 90.0
info_type = "used"
format = " $icon $path $percentage "
[[block]]
block = "disk_space"
path = "/var/lib/machines"
warning = 80.0
alert = 90.0
info_type = "used"
format = " $icon $path $percentage "
[[block]]
block = "disk_space"
path = "/var/lib/libvirt/images"
warning = 80.0
alert = 90.0
info_type = "used"
format = " $icon $path $percentage "
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "memory" format = " $icon $mem_used_percents.eng(w:3) "
format_mem = "$mem_total_used_percents.eng(3)"
clickable = false
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "swap" format = " $icon_swap $swap_used_percents.eng(w:3) "
format_swap = "$swap_used_percents.eng(3)"
clickable = false
[[block]] [[block]]
block = "cpu" block = "cpu"
interval = 1 interval = 1
format = "$barchart $utilization $frequency.eng(4)" format = " $icon $barchart $utilization $frequency.eng(w:4) "
[[block]] [[block]]
block = "temperature" block = "temperature"
collapsed = false format = " $icon $min min, $max max, $average avg "
format = "$min min, $max max, $average avg"
chip = "*-isa-*"
[[block]] [[block]]
block = "load" block = "load"
format = "$1m.eng(4) $5m.eng(4) $15m.eng(4)" format = " $icon $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) "
[[block]] [[block]]
block = "time" block = "time"
interval = 1 interval = 1
format = "%F (%Z) %T" format = " $icon $timestamp.datetime(f:'%F (%Z) %T') "
timezone = "Europe/Vienna" timezone = "Europe/Vienna"
[[block]] [[block]]
block = "time" block = "time"
interval = 1 interval = 1
format = "(%Z) %T" format = " $icon $timestamp.datetime(f:'(%Z) %T') "
timezone = "Etc/UTC" timezone = "Etc/UTC"

View file

@ -1,5 +1,5 @@
[icons] [icons]
icons = "awesome" icons = "awesome4"
[theme] [theme]
theme = "solarized-dark" theme = "solarized-dark"
@ -13,45 +13,40 @@ separator_bg = "#222222"
[[block]] [[block]]
block = "sound" block = "sound"
driver = "pulseaudio"
[[block]] [[block]]
block = "uptime" block = "uptime"
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "memory" format = " $icon $mem_used_percents.eng(w:3) "
format_mem = "$mem_total_used_percents.eng(3)"
clickable = false
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "swap" format = " $icon_swap $swap_used_percents.eng(w:3) "
format_swap = "$swap_used_percents.eng(3)"
clickable = false
[[block]] [[block]]
block = "cpu" block = "cpu"
interval = 1 interval = 1
format = "$barchart $utilization" format = " $icon $barchart $utilization $frequency.eng(w:4) "
[[block]] [[block]]
block = "temperature" block = "temperature"
collapsed = false format = " $icon $min min, $max max, $average avg "
format = "$min min, $max max, $average avg"
chip = "*-isa-*"
[[block]] [[block]]
block = "load" block = "load"
format = "$1m.eng(4) $5m.eng(4) $15m.eng(4)" format = " $icon $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) "
[[block]] [[block]]
block = "time" block = "time"
interval = 1 interval = 1
format = "%Y-%m-%d %a (%Z) %H:%M:%S" format = " $icon $timestamp.datetime(f:'%F (%Z) %T') "
timezone = "Europe/Vienna" timezone = "Europe/Vienna"
[[block]] [[block]]
block = "time" block = "time"
interval = 1 interval = 1
format = "(%Z) %H:%M:%S" format = " $icon $timestamp.datetime(f:'(%Z) %T') "
timezone = "Etc/UTC" timezone = "Etc/UTC"

View file

@ -8,6 +8,6 @@
screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png"
scrot "$screenshot" scrot -o "$screenshot"
mogrify -scale 10% -scale 1000% "$screenshot" mogrify -scale 10% -scale 1000% "$screenshot"
exec i3lock -i "$screenshot" exec i3lock -i "$screenshot"