🚀 Add wofi signal on polybar & update neofetch config

This commit is contained in:
Smirnov Olexandr 2020-10-18 19:56:34 +03:00
parent 2a3bfaa82c
commit 99cc99c7d4
3 changed files with 17 additions and 227 deletions

View file

@ -1,7 +1,5 @@
print_info() { print_info() {
info title info title
info underline
info "OS" distro info "OS" distro
info "Kernel" kernel info "Kernel" kernel
info "Uptime" uptime info "Uptime" uptime
@ -10,279 +8,62 @@ print_info() {
info "Resolution" resolution info "Resolution" resolution
info "DE" de info "DE" de
info "WM" wm info "WM" wm
info "WM Theme" wm_theme
info "Theme" theme info "Theme" theme
info "Icons" icons info "Icons" icons
info "Terminal" term
info "Terminal Font" term_font
info "CPU" cpu info "CPU" cpu
info "GPU" gpu info "GPU" gpu
info "Memory" memory info "Memory" memory
info "Disk" disk
# info "Font" font
info "Local IP" local_ip
info "Public IP" public_ip
info "Users" users
} }
# Hide/Show Fully qualified domain name.
# Values: 'on', 'off'
title_fqdn="off" title_fqdn="off"
# Shorten the output of the kernel function.
# Values: 'on', 'off'
kernel_shorthand="on" kernel_shorthand="on"
# Shorten the output of the distro function
# Values: 'on', 'tiny', 'off'
distro_shorthand="off" distro_shorthand="off"
os_arch="off"
# Show/Hide OS Architecture. uptime_shorthand="tiny"
# Values: 'on', 'off'
os_arch="on"
# Uptime
# Values: 'on', 'tiny', 'off'
uptime_shorthand="on"
# Memory
# Values: 'on', 'off'
memory_percent="off" memory_percent="off"
# Change memory output unit.
# Values: 'kib', 'mib', 'gib'
memory_unit="mib" memory_unit="mib"
# Packages
# Values: 'on', 'tiny' 'off'
package_managers="on" package_managers="on"
# Shell
# Values: 'on', 'off'
shell_path="off" shell_path="off"
# Show $SHELL version
shell_version="on" shell_version="on"
# CPU
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
speed_type="bios_limit"
# CPU speed shorthand speed_type="bios_limit"
# Values: 'on', 'off'.
speed_shorthand="off" speed_shorthand="off"
# Enable/Disable CPU brand in output.
# Values: 'on', 'off'
cpu_brand="on" cpu_brand="on"
# CPU Speed
# Values: 'on', 'off'
cpu_speed="on" cpu_speed="on"
# CPU Cores
# Values: 'logical', 'physical', 'off'
cpu_cores="logical" cpu_cores="logical"
cpu_temp="off"
# CPU Temperature
# Values: 'C', 'F', 'off'
cpu_temp="C"
# GPU
# Values: 'on', 'off'
gpu_brand="on" gpu_brand="on"
# Which GPU to display
# Values: 'all', 'dedicated', 'integrated'
gpu_type="all" gpu_type="all"
# Resolution
# Values: 'on', 'off'
refresh_rate="off" refresh_rate="off"
# Gtk Theme / Icons / Font
# Values: 'on', 'off'
gtk_shorthand="off" gtk_shorthand="off"
# Enable/Disable gtk2 Theme / Icons / Font
# Values: 'on', 'off'
gtk2="on" gtk2="on"
# Enable/Disable gtk3 Theme / Icons / Font
# Values: 'on', 'off'
gtk3="on" gtk3="on"
# IP Address
# Values: 'url'
public_ip_host="http://ident.me"
# Public IP timeout.
# Values: 'int'
public_ip_timeout=2
# Desktop Environment
# Values: 'on', 'off'
de_version="on" de_version="on"
# Disk
# Values: '/', '/dev/sdXX', '/path/to/drive'.
disk_show=('/')
# Disk subtitle.
# Values: 'mount', 'name', 'dir', 'none'
disk_subtitle="mount"
# Disk percent.
# Values: 'on', 'off'
disk_percent="on"
# Song
# Values: 'auto', 'player-name'
music_player="auto"
# Format to display song information.
# Values: '%artist%', '%album%', '%title%'
song_format="%artist% - %album% - %title%"
# Print the Artist, Album and Title on separate lines
# Values: 'on', 'off'
song_shorthand="off"
# 'mpc' arguments (specify a host, password etc).
mpc_args=()
# Text Colors
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
colors=(distro)
# Toggle bold text
# Values: 'on', 'off'
bold="on"
# Enable/Disable Underline
# Values: 'on', 'off'
underline_enabled="on"
# Underline character
# Values: 'string'
underline_char="-"
# Info Separator
# Replace the default separator with the specified string.
separator=":"
# Color block range
# The range of colors to print.
# Values: 'num'
block_range=(0 15) block_range=(0 15)
# Toggle color blocks
# Values: 'on', 'off'
color_blocks="on" color_blocks="on"
# Color block width in spaces
# Values: 'num'
block_width=3 block_width=3
# Color block height in lines
# Values: 'num'
block_height=1 block_height=1
# Color Alignment
# Values: 'auto', 'num'
col_offset="auto"
# Bar characters
# Values: 'string', 'string'
bar_char_elapsed="-"
bar_char_total="="
# Toggle Bar border
# Values: 'on', 'off'
bar_border="on"
# Progress bar length in spaces
# Number of chars long to make the progress bars.
# Values: 'num'
bar_length=15
# Progress bar colors
# When set to distro, uses your distro's logo colors.
# Values: 'distro', 'num'
bar_color_elapsed="distro"
bar_color_total="distro"
# Info display
# Display a bar with the info.
cpu_display="off" cpu_display="off"
memory_display="off" memory_display="off"
battery_display="off"
disk_display="off"
# Image backend.
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
image_backend="ascii"
# Which image or ascii file to display.
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
image_source="auto"
# Ascii distro
ascii_distro="auto"
# Ascii Colors
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
ascii_colors=(distro)
# Bold ascii logo
# Whether or not to bold the ascii logo.
# Values: 'on', 'off'
ascii_bold="on"
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
# Values: 'on', 'off'
image_loop="off"
# Thumbnail directory
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
# Crop mode
# Values: 'normal', 'fit', 'fill'
crop_mode="normal"
# Crop offset
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
# 'east', 'southwest', 'south', 'southeast'
crop_offset="center"
# Image size
# The image is half the terminal width by default.
# Values: 'auto', '00px', '00%', 'none'
image_size="auto" image_size="auto"
# Gap between image and text
# Values: 'num', '-num'
gap=3 gap=3
# Image offsets
# Only works with the w3m backend.
# Values: 'px'
yoffset=0 yoffset=0
xoffset=0 xoffset=0
# Image background color
# Only works with the w3m backend.
# Values: 'color', 'blue'
background_color= background_color=
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Values: 'on', 'off'
stdout="off" stdout="off"

View file

@ -33,10 +33,10 @@ font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
font-2 = Weather Icons:size=7;2 font-2 = Weather Icons:size=7;2
;; Modules positii3on ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Modules position ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::;
modules-left = i3 sp2 weather updates-pacman modules-left = i3 sp2 weather updates-pacman
modules-center = modules-center =
modules-right = pulseaudio microphone backlight keyboard clipmenu wlan date time sp2 modules-right = pulseaudio microphone backlight keyboard clipmenu wifi-signal date time sp2
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
tray-detached = false tray-detached = false
@ -106,7 +106,7 @@ label = %percentage%%
ramp-0 =  ramp-0 = 
[module/wlan] [module/wifi-name]
type = internal/network type = internal/network
interface = wlp3s0 interface = wlp3s0
format-connected = <ramp-signal> <label-connected> format-connected = <ramp-signal> <label-connected>
@ -116,6 +116,13 @@ ramp-signal-0 = 
interval = 3.0 interval = 3.0
[module/wifi-signal]
type = custom/script
label =  %output:%%
exec = ~/.config/polybar/scripts/wifi-signal.sh
interval = 3.0
[module/filesystem] [module/filesystem]
type = internal/fs type = internal/fs
interval = 25 interval = 25

View file

@ -0,0 +1,2 @@
#!/bin/sh
cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'