Nix Fix
This commit is contained in:
parent
e776588a92
commit
01b247d7fa
4
avdd
4
avdd
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
USAGE="
|
||||
USAGE: avdd [<mod_list>='cpu mem bl vol-amixer bat dt'|-h|-[-]help]
|
||||
@ -38,7 +38,7 @@ EXAMPLES:
|
||||
|
||||
avdd 'vol-amixer dt' '[<' '<' '>' '>]' &
|
||||
"
|
||||
DEFAULT_MOD_LIST='cpu mem bl vol-amixer bat dt'
|
||||
DEFAULT_MOD_LIST='cpu mem vol-amixer bat dt'
|
||||
DEFAULT_PRE=' '
|
||||
DEFAULT_SEP_L='| '
|
||||
DEFAULT_SEP_R=' '
|
||||
|
2
avds
2
avds
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
USAGE="
|
||||
USAGE: avds <mod_list|-h|-[-]help> [<when>] [<repeat>]
|
||||
|
8
mod/bat
8
mod/bat
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mod_bat () {
|
||||
# Customizable configuration constants
|
||||
local -r DEFAULT_CNT=1
|
||||
local -r DEFAULT_PRE_PLG=' '
|
||||
local -r DEFAULT_PRE_UPLG=' '
|
||||
local -r DEFAULT_PRE_UNK=' '
|
||||
local -r DEFAULT_PRE_PLG=$'\u26A1 '
|
||||
local -r DEFAULT_PRE_UPLG=$'\u2755 '
|
||||
local -r DEFAULT_PRE_UNK='?? '
|
||||
local -r DEFAULT_SUF='%'
|
||||
|
||||
local -r cnt="${1:-${DEFAULT_CNT}}"
|
||||
|
2
mod/bl
2
mod/bl
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mod_bl () {
|
||||
# Customizable configuration constants
|
||||
|
4
mod/cpu
4
mod/cpu
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mod_cpu () {
|
||||
# Customizable configuration constants
|
||||
local -r DEFAULT_PRE=' '
|
||||
local -r DEFAULT_PRE=$'\U0001F7E9 '
|
||||
local -r DEFAULT_SUF=''
|
||||
|
||||
local -r pre="${1-${DEFAULT_PRE}}"
|
||||
|
2
mod/dt
2
mod/dt
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mod_dt () {
|
||||
# Customizable configuration constants
|
||||
|
4
mod/mem
4
mod/mem
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mod_mem () {
|
||||
# Customizable configuration constants
|
||||
local -r DEFAULT_PRE=' '
|
||||
local -r DEFAULT_PRE=$'\U0001F9E0 '
|
||||
local -r DEFAULT_SUF='%'
|
||||
|
||||
local -r pre="${1-${DEFAULT_PRE}}"
|
||||
|
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Requires amixer from the alsa-utils package
|
||||
|
||||
mod_vol_amixer () {
|
||||
# Customizable configuration constants
|
||||
local -r DEFAULT_PRE_LOW=' '
|
||||
local -r DEFAULT_PRE_HI=' '
|
||||
local -r DEFAULT_PRE_MUTE=' '
|
||||
local -r DEFAULT_PRE_LOW=$'\U0001F508 '
|
||||
local -r DEFAULT_PRE_HI=$'\U0001F50A '
|
||||
local -r DEFAULT_PRE_MUTE=$'\U0001F507 '
|
||||
local -r DEFAULT_SUF='%'
|
||||
|
||||
local -r pre_low="${1-${DEFAULT_PRE_LOW}}"
|
||||
|
2
rpid
2
rpid
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
USAGE='
|
||||
USAGE: rpid <pid|-h|-[-]help> [<root_name>=login]
|
||||
|
Loading…
Reference in New Issue
Block a user