all repos

dotfiles @ 99cc99c

i use rach linux btw
3 files changed, 17 insertions(+), 227 deletions(-)
:rocket: Add wofi signal on polybar & update neofetch config
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-10-18 19:56:34 +0300
Parent: 2a3bfaa
M config/neofetch/config.conf
···
        1
        1
         print_info() {

      
        2
        2
             info title

      
        3
        
        -    info underline

      
        4
        
        -

      
        5
        3
             info "OS" distro

      
        6
        4
             info "Kernel" kernel

      
        7
        5
             info "Uptime" uptime

      ···
        10
        8
             info "Resolution" resolution

      
        11
        9
             info "DE" de

      
        12
        10
             info "WM" wm

      
        13
        
        -    info "WM Theme" wm_theme

      
        14
        11
             info "Theme" theme

      
        15
        12
             info "Icons" icons

      
        16
        
        -    info "Terminal" term

      
        17
        
        -    info "Terminal Font" term_font

      
        18
        13
             info "CPU" cpu

      
        19
        14
             info "GPU" gpu

      
        20
        15
             info "Memory" memory

      
        21
        
        -    info "Disk" disk

      
        22
        
        -    # info "Font" font

      
        23
        
        -    info "Local IP" local_ip

      
        24
        
        -    info "Public IP" public_ip

      
        25
        
        -    info "Users" users

      
        26
        16
         }

      
        27
        17
         

      
        28
        
        -# Hide/Show Fully qualified domain name.

      
        29
        
        -# Values:   'on', 'off'

      
        30
        18
         title_fqdn="off"

      
        31
        
        -

      
        32
        
        -

      
        33
        
        -# Shorten the output of the kernel function.

      
        34
        
        -# Values:   'on', 'off'

      
        35
        19
         kernel_shorthand="on"

      
        36
        20
         

      
        37
        
        -# Shorten the output of the distro function

      
        38
        
        -# Values:   'on', 'tiny', 'off'

      
        39
        21
         distro_shorthand="off"

      
        40
        
        -

      
        41
        
        -# Show/Hide OS Architecture.

      
        42
        
        -# Values:  'on', 'off'

      
        43
        
        -os_arch="on"

      
        
        22
        +os_arch="off"

      
        44
        23
         

      
        45
        
        -# Uptime

      
        46
        
        -# Values:  'on', 'tiny', 'off'

      
        47
        
        -uptime_shorthand="on"

      
        
        24
        +uptime_shorthand="tiny"

      
        48
        25
         

      
        49
        
        -# Memory

      
        50
        
        -# Values:  'on', 'off'

      
        51
        26
         memory_percent="off"

      
        52
        
        -

      
        53
        
        -# Change memory output unit.

      
        54
        
        -# Values:  'kib', 'mib', 'gib'

      
        55
        27
         memory_unit="mib"

      
        56
        28
         

      
        57
        
        -# Packages

      
        58
        
        -# Values:  'on', 'tiny' 'off'

      
        59
        29
         package_managers="on"

      
        60
        30
         

      
        61
        
        -# Shell

      
        62
        
        -# Values:  'on', 'off'

      
        63
        31
         shell_path="off"

      
        64
        
        -

      
        65
        
        -# Show $SHELL version

      
        66
        32
         shell_version="on"

      
        67
        33
         

      
        68
        
        -# CPU

      
        69
        
        -# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.

      
        70
        
        -speed_type="bios_limit"

      
        71
        34
         

      
        72
        
        -# CPU speed shorthand

      
        73
        
        -# Values: 'on', 'off'.

      
        
        35
        +speed_type="bios_limit"

      
        74
        36
         speed_shorthand="off"

      
        75
        37
         

      
        76
        
        -# Enable/Disable CPU brand in output.

      
        77
        
        -# Values:  'on', 'off'

      
        78
        38
         cpu_brand="on"

      
        79
        
        -

      
        80
        
        -# CPU Speed

      
        81
        
        -# Values:  'on', 'off'

      
        82
        39
         cpu_speed="on"

      
        83
        
        -

      
        84
        
        -# CPU Cores

      
        85
        
        -# Values:  'logical', 'physical', 'off'

      
        86
        40
         cpu_cores="logical"

      
        87
        
        -

      
        88
        
        -# CPU Temperature

      
        89
        
        -# Values:  'C', 'F', 'off'

      
        90
        
        -cpu_temp="C"

      
        
        41
        +cpu_temp="off"

      
        91
        42
         

      
        92
        
        -# GPU

      
        93
        
        -# Values:  'on', 'off'

      
        94
        43
         gpu_brand="on"

      
        95
        
        -

      
        96
        
        -# Which GPU to display

      
        97
        
        -# Values:  'all', 'dedicated', 'integrated'

      
        98
        44
         gpu_type="all"

      
        99
        45
         

      
        100
        
        -# Resolution

      
        101
        
        -# Values:  'on', 'off'

      
        102
        46
         refresh_rate="off"

      
        103
        47
         

      
        104
        
        -# Gtk Theme / Icons / Font

      
        105
        
        -# Values:  'on', 'off'

      
        106
        48
         gtk_shorthand="off"

      
        107
        
        -

      
        108
        
        -# Enable/Disable gtk2 Theme / Icons / Font

      
        109
        
        -# Values:  'on', 'off'

      
        110
        49
         gtk2="on"

      
        111
        
        -

      
        112
        
        -# Enable/Disable gtk3 Theme / Icons / Font

      
        113
        
        -# Values:  'on', 'off'

      
        114
        50
         gtk3="on"

      
        115
        51
         

      
        116
        
        -# IP Address

      
        117
        
        -# Values:  'url'

      
        118
        
        -public_ip_host="http://ident.me"

      
        119
        
        -

      
        120
        
        -# Public IP timeout.

      
        121
        
        -# Values:  'int'

      
        122
        
        -public_ip_timeout=2

      
        123
        
        -

      
        124
        
        -# Desktop Environment

      
        125
        
        -# Values:  'on', 'off'

      
        126
        52
         de_version="on"

      
        127
        53
         

      
        128
        
        -# Disk

      
        129
        
        -# Values:  '/', '/dev/sdXX', '/path/to/drive'.

      
        130
        
        -disk_show=('/')

      
        131
        
        -

      
        132
        
        -# Disk subtitle.

      
        133
        
        -# Values:  'mount', 'name', 'dir', 'none'

      
        134
        
        -disk_subtitle="mount"

      
        135
        
        -

      
        136
        
        -# Disk percent.

      
        137
        
        -# Values:  'on', 'off'

      
        138
        
        -disk_percent="on"

      
        139
        
        -

      
        140
        
        -# Song

      
        141
        
        -# Values:  'auto', 'player-name'

      
        142
        
        -music_player="auto"

      
        143
        
        -

      
        144
        
        -# Format to display song information.

      
        145
        
        -# Values:  '%artist%', '%album%', '%title%'

      
        146
        
        -song_format="%artist% - %album% - %title%"

      
        147
        
        -

      
        148
        
        -# Print the Artist, Album and Title on separate lines

      
        149
        
        -# Values:  'on', 'off'

      
        150
        
        -song_shorthand="off"

      
        151
        
        -

      
        152
        
        -# 'mpc' arguments (specify a host, password etc).

      
        153
        
        -mpc_args=()

      
        154
        
        -

      
        155
        
        -# Text Colors

      
        156
        
        -# Values:   'distro', 'num' 'num' 'num' 'num' 'num' 'num'

      
        157
        
        -colors=(distro)

      
        158
        
        -

      
        159
        
        -# Toggle bold text

      
        160
        
        -# Values:   'on', 'off'

      
        161
        
        -bold="on"

      
        162
        
        -

      
        163
        
        -# Enable/Disable Underline

      
        164
        
        -# Values:   'on', 'off'

      
        165
        
        -underline_enabled="on"

      
        166
        
        -

      
        167
        
        -# Underline character

      
        168
        
        -# Values:   'string'

      
        169
        
        -underline_char="-"

      
        170
        
        -

      
        171
        
        -# Info Separator

      
        172
        
        -# Replace the default separator with the specified string.

      
        173
        
        -separator=":"

      
        174
        
        -

      
        175
        
        -# Color block range

      
        176
        
        -# The range of colors to print.

      
        177
        
        -# Values:   'num'

      
        178
        54
         block_range=(0 15)

      
        179
        
        -

      
        180
        
        -# Toggle color blocks

      
        181
        
        -# Values:   'on', 'off'

      
        182
        55
         color_blocks="on"

      
        183
        
        -

      
        184
        
        -# Color block width in spaces

      
        185
        
        -# Values:   'num'

      
        186
        56
         block_width=3

      
        187
        
        -

      
        188
        
        -# Color block height in lines

      
        189
        
        -# Values:   'num'

      
        190
        57
         block_height=1

      
        191
        58
         

      
        192
        
        -# Color Alignment

      
        193
        
        -# Values: 'auto', 'num'

      
        194
        
        -col_offset="auto"

      
        195
        
        -

      
        196
        
        -# Bar characters

      
        197
        
        -# Values:   'string', 'string'

      
        198
        
        -bar_char_elapsed="-"

      
        199
        
        -bar_char_total="="

      
        200
        
        -

      
        201
        
        -# Toggle Bar border

      
        202
        
        -# Values:   'on', 'off'

      
        203
        
        -bar_border="on"

      
        204
        
        -

      
        205
        
        -# Progress bar length in spaces

      
        206
        
        -# Number of chars long to make the progress bars.

      
        207
        
        -# Values:   'num'

      
        208
        
        -bar_length=15

      
        209
        
        -

      
        210
        
        -# Progress bar colors

      
        211
        
        -# When set to distro, uses your distro's logo colors.

      
        212
        
        -# Values:   'distro', 'num'

      
        213
        
        -bar_color_elapsed="distro"

      
        214
        
        -bar_color_total="distro"

      
        215
        
        -

      
        216
        
        -# Info display

      
        217
        
        -# Display a bar with the info.

      
        218
        59
         cpu_display="off"

      
        219
        60
         memory_display="off"

      
        220
        
        -battery_display="off"

      
        221
        
        -disk_display="off"

      
        222
        61
         

      
        223
        
        -# Image backend.

      
        224
        
        -# Values:   'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',

      
        225
        
        -#           'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'

      
        226
        
        -image_backend="ascii"

      
        227
        
        -

      
        228
        
        -# Which image or ascii file to display.

      
        229
        
        -# Values:   'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'

      
        230
        
        -#           'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'

      
        231
        
        -image_source="auto"

      
        232
        
        -

      
        233
        
        -# Ascii distro

      
        234
        
        -ascii_distro="auto"

      
        235
        
        -

      
        236
        
        -# Ascii Colors

      
        237
        
        -# Values:   'distro', 'num' 'num' 'num' 'num' 'num' 'num'

      
        238
        
        -ascii_colors=(distro)

      
        239
        
        -

      
        240
        
        -# Bold ascii logo

      
        241
        
        -# Whether or not to bold the ascii logo.

      
        242
        
        -# Values:  'on', 'off'

      
        243
        
        -ascii_bold="on"

      
        244
        
        -

      
        245
        
        -# Image loop

      
        246
        
        -# Setting this to on will make neofetch redraw the image constantly until

      
        247
        
        -# Ctrl+C is pressed. This fixes display issues in some terminal emulators.

      
        248
        
        -# Values:   'on', 'off'

      
        249
        
        -image_loop="off"

      
        250
        
        -

      
        251
        
        -# Thumbnail directory

      
        252
        
        -# Values:  'dir'

      
        253
        
        -thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"

      
        254
        
        -

      
        255
        
        -# Crop mode

      
        256
        
        -# Values:   'normal', 'fit', 'fill'

      
        257
        
        -crop_mode="normal"

      
        258
        
        -

      
        259
        
        -# Crop offset

      
        260
        
        -# Values:   'northwest', 'north', 'northeast', 'west', 'center'

      
        261
        
        -#           'east', 'southwest', 'south', 'southeast'

      
        262
        
        -crop_offset="center"

      
        263
        
        -

      
        264
        
        -# Image size

      
        265
        
        -# The image is half the terminal width by default.

      
        266
        
        -# Values:  'auto', '00px', '00%', 'none'

      
        267
        62
         image_size="auto"

      
        268
        
        -

      
        269
        
        -# Gap between image and text

      
        270
        
        -# Values:  'num', '-num'

      
        271
        63
         gap=3

      
        272
        64
         

      
        273
        
        -# Image offsets

      
        274
        
        -# Only works with the w3m backend.

      
        275
        
        -# Values:  'px'

      
        276
        65
         yoffset=0

      
        277
        66
         xoffset=0

      
        278
        
        -

      
        279
        
        -# Image background color

      
        280
        
        -# Only works with the w3m backend.

      
        281
        
        -# Values:  'color', 'blue'

      
        282
        67
         background_color=

      
        283
        68
         

      
        284
        
        -# Stdout mode

      
        285
        
        -# Turn off all colors and disables image backend (ASCII/Image).

      
        286
        
        -# Useful for piping into another command.

      
        287
        
        -# Values: 'on', 'off'

      
        288
        69
         stdout="off"

      
M config/polybar/config
···
        33
        33
         font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5

      
        34
        34
         font-2 = Weather Icons:size=7;2

      
        35
        35
         

      
        36
        
        -;; Modules positii3on ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

      
        
        36
        +;; Modules position ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::;

      
        37
        37
         modules-left =  i3 sp2 weather updates-pacman

      
        38
        38
         modules-center =

      
        39
        
        -modules-right = pulseaudio microphone backlight keyboard clipmenu wlan date time sp2

      
        
        39
        +modules-right = pulseaudio microphone backlight keyboard clipmenu wifi-signal date time sp2

      
        40
        40
         tray-position = right

      
        41
        41
         tray-padding = 2

      
        42
        42
         tray-detached = false

      ···
        106
        106
         ramp-0 = 

      
        107
        107
         

      
        108
        108
         

      
        109
        
        -[module/wlan]

      
        
        109
        +[module/wifi-name]

      
        110
        110
         type = internal/network

      
        111
        111
         interface = wlp3s0

      
        112
        112
         format-connected = <ramp-signal> <label-connected>

      
        113
        113
         label-connected = %essid%

      
        114
        114
         format-disconnected =  No sing

      
        115
        115
         ramp-signal-0 = 

      
        
        116
        +interval = 3.0

      
        
        117
        +

      
        
        118
        +

      
        
        119
        +[module/wifi-signal]

      
        
        120
        +type = custom/script

      
        
        121
        +label =  %output:%%

      
        
        122
        +exec = ~/.config/polybar/scripts/wifi-signal.sh

      
        116
        123
         interval = 3.0

      
        117
        124
         

      
        118
        125
         

      ···
        225
        232
         type = custom/text

      
        226
        233
         content = ""

      
        227
        234
         click-left = "CM_LAUNCHER=rofi clipmenu"

      
        228
        
        -interval = 0
      
        
        235
        +interval = 0

      
A config/polybar/scripts/wifi-signal.sh
···
        
        1
        +#!/bin/sh

      
        
        2
        +cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'