alternatives.set
Set an alternative
Arguments:
- Name of the alternative
- Value to set (file path)
No output
Example:
Use Vim
alternatives.set vi /usr/bin/vim.basic
The following commands are available in the latest version of Quickonf. Use the field below to filter them.
Set an alternative
Arguments:
No output
Example:
Use Vim
alternatives.set vi /usr/bin/vim.basic
Install a package using apt
Arguments:
No output
Example:
Install the "ipcalc" tool
apt.install ipcalc
Add apt key
Arguments:
No output
Example:
NextDNS
key = http.get.var https://repo.nextdns.io/nextdns.gpg
apt.key nextdns <key>
Remove a package using apt
Arguments:
No output
Example:
Remove the "ipcalc" tool
apt.remove ipcalc
Search for a package according to a regexp
Arguments:
Outputs:
Example:
Install the latest NVidia driver
pkg = apt.search ^nvidia-driver-.*-open$
apt.install <pkg>
Add apt source repository(ies), and update the available packages list if needed
Arguments:
No output
Example:
NextDNS
apt.source nextdns "deb https://repo.nextdns.io/deb stable main"
Upgrade packages from apt repositories
No arguments
No output
Example:
Upgrade packages
apt.upgrade
Set a debconf parameter
Arguments:
No output
Example:
Install MS fonts
debconf.set ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula true
apt.install ttf-mscorefonts-installer
Install a package using dpkg (does not check the file exists first)
Arguments:
No output
Example:
Install that awesome package
dpkg.install <confdir>/my-awesome-stuff.deb
Reconfigure an installed dpkg package
Arguments:
No output
Example:
libdvd-pkg
debconf.set libdvd-pkg libdvd-pkg/first-install .
debconf.set libdvd-pkg libdvd-pkg/post-invoke_hook-install true
apt.install libdvd-pkg
dpkg.reconfigure libdvd-pkg
Get the version of an installed dpkg package
Arguments:
Outputs:
Example:
Example package version
version = dpkg.version gnome-shell
Make sure a file is absent
Arguments:
No output
Example:
Make sure there is no "Photos" directory for jack
file.absent /home/jack/Photos
Create a file owned by root
Arguments:
No output
Example:
Say hello
file.content /home/hello.txt "Hello World!"
Create a directory (path must be absolute)
Arguments:
No output
Example:
Create web root
file.directory /srv/web
Extract a (compressed) archive
Arguments:
No output
Example:
Extract something
file.extract zip /foo/bar.zip /bar
Move a file or directory to another place (does not fail if the source does not exist)
Arguments:
No output
Example:
Move previous documents directory for jane
file.move /home/jane.old/Documents /home/jane/Documents
Move a file or directory to another place (with no check). Necessary if the file does not exist in the check phase (for instance if it is downloaded when applying).
Arguments:
No output
Example:
Move previous documents directory for jane
file.move.nocheck /home/jane.old/Documents /home/jane/Documents
Change a file permissions
Arguments:
No output
Example:
Restrict private key
file.chown /home/alice/.ssh/id_rsa 600
Read the content of a file
Arguments:
Outputs:
Example:
APT sources
aptsrc = file.read <confdir>/sources.list
file.content /etc/apt/sources.list <aptsrc>
Create a symlink
Arguments:
No output
Example:
Very dumb symlink
file.symlink /home/alice/temp /tmp
Install a package using flatpak
Arguments:
No output
Example:
Install "anydesk"
flatpak.install com.anydesk.Anydesk
Clone a git repository (if the repository already exists locally, pull the last commit) and switch to the requested reference (branch, tag...)
Arguments:
No output
Example:
Temporarily clone git repository
tmp = temppath
git.clone https://www.example.com/foobar.git <tmp> main
Set a git configuration parameter in the system
Arguments:
No output
Example:
Git parameter
git.config branch.autosetuprebase always
Get the latest hash for a reference (generally branch or tag) in a git repository
Arguments:
Outputs:
Example:
Pop Shell
pophash = git.hash https://github.com/pop-os/shell.git master
Check the latest release from a GitHub repository
Arguments:
Outputs:
Example:
Kmonad
release url = github.latest kmonad/kmonad kmonad-*-linux
Check the latest stable release from a GitHub repository
Arguments:
Outputs:
Example:
Kmonad
release url = github.latest.stable kmonad/kmonad kmonad-*-linux
Install a GNOME Shell extension from extensions.gnome.org
Arguments:
No output
Example:
Dash to dock
gnome.extension.install dash-to-dock@micxgx.gmail.com
gnome.extension.enable dash-to-dock@micxgx.gmail.com
Download a file with a HTTP GET request (URI is downloaded when applying)
Arguments:
No output
Example:
Download example
http.get.file http://www.example.com /opt/example
Download content with a HTTP GET request (URI is downloaded when checking)
Arguments:
Outputs:
Example:
Download example
foobar = http.get.var http://www.example.com
Send content with a HTTP POST request (data is sent when checking)
Arguments:
Outputs:
Example:
Download example
foobar = http.post.var http://www.example.com "example data" "application/octet-stream"
Get a JSON value from a variable
Arguments:
Outputs:
Example:
Get a value
val = json.get "{\"download\":{\"url\":\"http://www.example.com/\"}}" download.url
Execute the make command
Arguments:
No output
Example:
Compile foobar
make /tmp/foobar compile
Setup a wifi access point (hotspot) - only one can be configured
Arguments:
No output
Example:
Share connection
nm.hotspot wlp4s0 mynetwork n0tSecureP4ssw0rd true
Import a VPN configuration in NetworkManager
Arguments:
No output
Example:
Import my VPN configuration
nm.import openvpn /opt/openvpn.conf
Have knowledge of a wifi network
Arguments:
No output
Example:
My own wifi network
nm.wifi mynetwork n0tSecureP4ssw0rd
Install a Python package using pip3
Arguments:
No output
Example:
Pip Passlib
pip.install passlib
Find submatches using a regexp
Arguments:
Outputs:
Example:
Find src
webpage = http.get.var http://www.example.com
src = regexp.submatch "<script .*src=(.*)>" <webpage>
...
Install a package using snap
Arguments:
No output
Example:
Install node
snap.install node stable
Get the version of an installed snap package
Arguments:
Outputs:
Example:
Example package version
version = snap.version obsidian
Execute the stack command (from Haskell)
Arguments:
No output
Example:
Install foobar
stack.install /tmp/foobar
Enable and start a systemd service
Arguments:
No output
Example:
Enable nextdns
systemd.enable nextdns
Create a temporary directory (directory is automatically deleted when closing the application)
No arguments
Outputs:
Example:
Temporarily clone git repository
tmp = tempdir
git.clone https://www.example.com/foobar.git <tmp>
Set a dconf parameter
Arguments:
No output
Example:
Show date in GNOME
user.dconf.set /org/gnome/desktop/interface/clock-show-date true
Create a file owned by a user (if path is relative, it is relative to the user's home directory)
Arguments:
No output
Example:
Say hello in /home/alice/hello.txt
user.file.content alice hello.txt "Hello World!"
Create a directory belonging to the given user (if path is relative, it is relative to the user's home directory
Arguments:
No output
Example:
Create Picz photos for alice
user.file.directory alice Picz
Clone a git repository as provided user (if the repository already exists locally, pull the last commit) and switch to the requested reference (branch, tag...)
Arguments:
No output
Example:
Oh My Bash
user.git.clone alice https://github.com/ohmybash/oh-my-bash.git .oh-my-bash master
Set a git configuration parameter for a user
Arguments:
No output
Example:
Git parameter
user.git.config alice branch.autosetuprebase always
Enable a GNOME Shell extension
Arguments:
No output
Example:
Dash to dock
gnome.extension.install dash-to-dock@micxgx.gmail.com
user.gnome.extension.enable alice dash-to-dock@micxgx.gmail.com
Set a Go environment variable
Arguments:
No output
Example:
Go path
user.go.env alice gopath /home/alice/GO
Add the user to the group (if the group does not exist, it is created)
Arguments:
No output
Example:
Allow alice to dial with a modem
user.group alice dialout
Enable and start a systemd user service
Arguments:
No output
Example:
Enable syncthing
systemd.enable alice syncthing
Install a VSCode extension
Arguments:
No output
Example:
VSCode with go
snap.install code classic
user.vscode.extension.install alice golang.go
Set a XDG user dir
Arguments:
No output
Example:
Change downloads directory for john
user.file.directory john Downs
user.xdg.userdir john DOWNLOAD Downs
Set the default application for a mimetype
Arguments:
No output
Example:
Use Chromium
xdg.mimedefault text/html chromium_chromium