Move hotkeys to extra file
This commit is contained in:
parent
c77cb274de
commit
b10d89142c
2 changed files with 90 additions and 88 deletions
|
@ -1,92 +1,6 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }@args:
|
||||||
let
|
let
|
||||||
hotkeys =
|
hotkeys = import ./hotkeys.nix args;
|
||||||
let
|
|
||||||
fork = cmd: "fork ${cmd}";
|
|
||||||
in
|
|
||||||
[
|
|
||||||
{
|
|
||||||
Orga = [
|
|
||||||
{ Kassandra2 = fork "kassandra2"; }
|
|
||||||
{ Kassandra = fork "kassandra"; }
|
|
||||||
{ Kalendar = "ikhal"; }
|
|
||||||
{ Habitica = fork "firefox https://habitica.com"; }
|
|
||||||
{ Tasks = "tasksh"; }
|
|
||||||
{ Meditate = "meditate"; }
|
|
||||||
{ Pythia = "pythia"; }
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ Research = { Zotero = fork "zotero"; }; }
|
|
||||||
{
|
|
||||||
Power = {
|
|
||||||
Shutdown = "systemctl poweroff";
|
|
||||||
Suspend = "systemctl suspend";
|
|
||||||
Reboot = "systemctl reboot";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
SSH =
|
|
||||||
let
|
|
||||||
ssh = host: "ssh ${host}";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
hera = ssh "hera";
|
|
||||||
remote-builder = ssh "phoibe.cased.de";
|
|
||||||
ag = ssh "ag-forward";
|
|
||||||
gwres1 = ssh "gw";
|
|
||||||
cysec = ssh "borg.cysec.de";
|
|
||||||
shells = ssh "shells";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Sound = {
|
|
||||||
"Play/Pause" = "${pkgs.playerctl}/bin/playerctl play-pause";
|
|
||||||
MPD = "ncmpcpp";
|
|
||||||
"Lautstärke" = "ncpamixer";
|
|
||||||
Pavucontrol = fork "pavucontrol";
|
|
||||||
Headset = {
|
|
||||||
connect = "bluetoothctl connect AC:12:2F:4F:EB:FA";
|
|
||||||
disconnect = "bluetoothctl disconnect AC:12:2F:4F:EB:FA";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Web = {
|
|
||||||
Browser = fork "firefox";
|
|
||||||
"Private Browser" = fork "firefox --private-window";
|
|
||||||
Chromium = fork "chromium";
|
|
||||||
Games = {
|
|
||||||
Steam = fork "steam";
|
|
||||||
};
|
|
||||||
Deluge = fork "deluge";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{ Files = fork "nautilus"; }
|
|
||||||
{ Passmenu = "pass clip -f"; }
|
|
||||||
{ "Select Mode" = "select-mode"; }
|
|
||||||
{
|
|
||||||
Communication = [
|
|
||||||
{ Matrix = fork "element-desktop"; }
|
|
||||||
{ Mutt = "neomutt"; }
|
|
||||||
{ Mumble = fork "mumble mumble://maralorn@mumble.hax404.de"; }
|
|
||||||
{ Weechat = "weechat"; }
|
|
||||||
{ Signal = fork "signal-desktop"; }
|
|
||||||
{ Zoom = fork "zoom"; }
|
|
||||||
{ Telegram = fork "telegram-desktop"; }
|
|
||||||
{ Discord = fork "Discord"; }
|
|
||||||
{ Jabber = fork "dino"; }
|
|
||||||
{ Tmate = "tmate"; }
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ "Monitor (htop)" = "htop"; }
|
|
||||||
{
|
|
||||||
"W17" = {
|
|
||||||
Summer = "ssh door@burbon.w17.io buzzer";
|
|
||||||
Open = "ssh door@burbon.w17.io open";
|
|
||||||
Close = "ssh door@burbon.w17.io close";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
mkTuple = lib.hm.gvariant.mkTuple;
|
mkTuple = lib.hm.gvariant.mkTuple;
|
||||||
statusScript = pkgs.writeHaskellScript
|
statusScript = pkgs.writeHaskellScript
|
||||||
{
|
{
|
||||||
|
|
88
home-manager/roles/hotkeys.nix
Normal file
88
home-manager/roles/hotkeys.nix
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
fork = cmd: "fork ${cmd}";
|
||||||
|
in
|
||||||
|
[
|
||||||
|
{
|
||||||
|
Orga = [
|
||||||
|
{ Kassandra2 = fork "kassandra2"; }
|
||||||
|
{ Kassandra = fork "kassandra"; }
|
||||||
|
{ Kalendar = "ikhal"; }
|
||||||
|
{ Habitica = fork "firefox https://habitica.com"; }
|
||||||
|
{ Tasks = "tasksh"; }
|
||||||
|
{ Meditate = "meditate"; }
|
||||||
|
{ Pythia = "pythia"; }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ Research = { Zotero = fork "zotero"; }; }
|
||||||
|
{
|
||||||
|
Power = {
|
||||||
|
Shutdown = "systemctl poweroff";
|
||||||
|
Suspend = "systemctl suspend";
|
||||||
|
Reboot = "systemctl reboot";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
SSH =
|
||||||
|
let
|
||||||
|
ssh = host: "ssh ${host}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
hera = ssh "hera";
|
||||||
|
remote-builder = ssh "phoibe.cased.de";
|
||||||
|
ag = ssh "ag-forward";
|
||||||
|
gwres1 = ssh "gw";
|
||||||
|
backup-server = ssh "borg.cysec.de";
|
||||||
|
shells = ssh "shells";
|
||||||
|
"bach (ved)" = ssh "root@bach.vocalensemble-darmstadt.de";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Sound = {
|
||||||
|
"Play/Pause" = "${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
|
MPD = "ncmpcpp";
|
||||||
|
"Lautstärke" = "ncpamixer";
|
||||||
|
Pavucontrol = fork "pavucontrol";
|
||||||
|
Headset = {
|
||||||
|
connect = "bluetoothctl connect AC:12:2F:4F:EB:FA";
|
||||||
|
disconnect = "bluetoothctl disconnect AC:12:2F:4F:EB:FA";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Web = {
|
||||||
|
Browser = fork "firefox";
|
||||||
|
"Private Browser" = fork "firefox --private-window";
|
||||||
|
Chromium = fork "chromium";
|
||||||
|
Games = {
|
||||||
|
Steam = fork "steam";
|
||||||
|
};
|
||||||
|
Deluge = fork "deluge";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{ Files = fork "nautilus"; }
|
||||||
|
{ Passmenu = "pass clip -f"; }
|
||||||
|
{ "Select Mode" = "select-mode"; }
|
||||||
|
{
|
||||||
|
Communication = [
|
||||||
|
{ Matrix = fork "element-desktop"; }
|
||||||
|
{ Mutt = "neomutt"; }
|
||||||
|
{ Mumble = fork "mumble mumble://maralorn@mumble.hax404.de"; }
|
||||||
|
{ Weechat = "weechat"; }
|
||||||
|
{ Signal = fork "signal-desktop"; }
|
||||||
|
{ Zoom = fork "zoom"; }
|
||||||
|
{ Telegram = fork "telegram-desktop"; }
|
||||||
|
{ Discord = fork "Discord"; }
|
||||||
|
{ Jabber = fork "dino"; }
|
||||||
|
{ Tmate = "tmate"; }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ "Monitor (htop)" = "htop"; }
|
||||||
|
{
|
||||||
|
"W17" = {
|
||||||
|
Summer = "ssh door@burbon.w17.io buzzer";
|
||||||
|
Open = "ssh door@burbon.w17.io open";
|
||||||
|
Close = "ssh door@burbon.w17.io close";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue