This commit is contained in:
Андреев Григорий 2025-04-10 10:42:17 +03:00
parent e776588a92
commit 01b247d7fa
10 changed files with 19 additions and 19 deletions

4
avdd
View File

@ -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
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
USAGE="
USAGE: avds <mod_list|-h|-[-]help> [<when>] [<repeat>]

View File

@ -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
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
mod_bl () {
# Customizable configuration constants

View File

@ -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
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
mod_dt () {
# Customizable configuration constants

View File

@ -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}}"

View File

@ -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
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
USAGE='
USAGE: rpid <pid|-h|-[-]help> [<root_name>=login]

2
util
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ -v IS_SOURCED_UTIL ]]; then return 0; fi
IS_SOURCED_UTIL=1