Skip to content

Commit fd6aa21

Browse files
authored
Merge pull request #38 from shunsock/2024-11-04
2024 11 04
2 parents dd90c1f + b8707d8 commit fd6aa21

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

configs/wezterm/wezterm.lua

+42
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,48 @@ config.window_frame = {
5353
font_size = 20.0,
5454
}
5555

56+
-- Key bindings
57+
config.keys = {
58+
{
59+
key = 'f',
60+
mods = 'CTRL',
61+
action = wezterm.action.ToggleFullScreen
62+
},
63+
{
64+
key = 'y',
65+
mods = 'CTRL',
66+
action = wezterm.action.ActivateCopyMode
67+
},
68+
{
69+
key = 'i',
70+
mods = 'CTRL',
71+
action = wezterm.action.SplitPane {
72+
direction = 'Down',
73+
size = { Percent = 20 },
74+
},
75+
},
76+
{
77+
key = 'H',
78+
mods = 'CTRL',
79+
action = wezterm.action.ActivatePaneDirection 'Left',
80+
},
81+
{
82+
key = 'J',
83+
mods = 'CTRL',
84+
action = wezterm.action.ActivatePaneDirection 'Down',
85+
},
86+
{
87+
key = 'K',
88+
mods = 'CTRL',
89+
action = wezterm.action.ActivatePaneDirection 'Up',
90+
},
91+
{
92+
key = 'L',
93+
mods = 'CTRL',
94+
action = wezterm.action.ActivatePaneDirection 'Right',
95+
},
96+
}
97+
5698
-- Return the final configuration
5799
return config
58100

downloader/figlet_font_downloader.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mkdir -p ~/.local/share/fonts/figlet-fonts/
2+
git clone https://github.com/xero/figlet-fonts.git ~/.local/share/fonts/figlet-fonts/

flake/flake.nix

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
packages.aarch64-darwin = with nixpkgs.legacyPackages.aarch64-darwin; {
1010
ag = silver-searcher;
1111
fastfetch = fastfetch;
12+
figlet = figlet;
1213
go = go_1_22;
14+
htop = htop;
1315
hyperfine = hyperfine;
1416
neovim = neovim;
1517
nodejs = nodejs-18_x;

script/clock.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -eux
2+
3+
while true; do
4+
clear
5+
date +"%Y - %m - %d %H : %M : %S" | figlet -c -f ~/.local/share/fonts/figlet-fonts/rustofat.flf
6+
sleep 60
7+
done
8+

0 commit comments

Comments
 (0)