Welcome app, thank you

Just added my personalized commands to the Welcome app =)

image

:enos:

5 Likes

Did you simply write the commands into the welcome config file?

Followed the instructions here:
/etc/eos-apps-info/pageinfo/welcome/welcome.html

Basically, I just created a file: $HOME/.config/welcome-own-cmds.conf with the following contents:

#!/bin/bash

# Contents of file $HOME/.config/welcome-own-cmds.conf.

# Own commands:
# - Create a local array variable 'welcome_own_commands'.
# - Add yad form fields as in the example below.
# - To have own commands activated initially, set local variable 'activate_own_commands_tab' to "yes";
#   otherwise the default tab is initially active.
# - Layout: specify the number of columns for the buttons on the Personal Commands tab.

local welcome_own_commands=(
    # Legend: --field=" name!icon!description":fbtn "command"

    --field=" TRIM check schedule!":fbtn \
            "RunInTerminal 'sudo systemctl status fstrim.timer'"
    --field=" TRIM run now!":fbtn \
            "RunInTerminal 'sudo systemctl start fstrim.timer'"
    --field=" Check disk space!":fbtn \
            "RunInTerminal 'sudo btrfs filesystem usage /'"
    --field=" SCRUB status!":fbtn \
            "RunInTerminal 'sudo btrfs scrub status /'"
    --field=" SCRUB run now!":fbtn \
            "RunInTerminal 'sudo btrfs scrub start /'"
    --field=" Count snapshots!":fbtn \
            "RunInTerminal 'sudo btrfs subvolume list -ts / | wc -l'"
)

local activate_own_commands_tab=yes
local columns_for_own_commands=2
local show_predefined_buttons_at_own_commands=no
3 Likes

Thanks! :+1:
Great to see this Welcome feature being used! :sweat_smile:

3 Likes

Unless you haven’t noticed, there are more documentation here:

3 Likes

Very minor thing, but you don’t need sudo for these.

4 Likes

Just noticed the new api at the bottom, easier and cleaner to configure, thanks manuel

1 Like

I’ll fix it, it’s bothering me to have to use my password every time ehhe

1 Like

The new api should be better to use and less error prone too.

2 Likes