mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 18:08:28 +02:00
feat: set hdmi0 to 1080p
feat: adjust alacritty's font size for linux fix: errors in i3 config feat: update i3blocks's scripts & style
This commit is contained in:
@@ -1,21 +1,12 @@
|
||||
# i3blocks config file changed for EndeavourOS-i3 setup
|
||||
|
||||
# source is available here:
|
||||
# https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/i3blocks.conf
|
||||
# Maintainer: joekamprad [joekamprad@endeavouros.com]
|
||||
# Former Visual Designer: Florent Valetti [@FLVAL EndeavourOS]
|
||||
# created for i3wm setup on EndeavourOS
|
||||
# https://endeavouros.com
|
||||
|
||||
# cheatsheet for icon fonts used on the block-bar:
|
||||
# https://fontawesome.com/v4.7/cheatsheet/
|
||||
|
||||
# --> to update this run the following command:
|
||||
# wget --backups=1 https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/i3blocks.conf -P ~/.config/i3/
|
||||
|
||||
# Please see man i3blocks for a complete reference!
|
||||
# The man page is also hosted at http://vivien.github.io/i3blocks
|
||||
|
||||
#
|
||||
# _ _____ _ _ _
|
||||
# (_)___ /| |__ | | ___ ___| | _____
|
||||
# | | |_ \| '_ \| |/ _ \ / __| |/ / __|
|
||||
# | |___) | |_) | | (_) | (__| <\__ \
|
||||
# |_|____/|_.__/|_|\___/ \___|_|\_\___/
|
||||
#
|
||||
# Official repository for community contributed blocklets:
|
||||
# https://github.com/vivien/i3blocks-contrib
|
||||
|
||||
# List of valid properties:
|
||||
#
|
||||
@@ -35,143 +26,139 @@
|
||||
# urgent
|
||||
|
||||
# Global properties
|
||||
#
|
||||
# The top properties below are applied to every block, but can be overridden.
|
||||
separator=false
|
||||
markup=pango
|
||||
|
||||
#[Weather]
|
||||
#command=~/.config/i3/scripts/openweather
|
||||
# or:
|
||||
#command=~/.config/i3/scripts/openweather-city
|
||||
#interval=1800
|
||||
#color=#7275b3
|
||||
|
||||
[terminal]
|
||||
full_text=
|
||||
color=#807dfe
|
||||
command=i3-msg -q exec alacritty
|
||||
|
||||
[browser]
|
||||
full_text=
|
||||
full_text=
|
||||
color=#ff7f81
|
||||
command=i3-msg -q exec firefox
|
||||
|
||||
[files]
|
||||
full_text=
|
||||
full_text=
|
||||
color=#7f3fbf
|
||||
command=i3-msg -q exec thunar ~/
|
||||
|
||||
#[mail]
|
||||
#full_text=
|
||||
#color=#dbcb75
|
||||
#command=i3-msg -q exec thunderbird
|
||||
|
||||
[simple-2]
|
||||
full_text=: :
|
||||
color=#717171
|
||||
|
||||
|
||||
# Disk usage
|
||||
#
|
||||
# The directory defaults to $HOME if the instance is not specified.
|
||||
# The script may be called with a optional argument to set the alert
|
||||
# (defaults to 10 for 10%).
|
||||
[disk]
|
||||
label=
|
||||
instance=/
|
||||
command=~/.config/i3/scripts/disk
|
||||
command=df -h / | awk '/\//{ printf(" %4s/%s \n", $4, $2) }'
|
||||
interval=30
|
||||
label=<span color="#50fa7b"> </span>
|
||||
border=#50fa7b
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
|
||||
# Memory usage
|
||||
#
|
||||
# The type defaults to "mem" if the instance is not specified.
|
||||
[memory]
|
||||
label=
|
||||
command=~/.config/i3/scripts/memory
|
||||
command=free -h | awk '/Mem:/ { printf(" %5s/%s \n", $3, $2) }'
|
||||
interval=2
|
||||
label=<span color="#f1fa8c"> </span>
|
||||
border=#f1fa8c
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
|
||||
[cpu_usage]
|
||||
label=
|
||||
command=~/.config/i3/scripts/cpu_usage
|
||||
#min_width=CPU: 100.00%
|
||||
command=(mpstat | grep all | awk '{ printf "%04.1f<span color=\"#ff5555\">%</span>", (100 - $12) }') && (sensors | grep 'Package id 0:\|Tdie' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o)
|
||||
interval=2
|
||||
label=<span color="#ff5555"><b>CPU: </b></span>
|
||||
border=#ff5555
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
[CPU-temperature]
|
||||
label=
|
||||
command=~/.config/i3/scripts/temperature
|
||||
interval=30
|
||||
#T_WARN=70
|
||||
#T_CRIT=90
|
||||
#SENSOR_CHIP=""
|
||||
# where SENSOR_CHIP can be find with sensors output
|
||||
# can be used also for GPU temperature or other temperature sensors lm-sensors detects.
|
||||
[cpu_temperture]
|
||||
command=
|
||||
interval=5
|
||||
border=#ff5555
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
# showing name of connected network (enable for wifi use)
|
||||
#[net]
|
||||
#label=
|
||||
#command=echo "$(LANG=C nmcli d | grep connected | awk '{print $4}')"
|
||||
#interval=30
|
||||
|
||||
[nvidia_gpu_stats]
|
||||
command=nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{ printf "%02i<span color=\"#ffb86c\">%</span>", $0}' && nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | awk '{ printf " %i<span color=\"#ffb86c\">°C</span>\n", $0}'
|
||||
label=<span color="#ffb86c"><b>GPU: </b></span>
|
||||
interval=5
|
||||
border=#ffb86c
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
|
||||
# https://github.com/vivien/i3blocks-contrib/blob/master/bandwidth3/README.md
|
||||
[bandwidth]
|
||||
command=~/.config/i3/scripts/bandwidth2
|
||||
command=~/.config/i3/scripts/bandwidth
|
||||
label=<span color="#ff79c6"></span>
|
||||
interval=persist
|
||||
border=#ff79c6
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
# Battery indicator
|
||||
# [battery]
|
||||
# command=~/.config/i3/scripts/battery2
|
||||
# # for alternative battery script change to battery1
|
||||
# # change this to battery-pinebook-pro if you are running on pinebook-pro
|
||||
# label=
|
||||
# interval=30
|
||||
|
||||
[simple-2]
|
||||
full_text=: :
|
||||
color=#717171
|
||||
|
||||
[pavucontrol]
|
||||
full_text=
|
||||
command=pavucontrol
|
||||
label=<span color="#bd93f9"> </span>
|
||||
border=#bd93f9
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
[volume-pulseaudio]
|
||||
command=~/.config/i3/scripts/volume
|
||||
instance=Master
|
||||
interval=1
|
||||
[date]
|
||||
command=date
|
||||
interval=60
|
||||
label=<span color="#ff5555"> </span>
|
||||
border=#ff5555
|
||||
border_top=1
|
||||
border_right=0
|
||||
border_bottom=0
|
||||
border_left=0
|
||||
|
||||
# display keyboard layout name
|
||||
# for keyboard layouts switcher
|
||||
# see i3 config file
|
||||
# this needs xkblayout-state installed from the AUR:
|
||||
# https://aur.archlinux.org/packages/xkblayout-state-git
|
||||
#[keyboard-layout]
|
||||
#command=~/.config/i3/scripts/keyboard-layout
|
||||
#interval=2
|
||||
|
||||
[keybindings]
|
||||
full_text=
|
||||
command=~/.config/i3/scripts/keyhint
|
||||
|
||||
# power-profiles-daemon implementation:
|
||||
# needs package power-profiles-daemon installed and the service running see here:
|
||||
# https://wiki.archlinux.org/title/CPU_frequency_scaling#power-profiles-daemon
|
||||
|
||||
#set power-profile
|
||||
[ppd_menu]
|
||||
full_text=
|
||||
full_text=
|
||||
command=~/.config/i3/scripts/power-profiles
|
||||
color=#407437
|
||||
color=#50fa7b
|
||||
|
||||
#Show the current power-profile
|
||||
[ppd-status]
|
||||
command=~/.config/i3/scripts/ppd-status
|
||||
command=powerprofilesctl get
|
||||
interval=5
|
||||
|
||||
[time]
|
||||
#label=
|
||||
command=date '+%a %d %b %H:%M:%S'
|
||||
interval=1
|
||||
|
||||
[shutdown_menu]
|
||||
full_text=
|
||||
full_text=
|
||||
command=~/.config/i3/scripts/powermenu
|
||||
|
||||
[simple-2]
|
||||
|
||||
Reference in New Issue
Block a user