i3blocks, new nfrc script
This commit is contained in:
@ -19,6 +19,9 @@ font pango:IosevkaTerm NF 14
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
#font pango:DejaVu Sans Mono 8
|
||||
|
||||
gaps inner 10
|
||||
gaps outer 10
|
||||
|
||||
# Start XDG autostart .desktop files using dex. See also
|
||||
# https://wiki.archlinux.org/index.php/XDG_Autostart
|
||||
exec --no-startup-id dex --autostart --environment i3
|
||||
@ -33,6 +36,8 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id nitrogen --restore
|
||||
exec --no-startup-id picom
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
@ -55,9 +60,9 @@ bindsym $mod+Return exec kitty
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec --no-startup-id dmenu_run
|
||||
# bindsym $mod+d exec --no-startup-id dmenu_run
|
||||
# A more modern dmenu replacement is rofi:
|
||||
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
|
||||
bindsym $mod+d exec "rofi -modi drun,run -show drun"
|
||||
# There also is i3-dmenu-desktop which only displays applications shipping a
|
||||
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
|
||||
@ -183,8 +188,15 @@ mode "resize" {
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
mode "launch" {
|
||||
bindsym e exec nemo & i3-msg mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+Shift+v mode "launch"
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3status
|
||||
status_command i3blocks
|
||||
}
|
||||
|
30
i3/.config/i3blocks/config
Normal file
30
i3/.config/i3blocks/config
Normal file
@ -0,0 +1,30 @@
|
||||
# i3blocks configuration file
|
||||
#
|
||||
# The i3blocks man page describes the usage of the binary,
|
||||
# and its website describes the configuration:
|
||||
#
|
||||
# https://vivien.github.io/i3blocks
|
||||
|
||||
|
||||
# Global properties
|
||||
separator=true
|
||||
separator_block_width=15
|
||||
|
||||
[documentation]
|
||||
full_text=Documentation
|
||||
website=https://vivien.github.io/i3blocks
|
||||
command=xdg-open "$website"
|
||||
color=#f12711
|
||||
|
||||
[tailscale]
|
||||
command=echo TS: $(ip a show tailscale0 | rg "inet (\d+\.\d+\.\d+\.\d+)" -or '$1')
|
||||
interval=30
|
||||
|
||||
[greetings]
|
||||
color=#f5af19
|
||||
command=echo "Hello, $USER!"
|
||||
interval=once
|
||||
|
||||
[time]
|
||||
command=date '+%Y-%m-%d %H:%M:%S'
|
||||
interval=1
|
64
i3/.config/i3status/config
Normal file
64
i3/.config/i3status/config
Normal file
@ -0,0 +1,64 @@
|
||||
# i3status configuration file.
|
||||
# see "man i3status" for documentation.
|
||||
|
||||
# It is important that this file is edited as UTF-8.
|
||||
# The following line should contain a sharp s:
|
||||
# ß
|
||||
# If the above line is not correctly displayed, fix your editor first!
|
||||
|
||||
general {
|
||||
colors = true
|
||||
interval = 5
|
||||
}
|
||||
|
||||
order += "wireless _first_"
|
||||
order += "ethernet _first_"
|
||||
order += "battery 0"
|
||||
order += "battery 1"
|
||||
order += "disk /"
|
||||
order += "load"
|
||||
order += "memory"
|
||||
order += "tztime local"
|
||||
|
||||
wireless _first_ {
|
||||
format_up = "W: (%quality at %essid) %ip"
|
||||
format_down = "W: down"
|
||||
}
|
||||
|
||||
ethernet _first_ {
|
||||
format_up = "E: %ip (%speed)"
|
||||
format_down = "E: down"
|
||||
}
|
||||
|
||||
battery 0 {
|
||||
format = "B0 %percentage"
|
||||
hide_seconds = true
|
||||
path = /sys/class/power_supply/BAT0/uevent
|
||||
status_unk = BAT0
|
||||
status_bat = BAT0
|
||||
}
|
||||
battery 1 {
|
||||
format = "B1 %percentage"
|
||||
hide_seconds = true
|
||||
path = /sys/class/power_supply/BAT1/uevent
|
||||
status_unk = BAT1
|
||||
status_bat = BAT1
|
||||
}
|
||||
|
||||
disk "/" {
|
||||
format = "%avail"
|
||||
}
|
||||
|
||||
load {
|
||||
format = "CPU %1min"
|
||||
}
|
||||
|
||||
memory {
|
||||
format = "MEM %available"
|
||||
threshold_degraded = "1G"
|
||||
format_degraded = "MEMORY < %available"
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = "%Y-%m-%d %H:%M:%S"
|
||||
}
|
Reference in New Issue
Block a user