1
1
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
f7f4f7c6d8
netbox: modify dashboard
Signed-off-by: Myned <dev@bjork.tech>
2025-01-17 18:51:15 -06:00
1d3700e58e
fish: add sudo to system abbreviations
Signed-off-by: Myned <dev@bjork.tech>
2025-01-17 18:49:24 -06:00
2 changed files with 28 additions and 28 deletions

View file

@ -39,7 +39,7 @@ PLUGINS_CONFIG = {
"netbox_topology_views": {"allow_coordinates_saving": True}, "netbox_topology_views": {"allow_coordinates_saving": True},
} }
shortcuts = """ shortcuts = """\
| | | | | |
|:---|---:| |:---|---:|
| [Topology](/plugins/netbox_topology_views/topology/?filter_id=9) | [Racks](/dcim/rack-elevations/) | | [Topology](/plugins/netbox_topology_views/topology/?filter_id=9) | [Racks](/dcim/rack-elevations/) |
@ -53,26 +53,26 @@ shortcuts = """
DEFAULT_DASHBOARD = [ DEFAULT_DASHBOARD = [
{ {
"widget": "extras.NoteWidget", "widget": "extras.NoteWidget",
"width": 3, "width": 4,
"height": 3, "height": 3,
"title": "Shortcuts", "title": "Shortcuts",
"color": "white", "color": "black",
"config": {"content": shortcuts}, "config": {"content": shortcuts},
}, },
{ {
"widget": "extras.NoteWidget", "widget": "extras.BookmarksWidget",
"width": 9, "width": 8,
"height": 3, "height": 3,
"title": "TODO", "title": "Bookmarks",
"color": "red", "color": "black",
"config": {"content": "Nothing to do (yet)."}, "config": {"order_by": "name"},
}, },
{ {
"widget": "extras.ObjectListWidget", "widget": "extras.ObjectListWidget",
"width": 12, "width": 12,
"height": 5, "height": 5,
"title": "Journal", "title": "Journal",
"color": "orange", "color": "black",
"config": { "config": {
"model": "extras.journalentry", "model": "extras.journalentry",
"page_size": 5, "page_size": 5,

View file

@ -42,10 +42,10 @@ in {
"/r" = any "/run"; "/r" = any "/run";
"/rc" = any "/run/current-system"; "/rc" = any "/run/current-system";
reboot = "systemctl reboot"; reboot = "sudo systemctl reboot";
restart = "systemctl reboot"; restart = "sudo systemctl reboot";
poweroff = "systemctl poweroff"; poweroff = "sudo systemctl poweroff";
shutdown = "systemctl poweroff"; shutdown = "sudo systemctl poweroff";
rsync = "rsync --info progress2"; rsync = "rsync --info progress2";
@ -160,21 +160,21 @@ in {
nr = "nixos repl"; nr = "nixos repl";
sc = "systemctl"; sc = "systemctl";
scp = "systemctl poweroff"; scp = "sudo systemctl poweroff";
scr = "systemctl reboot"; scr = "sudo systemctl reboot";
scs = "systemctl --system"; scs = "sudo systemctl --system";
scsd = "systemctl --system disable"; scsd = "sudo systemctl --system disable";
scsdn = "systemctl --system disable --now"; scsdn = "sudo systemctl --system disable --now";
scse = "systemctl --system reenable"; scse = "sudo systemctl --system reenable";
scsen = "systemctl --system reenable --now"; scsen = "sudo systemctl --system reenable --now";
scsh = "systemctl --system show"; scsh = "sudo systemctl --system show";
scsl = "systemctl --system list-unit-files"; scsl = "sudo systemctl --system list-unit-files";
scsm = "systemctl --system mask"; scsm = "sudo systemctl --system mask";
scsr = "systemctl --system restart"; scsr = "sudo systemctl --system restart";
scsrr = "systemctl --system reload-or-restart"; scsrr = "sudo systemctl --system reload-or-restart";
scss = "systemctl --system status"; scss = "sudo systemctl --system status";
scst = "systemctl --system stop"; scst = "sudo systemctl --system stop";
scsu = "systemctl --system unmask"; scsu = "sudo systemctl --system unmask";
scu = "systemctl --user"; scu = "systemctl --user";
scud = "systemctl --user disable"; scud = "systemctl --user disable";
scudn = "systemctl --user disable --now"; scudn = "systemctl --user disable --now";