Compare commits

...

20 commits
main ... work

Author SHA1 Message Date
finga 6bd4251fdb i3status-rs: Change font
Change font to NotoSansMono-Regular.
2024-04-05 12:46:20 +02:00
finga a4e7c0d67f fuzzy-i3lock: Use and improve 37c3 fuzzy-i3lock 2024-01-03 10:43:20 +01:00
finga 65f328d09f dunst: Improve dunst keybindings 2024-01-03 10:42:55 +01:00
finga ddbc36926d screens: Add screen 0 2024-01-03 10:42:17 +01:00
finga c4a7b9bc40 i3lock: Make fuzzy-i3lock a bit like 37c3 2023-11-30 16:09:32 +01:00
finga c3bf62e3ed dunst: Change keybinding to pop msg from history
Use $mod+comma instead of $mod+grave to pop messages from the history.
2023-09-14 14:57:51 +02:00
finga 7ccc66aabd i3-config: Change lock shortcut
In order for the super-l key combination to be available in other
programs change it to super-shift-l.
2023-08-25 11:06:22 +02:00
finga 871ebf00dc i3status-rs: Add the backup volume
Also show the usage of the backup volume.
2023-07-05 16:58:44 +02:00
finga c9f0e2200a i3status-rs: Show names instead of too long paths
In order to not oversize the status bar configure names instead of the
too long paths.
2023-07-05 16:57:56 +02:00
finga 7adb7a638b screens: Add two other screens
In order to have enough screens pin screen 11 and 12 to the laptop.
2023-06-26 16:50:08 +02:00
finga 878ed3a0d2 dunst: Add keybindings for dunst
In order to control dunst from the keyboard create some keybindings.
2023-06-23 11:12:07 +02:00
finga 2801e7f5bd dunst: Create dunst config
In order to improve visibility of notifications add a custom
configuration.
2023-06-20 14:44:58 +02:00
finga 1d700f2484 i3status-rs: Drop uptime in favor of disk usage
Drop uptime block on main monitor in favor of disk usage of `\boot`
and as uptime is shown on the right screen anyways.
2023-06-02 13:10:06 +02:00
finga cabe73601d Optimize workspace bindings per screen 2023-04-25 08:54:39 +02:00
finga ae4ef3463c Show battery information in i3status 2023-04-20 10:51:37 +02:00
finga 6594a5bd91 Optimize status bar 2023-04-20 08:06:06 +02:00
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
6 changed files with 183 additions and 78 deletions

20
.config/dunst/dunstrc Normal file
View file

@ -0,0 +1,20 @@
[global]
follow = keyboard
scale = 2
idle_threshold = 3
font = Monospace 12
history_length = 100
corner_radius = 5
ignore_dbusclose = true
timeout = 0
background = "#333333"
frame_color = "#009900"
[urgency_low]
foreground = "#009900"
[urgency_normal]
foreground = "#ffee33"
[urgency_critical]
foreground = "#aa3333"

View file

@ -41,7 +41,7 @@ bindsym $mod+Shift+Return exec i3-sensible-editor
bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png'
# lock screen
bindsym $mod+l exec fuzzy-i3lock
bindsym $mod+Shift+l exec fuzzy-i3lock 37c3
# kill focused window
bindsym $mod+Shift+q kill
@ -102,6 +102,7 @@ bindsym $mod+q focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws0 "0"
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
@ -112,8 +113,11 @@ set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
set $ws11 "11"
set $ws12 "12"
# switch to workspace
bindsym $mod+grave workspace $ws0
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
@ -124,8 +128,11 @@ bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym $mod+minus workspace $ws11
bindsym $mod+equal workspace $ws12
# move focused container to workspace
bindsym $mod+Shift+grave move container to workspace $ws0
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
@ -136,6 +143,8 @@ bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
bindsym $mod+Shift+underscore move container to workspace $ws11
bindsym $mod+Shift+plus move container to workspace $ws12
# reload the configuration file
bindsym $mod+Shift+c reload
@ -165,6 +174,11 @@ bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioStop exec --no-startup-id mpc stop
# dunst control
bindsym $mod+comma exec dunstctl close
bindsym $mod+Shift+comma exec dunstctl close-all
bindsym $mod+period exec dunstctl history-pop
# open login screen on another vt (virtual terminal)
bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter"
@ -200,14 +214,15 @@ client.focused #000000 #009900 #ffffff #ff0000
client.unfocused #000000 #005500 #000000 #ff0000
# use variables for screens
set $screen0 "DP-1"
set $screen1 "HDMI-2"
set $screen0 "eDP-1"
set $screen1 "DP-1-8"
set $screen2 "DP-1-1"
# Start i3bar to display a workspace bar (plus the system information
# i3status-rust finds out, if available)
bar {
status_command i3status-rs
font pango:DejaVu Sans Mono, forkawesome 8
font pango:NotoSansMono-Regular, forkawesome 9
position top
tray_output primary
workspace_buttons yes
@ -222,9 +237,10 @@ bar {
#client.orientation #ff0000
}
}
bar {
status_command i3status-rs ~/.config/i3status-rust/secondary.toml
font pango:DejaVu Sans Mono, forkawesome 8
status_command i3status-rs
font pango:NotoSansMono-Regular, forkawesome 8
position top
tray_output primary
workspace_buttons yes
@ -240,14 +256,39 @@ bar {
}
}
workspace $ws1 output $screen0
workspace $ws2 output $screen0
workspace $ws3 output $screen0
workspace $ws4 output $screen0
workspace $ws5 output $screen0
bar {
status_command i3status-rs ~/.config/i3status-rust/secondary.toml
font pango:NotoSansMono-Regular, forkawesome 8
position top
tray_output primary
workspace_buttons yes
mode dock
modifier $mod
output $screen2
workspace $ws10 output $screen1
workspace $ws9 output $screen1
workspace $ws8 output $screen1
workspace $ws7 output $screen1
workspace $ws6 output $screen1
colors {
statusline #00ff00
focused_workspace #00cc00 #00ff00 #000000
inactive_workspace #00cc00 #008b00 #cccccc
#client.orientation #ff0000
}
}
workspace $ws0 output $screen1
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 $screen2
workspace $ws11 output $screen0
workspace $ws12 output $screen0
# start autolock
exec_always xautolock -time 5 -locker "fuzzy-i3lock 37c3"

View file

@ -1,5 +1,5 @@
[icons]
icons = "awesome"
icons = "awesome4"
[theme]
theme = "solarized-dark"
@ -11,90 +11,131 @@ separator = "|"
separator_fg = "#00cc00"
separator_bg = "#222222"
[[block]]
block = "maildir"
interval = 15
inboxes = ["/home/finga/mail/onders.org/Inbox", "/home/finga/mail/chaostreff.at/Inbox"]
display_type = "new"
[[block]]
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" }
[[block]]
block = "sound"
driver = "pulseaudio"
[[block]]
block = "music"
format = "$combo.rot-str(30) $play"
player = "mpd"
block = "net"
device = "br0"
format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up "
[[block]]
block = "net"
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 = "disk_space"
# path = "/"
# info_type = "used"
# format = "{path} {percentage}"
[[block]]
block = "net"
device = "tn0"
format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up "
# [[block]]
# block = "disk_space"
# path = "/home"
# info_type = "used"
# format = "{path} {percentage}"
[[block]]
block = "net"
format = " $icon {$signal_strength $ssid $frequency via $device| x} "
# [[block]]
# block = "disk_space"
# path = "/var"
# info_type = "used"
# warning = 20.0
# format = "{path} {percentage}"
[[block]]
block = "disk_space"
path = "/"
warning = 80.0
alert = 90.0
info_type = "used"
format = " $icon $path $percentage "
# [[block]]
# block = "disk_space"
# path = "/tmp"
# info_type = "used"
# format = "{path} {percentage}"
[[block]]
block = "disk_space"
path = "/boot"
warning = 75.0
alert = 85.0
info_type = "used"
format = " $icon $path $percentage "
[[block]]
block = "disk_space"
path = "/home"
warning = 75.0
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 nspawn $percentage "
[[block]]
block = "disk_space"
path = "/var/lib/libvirt/images"
warning = 80.0
alert = 90.0
info_type = "used"
format = " $icon libvirt $percentage "
[[block]]
block = "disk_space"
path = "/share/backup"
warning = 80.0
alert = 90.0
info_type = "used"
format = " $icon backup $percentage "
[[block]]
block = "memory"
display_type = "memory"
format_mem = "$mem_total_used_percents.eng(3)"
clickable = false
format = " $icon $mem_used_percents.eng(w:3) "
[[block]]
block = "memory"
display_type = "swap"
format_swap = "$swap_used_percents.eng(3)"
clickable = false
format = " $icon_swap $swap_used_percents.eng(w:3) "
[[block]]
block = "cpu"
interval = 1
format = "$barchart $utilization $frequency.eng(4)"
format = " $icon $barchart $utilization $frequency.eng(w:4) "
[[block]]
block = "temperature"
collapsed = false
format = "$min min, $max max, $average avg"
chip = "*-isa-*"
format = " $icon $min min, $max max, $average avg "
[[block]]
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 = "battery"
format = "$percentage $time"
[[block]]
block = "time"
interval = 1
format = "%F (%Z) %T"
format = " $icon $timestamp.datetime(f:'%F (%Z) %T') "
timezone = "Europe/Vienna"
[[block]]
block = "time"
interval = 1
format = "(%Z) %T"
format = " $icon $timestamp.datetime(f:'(%Z) %T') "
timezone = "Etc/UTC"

View file

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

View file

@ -1,4 +1,5 @@
*
!/.config/dunst/dunstrc
!/.config/i3/config
!/.config/i3status-rust/config.toml
!/.config/i3status-rust/secondary.toml

View file

@ -8,6 +8,13 @@
screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png"
scrot "$screenshot"
mogrify -scale 10% -scale 1000% "$screenshot"
scrot -o "$screenshot"
case $1 in
"37c3") mogrify -scale 10% -scale 500% -dither FloydSteinberg -colors 32 -scale 200% "$screenshot"
;;
*) mogrify -scale 10% -scale 1000% "$screenshot"
;;
esac
exec i3lock -i "$screenshot"