New Look Fish Terminal

Hi Everybody, Seasons Greetings. I see we have had a new look to the Terminal for a few months now. I think it looks really good but I would like to add ‘Uptime’ to the OS Section.

kevin@kevin-ms7721
 OS Garuda Linux x86_64
├ Kernel Linux 6.12.6-1-cachyos
├󰏖 Packages 1679 (pacman)[stable]
└ Shell fish 3.7.1

Can you please advise which file for me to try and edit?

System:
Kernel: 6.12.6-1-cachyos arch: x86_64 bits: 64 compiler: clang v: 18.1.8
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-cachyos
root=UUID=7b049ab1-cf8c-4eb1-809e-b21343f9b233 rw rootflags=subvol=@
quiet loglevel=3 ibt=off
Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A info: frameworks v: 6.9.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Desktop Mobo: MSI model: A68HM-E33 V2 (MS-7721) v: 9.0
serial: <superuser required> uuid: <superuser required>
UEFI: American Megatrends v: 8.5 date: 11/01/2018
CPU:
Info: model: AMD Athlon X4 860K bits: 64 type: MCP arch: Steamroller
level: v2 built: 2014 process: GF 28nm family: 0x15 (21) model-id: 0x30 (48)
stepping: 1 microcode: 0x6003106
Topology: cpus: 1x dies: 1 clusters: 1 cores: 4 smt: <unsupported> cache:
L1: 256 KiB desc: d-4x16 KiB; i-2x96 KiB L2: 4 MiB desc: 2x2 MiB
Speed (MHz): avg: 2949 min/max: 1700/3700 boost: enabled scaling:
driver: acpi-cpufreq governor: performance cores: 1: 2949 2: 2949 3: 2949
4: 2949 bogomips: 29543
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Baffin [Radeon RX 460/560D / Pro
450/455/460/555/555X/560/560X] vendor: PC Partner / Sapphire
driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands process: GF 14nm
built: 2016-20 pcie: gen: 3 speed: 8 GT/s lanes: 8 ports:
active: DP-1,HDMI-A-1 empty: DVI-D-1 bus-ID: 01:00.0 chip-ID: 1002:67ef
class-ID: 0300 temp: 41.0 C
Device-2: Logitech BRIO Ultra HD Webcam driver: snd-usb-audio,uvcvideo
type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2:2
chip-ID: 046d:085e class-ID: 0102 serial: <filter>
Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu d-rect: 3840x1080
display-ID: 0
Monitor-1: DP-1 pos: primary,left res: 1920x1080 size: N/A modes: N/A
Monitor-2: HDMI-A-1 pos: right res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
wayland: drv: radeonsi x11: drv: radeonsi
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.3.2-arch1.1
glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 460 Graphics
(radeonsi polaris11 LLVM 18.1.8 DRM 3.59 6.12.6-1-cachyos)
device-ID: 1002:67ef memory: 1.95 GiB unified: no display-ID: :1.0
API: Vulkan v: 1.4.303 layers: 4 device: 0 type: discrete-gpu name: AMD
Radeon RX 460 Graphics (RADV POLARIS11) driver: N/A device-ID: 1002:67ef
surfaces: xcb,xlib,wayland device: 1 type: cpu name: llvmpipe (LLVM
18.1.8 256 bits) driver: N/A device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Advanced Micro Devices [AMD] FCH Azalia vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 00:14.2 chip-ID: 1022:780d
class-ID: 0403
Device-2: Advanced Micro Devices [AMD/ATI] Baffin HDMI/DP Audio [Radeon
RX 550 640SP / 560/560X] vendor: PC Partner / Sapphire
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
bus-ID: 01:00.1 chip-ID: 1002:aae0 class-ID: 0403
Device-3: Logitech BRIO Ultra HD Webcam driver: snd-usb-audio,uvcvideo
type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2:2
chip-ID: 046d:085e class-ID: 0102 serial: <filter>
API: ALSA v: k6.12.6-1-cachyos status: kernel-api tools: N/A
Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: wgpia0 state: unknown speed: N/A duplex: N/A mac: N/A
Info: services: NetworkManager,systemd-timesyncd
Drives:
Local Storage: total: 1.35 TiB used: 726.41 GiB (52.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT240M500SSD1
size: 223.57 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: MU05 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT240M500SSD1
size: 223.57 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: MU05 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital
model: WD10EALX-009BA0 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s tech: N/A serial: <filter> fw-rev: 1H15
scheme: GPT
Partition:
ID-1: / raw-size: 223.27 GiB size: 223.27 GiB (100.00%)
used: 53.58 GiB (24.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 27.4 MiB (9.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 223.27 GiB size: 223.27 GiB (100.00%)
used: 53.58 GiB (24.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-4: /var/log raw-size: 223.27 GiB size: 223.27 GiB (100.00%)
used: 53.58 GiB (24.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-5: /var/tmp raw-size: 223.27 GiB size: 223.27 GiB (100.00%)
used: 53.58 GiB (24.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 15.58 GiB used: 2.68 GiB (17.2%)
priority: 100 comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842
max-streams: 4 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 31.6 C mobo: N/A gpu: amdgpu temp: 41.0 C
Fan Speeds (rpm): N/A gpu: amdgpu fan: 1041
Info:
Memory: total: 16 GiB available: 15.58 GiB used: 4.22 GiB (27.1%)
Processes: 270 Power: uptime: 4d 17h 8m states: freeze,mem,disk
suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
reboot, suspend, test_resume image: 6.21 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 257 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1679 libs: 445 tools: octopi,pacseek,paru
Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: garuda-inxi default: Bash
v: 5.2.37 running-in: konsole inxi: 3.3.36
Garuda (2.6.26-1):
System install date:     2024-08-28
Last full system update: 2024-12-29
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Probably (Run as root to verify)
Failed units:

This Fastfetch function is called uptime.

You could add it in between the functions you want in ~/.config/fastfetch/fastfetch_config.json

        {
            "type": "uptime",
            "key": "│ ├󰧨 Up Time",
            "keyColor": "blue"
        },

Change the key and keyColor to whatever you want.

Then call fish again:

4 Likes

Thanks, made my year…

1 Like

2024 or 2025? :rofl:

2 Likes

OK, so you did make my 2024… But, and I’m really sorry, I celebrated too early, my bad.
I don’t have a ~/.config/fastfetch/fastfetch_config.json folder or file.
When I open a Terminal - Fish, this appears without any input from me

Nice colours, some information.
But from which file???
I do have fastfetch installed and the list from it when typed and invoked includes ‘uptime’ but I need some help for it to show on the first Terminal startup.
Please :grinning:

@FGD messed up twice :wink:

  1. /usr/share/fastfetch/presets/dr460nized.jsonc
        {
            "type": "uptime",
            "key": "├󰧨 Up Time",
            "keyColor": "blue"
        },
2 Likes

Yeah correct, tnx for that, I forked mine in my HOME folder and totally forgot about it.
I still suggest @Hamster1962 you fork it too, this way your changes in /usr/share won’t get overwritten the next time this file is changed in the package since it would be located in your HOME folder.

You do have to change your config.fish file to load your own preset.
At the very end you will find:

## Run fastfetch if session is interactive
if status --is-interactive && type -q fastfetch
    fastfetch --load-config PATH_TO_JSONC_CONFIG
end
4 Likes

Perfect, my first fork and I actually know why it was created.
:grinning:

3 Likes

So now your year is made? :rofl:
(tnx @nepti )

2 Likes

You are now officially a script kiddy :grin:

2 Likes

Yep, just in time for the end of it.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.