Skip to content

Commit

Permalink
fastfetch setup
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Jul 13, 2024
1 parent ef2865f commit 5ba56e6
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ alias rsmv="rs --remove-source-files"
alias jc="jira-set" # write selected story id to ~/.jira_story
alias jcr="jira-risk" # ensure the mandatory fields are set for ~/.jira_story
alias jcc="jira-clean" # delete ~/.jira_story

# quick sys overview via fastfetch
alias neosys="fastfetch -c ~/.config/fastfetch/cluxsys.jsonc"
alias neohw="fastfetch -c ~/.config/fastfetch/cluxhw.jsonc"
3 changes: 2 additions & 1 deletion .functions
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ jira-clean() {
}

# -----------------------------------------------------------------------------
# system statistics/usage (linux only)
# system statistics/usage - linux only - for my own memory
# better ways of displaying this via fastfetch configs herein

mem() {
free -t | grep Mem | awk '{ printf("%3.1f%%\n", $3*100/$2)}'
Expand Down
78 changes: 78 additions & 0 deletions config/fastfetch/cluxhw.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "small",
//"source": "arch_small",
"color": {
"1": "green",
"2": "blue"
}
},
"display": {
"separator": " ",
"size": {
"ndigits": 0
},
"percent": {
"ndigits": 0
},
"temp": {
"ndigits": 0
}
},
"modules": [
// DBG: "format": "1:{1}, 2:{2}, 3:{3}, 4:{4}, 5:{5}, 6:{6}, 7:{7}, 8:{8}, 9:{9}, 10:{10}, 11:{11}, 12:{12}, 13:{13}, 14:{14}, 15:{15}, 16:{16}",
//{
// "type": "title",
// "key": "",
// "format": "{user-name-colored}@{host-name}",
// "keyColor": "yellow"
//},
{
"type": "cpu",
"key": "󰻠",
"format": "{name} ({cores-online}) @ {freq-base} GHz ({8})",
"keyColor": "yellow",
"temp": true
},
{
"type": "gpu",
"key": "󰍛",
"format": "{name} ({temperature})",
"hideType": "integrated",
"temp": true,
"keyColor": "yellow"
},
{
"type": "display",
"key": "󰍹",
"format": "{name} {width}x{height} ({#;33}{refresh-rate}Hz{#})",
"keyColor": "yellow"
},
{
"type": "disk",
"key": "",
"format": "{size-used} / {size-total} ({size-percentage})",
"keyColor": "yellow"
},
// https://github.com/fastfetch-cli/fastfetch/blob/dev/src/modules/netio/netio.c
{
"type": "netio",
"key": "󰓡",
"format": "{tx-size}{#}⇡ / {rx-size}⇣",
"detectTotal": true,
"defaultRouteOnly": true,
"keyColor": "yellow"
},
//{
// "type": "wifi",
// "key": "W",
// "keyColor": "yellow"
//},
{
"type": "memory",
"key": "󰑭",
"keyColor": "yellow"
}
]
}
69 changes: 69 additions & 0 deletions config/fastfetch/cluxsys.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "small",
"color": {
"1": "green",
"2": "blue"
}
},
"display": {
"separator": " "
},
"modules": [
// DBG: "format": "1:{1}, 2:{2}, 3:{3}, 4:{4}, 5:{5}, 6:{6}, 7:{7}, 8:{8}, 9:{9}, 10:{10}, 11:{11}, 12:{12}, 13:{13}, 14:{14}, 15:{15}, 16:{16}",
{
"type": "title",
"key": "",
"format": "{user-name-colored}@{host-name}",
"keyColor": "blue"
},
{
"type": "os",
"key": "",
"format": "{1} {2}",
"keyColor": "blue"
},
{
"type": "kernel",
"key": "",
"format": "{sysname} {release}",
"keyColor": "blue"
},
{
"type": "shell",
"key": "",
"keyColor": "blue"
},
{
"type": "terminal",
"key": "",
"keyColor": "blue"
},
{
"type": "editor",
"key": "",
"keyColor": "blue"
},
{
"type": "terminalfont",
"key": "",
"keyColor": "blue"
},
//{
// "type": "lm",
// "key": "󰧨",
// "keyColor": "blue"
//},
//{
// "type": "de",
// "key": "",
// "keyColor": "blue"
//},
{
"type": "wm",
"key": "",
"keyColor": "blue"
},
]
}

0 comments on commit 5ba56e6

Please sign in to comment.