summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmbookm
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmbookm')
-rwxr-xr-x.local/bin/dmbookm18
1 files changed, 8 insertions, 10 deletions
diff --git a/.local/bin/dmbookm b/.local/bin/dmbookm
index 22a9e52..7578500 100755
--- a/.local/bin/dmbookm
+++ b/.local/bin/dmbookm
@@ -3,12 +3,9 @@
use strict;
use warnings;
use Sys::Hostname;
-
-# debug
-use Data::Dumper;
+use Env qw(BROWSER);
use constant {
- BROWSER => '/bin/firefox',
HOSTNAME => (split /\./, hostname())[0]
};
@@ -20,6 +17,8 @@ use constant LIST => {
chatgpt => 'https://chatgpt.com/',
discord => 'https://discord.com/',
protondb => 'https://www.protondb.com/',
+ vultr => 'https://my.vultr.com/',
+ epik => 'https://epik.com/',
nua_grafana => 'https://grafana.nuabee.fr/',
nua_gr_linux_servers => 'https://grafana.nuabee.fr/d/xfpJB9FGz/linux-servers',
nua_gr_restops => 'https://grafana.nuabee.fr/d/Mz11bd07k/vue-d-ensemble-machines-atelier',
@@ -37,6 +36,10 @@ use constant LIST => {
nua_aether => 'https://aether.int.ysosecure.com/ui',
nua_gaia => 'https://gaia.int.ysosecure.com/',
nua_certsrv => 'https://orca1.int.ysosecure.com/certsrv',
+ nua_sentry => 'https://sentry.nuabee.fr/',
+ nua_leek => 'https://leek.int.ysosecure.com/',
+ nua_otc => 'https://auth.otc.t-systems.com/',
+ nua_nm => 'https://dashboard.nm.nuabee.fr/',
};
sub main
@@ -44,7 +47,6 @@ sub main
my $choice;
my $url;
my $pid;
- my $prefix;
my $list;
my $color;
@@ -52,10 +54,6 @@ sub main
if (@ARGV == 1) {
$color = $ARGV[0];
}
- $prefix = '/usr';
- if (HOSTNAME eq "mars") {
- $prefix += '/local';
- }
for (sort keys %{LIST()}) {
$list .= $_ . "\n";
}
@@ -66,7 +64,7 @@ sub main
chomp $choice;
$pid = fork();
if (not $pid) {
- exec($prefix . BROWSER, LIST->{$choice});
+ exec($BROWSER, '--new-window', LIST->{$choice});
}
return;
}