Skip to content

Commit 87ca9d6

Browse files
committed
Update i18n
1 parent f8346e1 commit 87ca9d6

File tree

11 files changed

+232
-97
lines changed

11 files changed

+232
-97
lines changed

dots/nvim/lua/plugins/conform.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ return {
3939
just = { "just" },
4040
rust = { "rustfmt", lsp_format = "fallback" },
4141
ocaml = { "ocamlformat", lsp_format = "fallback" },
42+
html = { "prettier" },
4243
},
4344

4445
format_on_save = {

dots/nvim/lua/plugins/obsidian.lua

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
return {
22
"epwalsh/obsidian.nvim",
3-
disable = true,
43
version = "*",
5-
-- lazy = true,
6-
-- ft = "markdown",
7-
-- event = {
8-
-- "BufReadPre" .. vim.fn.expand "~" .. "/notes/*.md",
9-
-- "BufNewFile" .. vim.fn.expand "~" .. "/notes/*.md",
10-
-- },
4+
lazy = true,
5+
ft = "markdown",
6+
event = {
7+
"BufReadPre " .. vim.fn.expand "~" .. "/notes/*.md",
8+
"BufNewFile " .. vim.fn.expand "~" .. "/notes/*.md",
9+
},
1110
dependencies = {
1211
"nvim-lua/plenary.nvim",
1312
},

dots/vesktop/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"arRPC": true,
55
"splashColor": "rgb(205, 214, 244)",
66
"splashBackground": "rgb(30, 30, 46)",
7-
"hardwareAcceleration": false,
7+
"hardwareAcceleration": true,
88
"spellCheckLanguages": [
99
"en-GB",
1010
"en"

flake.lock

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@
1010
inputs.nixpkgs.follows = "nixpkgs";
1111
};
1212

13+
nur = {
14+
url = "github:nix-community/NUR";
15+
inputs.nixpkgs.follows = "nixpkgs";
16+
};
17+
1318
sops-nix.url = "github:Mic92/sops-nix";
1419

1520
nil = {
1621
url = "github:oxalica/nil";
1722
inputs.nixpkgs.follows = "nixpkgs";
1823
};
24+
1925
nix-ld = {
2026
url = "github:Mic92/nix-ld";
2127
inputs.nixpkgs.follows = "nixpkgs";
2228
};
29+
2330
nix-alien.url = "github:thiagokokada/nix-alien";
2431
nixgl.url = "github:nix-community/nixGL";
2532

home/desktop/desktop/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
pkgs.catppuccin-cursors.mochaMauve
6767

6868
# miscellaneous
69-
pkgs.xwaylandvideobridge
69+
# pkgs.xwaylandvideobridge
7070
pkgs.xdg-utils
7171

7272
pkgs.wlsunset

home/desktop/desktop/hyprland.nix

Lines changed: 75 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
let
88
mainMod = "SUPER";
9+
10+
# window bindings should be triggerable with main mod and alt respectively
11+
windowBinding = s: [
12+
"${mainMod} ${s}"
13+
"ALT ${s}"
14+
];
915
in
1016
{
1117
imports = [ inputs.hyprland.homeManagerModules.default ];
@@ -61,77 +67,74 @@ in
6167
no_hardware_cursors = true;
6268
};
6369

64-
bind = [
65-
"${mainMod}, Space, exec, rofi -show drun -show-icons"
66-
"${mainMod}, Backspace, exec, rofi -show drun -show-icons"
67-
"${mainMod}, E, exec, bemoji"
68-
"${mainMod}, C, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
69-
70-
"${mainMod}, p, exec, swaync-client -t"
71-
72-
"${mainMod}, S, exec, hyprshot -m region --clipboard-only"
73-
74-
"${mainMod}, T, exec, ghostty"
75-
76-
"${mainMod}, B, exec, brave"
77-
78-
"${mainMod}, I, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
79-
"${mainMod}, O, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
80-
81-
"${mainMod}, Q, togglespecialworkspace,"
82-
"${mainMod} SHIFT, Q, movetoworkspace, special"
83-
84-
"${mainMod}, V, togglefloating,"
85-
"${mainMod}, V, centerwindow,"
86-
87-
"${mainMod}, R, togglesplit"
88-
"${mainMod}, N, swapsplit"
89-
"${mainMod}, F, pseudo"
90-
91-
"${mainMod}, W, killactive,"
92-
93-
"${mainMod}, M, fullscreen, 1"
94-
"${mainMod} SHIFT, M, fullscreen,"
95-
96-
"${mainMod}, h, movefocus, l"
97-
"${mainMod}, l, movefocus, r"
98-
"${mainMod}, k, movefocus, u"
99-
"${mainMod}, j, movefocus, d"
100-
101-
"${mainMod}, 1, workspace, 1"
102-
"${mainMod}, 2, workspace, 2"
103-
"${mainMod}, 3, workspace, 3"
104-
"${mainMod}, 4, workspace, 4"
105-
"${mainMod}, 5, workspace, 5"
106-
"${mainMod}, 6, workspace, 6"
107-
"${mainMod}, 7, workspace, 7"
108-
"${mainMod}, 8, workspace, 8"
109-
"${mainMod}, 9, workspace, 9"
110-
"${mainMod}, 0, workspace, 10"
111-
112-
"${mainMod} SHIFT, 1, movetoworkspace, 1"
113-
"${mainMod} SHIFT, 2, movetoworkspace, 2"
114-
"${mainMod} SHIFT, 3, movetoworkspace, 3"
115-
"${mainMod} SHIFT, 4, movetoworkspace, 4"
116-
"${mainMod} SHIFT, 5, movetoworkspace, 5"
117-
"${mainMod} SHIFT, 6, movetoworkspace, 6"
118-
"${mainMod} SHIFT, 7, movetoworkspace, 7"
119-
"${mainMod} SHIFT, 8, movetoworkspace, 8"
120-
"${mainMod} SHIFT, 9, movetoworkspace, 9"
121-
"${mainMod} SHIFT, 0, movetoworkspace, 10"
122-
123-
"${mainMod}, mouse_down, workspace, e+1"
124-
"${mainMod}, mouse_up, workspace, e-1"
70+
bind = builtins.concatLists [
71+
[
72+
"${mainMod}, Space, exec, rofi -show drun -show-icons"
73+
"${mainMod}, Backspace, exec, rofi -show drun -show-icons"
74+
"${mainMod}, E, exec, bemoji"
75+
"${mainMod}, C, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
76+
77+
"${mainMod}, p, exec, swaync-client -t"
78+
79+
"${mainMod}, S, exec, hyprshot -m region --clipboard-only"
80+
81+
"${mainMod}, T, exec, ghostty"
82+
83+
"${mainMod}, B, exec, brave"
84+
85+
"${mainMod}, I, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
86+
"${mainMod}, O, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
87+
88+
"${mainMod}, Q, togglespecialworkspace,"
89+
"${mainMod} SHIFT, Q, movetoworkspace, special"
90+
91+
"${mainMod}, V, togglefloating,"
92+
"${mainMod}, V, centerwindow,"
93+
94+
"${mainMod}, R, togglesplit"
95+
"${mainMod}, N, swapsplit"
96+
"${mainMod}, F, pseudo"
97+
98+
"${mainMod}, W, killactive,"
99+
100+
"${mainMod}, M, fullscreen, 1"
101+
"${mainMod} SHIFT, M, fullscreen,"
102+
]
103+
104+
(windowBinding ", h, movefocus, l")
105+
(windowBinding ", l, movefocus, r")
106+
(windowBinding ", k, movefocus, u")
107+
(windowBinding ", j, movefocus, d")
108+
109+
(windowBinding ", 1, workspace, 1")
110+
(windowBinding ", 2, workspace, 2")
111+
(windowBinding ", 3, workspace, 3")
112+
(windowBinding ", 4, workspace, 4")
113+
(windowBinding ", 5, workspace, 5")
114+
(windowBinding ", 6, workspace, 6")
115+
(windowBinding ", 7, workspace, 7")
116+
(windowBinding ", 8, workspace, 8")
117+
(windowBinding ", 9, workspace, 9")
118+
(windowBinding ", 0, workspace, 10")
119+
120+
(windowBinding "SHIFT, 1, movetoworkspace, 1")
121+
(windowBinding "SHIFT, 2, movetoworkspace, 2")
122+
(windowBinding "SHIFT, 3, movetoworkspace, 3")
123+
(windowBinding "SHIFT, 4, movetoworkspace, 4")
124+
(windowBinding "SHIFT, 5, movetoworkspace, 5")
125+
(windowBinding "SHIFT, 6, movetoworkspace, 6")
126+
(windowBinding "SHIFT, 7, movetoworkspace, 7")
127+
(windowBinding "SHIFT, 8, movetoworkspace, 8")
128+
(windowBinding "SHIFT, 9, movetoworkspace, 9")
129+
(windowBinding "SHIFT, 0, movetoworkspace, 10")
130+
131+
(windowBinding ", mouse_down, workspace, e+1")
132+
(windowBinding ", mouse_up, workspace, e-1")
125133
];
126134

127-
bindm = [
128-
# for right-hand usage
129-
"${mainMod}, mouse:272, movewindow"
130-
"${mainMod}, mouse:273, resizewindow"
131-
132-
# for left-hand usage
133-
"ALT, mouse:272, movewindow"
134-
"ALT, mouse:273, resizewindow"
135+
bindm = builtins.concatLists [
136+
(windowBinding ", mouse:272, movewindow")
137+
(windowBinding ", mouse:273, resizewindow")
135138
];
136139

137140
windowrule = [ ];
@@ -236,6 +239,9 @@ in
236239
natural_scroll = "yes";
237240
};
238241
sensitivity = 0;
242+
243+
repeat_rate = 25;
244+
repeat_delay = 500;
239245
};
240246

241247
general = {

hosts/desktops/vega/default.nix

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{ pkgs, ... }:
2+
13
{
24
imports = [
35
../default.nix
@@ -50,4 +52,56 @@
5052
enable = true;
5153
nvidiaSupport = true;
5254
};
55+
56+
environment.systemPackages = [
57+
pkgs.ffmpeg
58+
];
59+
60+
systemd =
61+
let
62+
script = channel: duration: ''
63+
dir="/home/lukas/tutils/recordings/$(date +'%Y/%m/%d')/${channel}"
64+
mkdir -p "$dir"
65+
66+
out_file="$dir/$(date +'%H-%M').ts"
67+
68+
printf "Recording ${duration} to %s\n" "$out_file"
69+
printf "Started at %s\n" "$(date)"
70+
71+
${pkgs.ffmpeg}/bin/ffmpeg -headers "Referer: https://tuwel.tuwien.ac.at\r\n" \
72+
-t "${duration}" \
73+
-i "https://live-cdn-2.video.tuwien.ac.at/lecturetube-live/${channel}/playlist.m3u8" \
74+
-c copy "$out_file"
75+
76+
printf "Finished at %s\n" "$(date)"
77+
'';
78+
79+
service = channel: duration: {
80+
description = "lecture-${channel}-${duration}";
81+
script = script channel duration;
82+
serviceConfig = {
83+
Type = "oneshot";
84+
User = "lukas";
85+
};
86+
};
87+
88+
timer = unit: calendar: {
89+
wantedBy = [ "timers.target" ];
90+
timerConfig = {
91+
OnCalendar = calendar;
92+
Unit = unit;
93+
};
94+
};
95+
in
96+
{
97+
services = {
98+
"audimax-7200" = service "bau178a-gm-1-audi-max" "7200";
99+
};
100+
101+
timers = {
102+
"monday-08am" = timer "audimax-7200.service" "Mon 08:00";
103+
"monday-12am" = timer "audimax-7200.service" "Mon 12:00";
104+
"monday-14am" = timer "audimax-7200.service" "Mon 14:00";
105+
};
106+
};
53107
}

0 commit comments

Comments
 (0)