-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquteprofiles
More file actions
executable file
·43 lines (38 loc) · 1.75 KB
/
quteprofiles
File metadata and controls
executable file
·43 lines (38 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
#
# ############################################################################
# Project: scripts (none)
# File...: quteprofiles
# Created: Saturday, 2023/04/22 - 21:31:31
# Author.: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Monday, 2024/12/09 - 17:39:02
# Modified By..: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.0.3.57
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
# ############################################################################
# HISTORY:
#
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~
# shellcheck disable=SC1090,SC2154
source "$xSHELL_INIT"
use args qute.lib
xrequirements qutebrowser dmenu
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~
xarg --id -c,--choose --var run:choose --desc "choose and open a profile"
xarg --id -l,--list --var run:list --desc "list profiles"
xarg --id -n,--new --var run:new,name+r --desc "create a profile"
xarg --id -o,--open --var run:open,name+r --desc "open a given profile"
xarg --id -q,--quit --var run:quit --desc "quit qutebrowser"
xrun --xreject-unknow --xrequire-one --xcolors "$@"
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~
case "$run" in
choose) qChoose ;;
list ) qList ;;
new ) qNew "$name" ;;
open ) qOpen "$name";;
quit ) qQuit ;;
esac