Skip to content

Instantly share code, notes, and snippets.

@bijanebrahimi
Created February 28, 2016 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bijanebrahimi/d39f8fbbfe12e945db67 to your computer and use it in GitHub Desktop.
Save bijanebrahimi/d39f8fbbfe12e945db67 to your computer and use it in GitHub Desktop.
My py3status configuration
bar {
...
status_command py3status -c ~/.config/i3/i3status.conf
font pango:DejaVu Sans Mono, Awesome 10
...
}
# 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 += "static_string i3lock"
order += "static_string screenshot"
order += "static_string wallpaper"
order += "net_rate"
order + = "online_status"
order += "keyboard_layout"
order += "battery_level"
order += "time local"
time {
format = " %A %e %B  %H:%M"
on_click 1 = "exec --no-startup-id gahshomar"
}
battery_level{
blocks = ""
charging_character = ""
format = " {percent} {icon} {time_remaining}"
color_charging = "#FFFFFF"
cache_timeout = 5
}
keyboard_layout {
cache_timeout = 1
format = " {layout}"
color = "#FFFFFF"
}
net_rate {
format = " {total}"
precision = 0
}
online_status {
cache_timeout = 10
format_offline = ""
format_online = ""
timeout = 20
}
static_string wallpaper {
format = ""
on_click 1 = "exec --no-startup-id feh --bg-scale $(find /home/bijan/Pictures/wallpapers/ | shuf | head -n 1)"
}
static_string screenshot {
format = ""
# Taking Screenshot using maim
on_click 1 = "exec --no-startup-id echo ~/Pictures/Screenshots/img-$(date +%Y-%m-%d)-${RANDOM}.png | xargs -I '{}' maim -s '{}' && notify-send 'Screenshot' 'Screenshot taken'"}
static_string i3lock {
format = ""
# Set background for lock screen using -i argument
on_click 1 = "exec --no-startup-id i3lock -d -I 5"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment