Skip to content

Commit 27afcfb

Browse files
authored
Merge pull request #71 from myuron/raffi
chenge
2 parents 209ddd9 + 051e542 commit 27afcfb

5 files changed

Lines changed: 116 additions & 62 deletions

File tree

nix/home-manager/common/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ in
7171
# ====================
7272
# go
7373
# ====================
74+
go
7475
gopls # lsp for go
7576
delve # debugger for go
7677

nix/home-manager/nixos/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
./fuzzel
77
./hyprlock
88
./waypaper
9+
./raffi
910
];
1011

1112
home = rec {
@@ -24,6 +25,7 @@
2425
swaybg
2526
pavucontrol
2627
waypaper
28+
raffi
2729
];
2830
};
2931

nix/home-manager/nixos/niri/config.kdl

Lines changed: 63 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ input {
44
layout "us"
55
}
66
}
7-
touchpad {
8-
tap
9-
natural-scroll
7+
touchpad {
8+
tap
9+
natural-scroll
1010
}
1111
}
1212

@@ -49,94 +49,95 @@ spawn-at-startup "swaybg" "-i" "/home/myuron/wallpaper/wallpaper.png"
4949

5050
binds {
5151
// launch
52-
Mod+T { spawn "wezterm"; }
53-
Mod+D { spawn "fuzzel"; }
54-
Mod+P { spawn "hyprlock"; }
52+
Alt+T { spawn "wezterm"; }
53+
Alt+D { spawn "fuzzel"; }
54+
Alt+P { spawn "hyprlock"; }
55+
Alt+B { spawn "raffi"; }
5556

5657
// focus window
57-
Mod+H { focus-column-left; }
58-
Mod+J { focus-window-down; }
59-
Mod+K { focus-window-up; }
60-
Mod+L { focus-column-right; }
58+
Alt+H { focus-column-left; }
59+
Alt+J { focus-window-down; }
60+
Alt+K { focus-window-up; }
61+
Alt+L { focus-column-right; }
6162

6263
// move window
63-
Mod+Shift+H { move-column-left; }
64-
Mod+Shift+J { move-window-down; }
65-
Mod+Shift+K { move-window-up; }
66-
Mod+Shift+L { move-column-right; }
64+
Alt+Shift+H { move-column-left; }
65+
Alt+Shift+J { move-window-down; }
66+
Alt+Shift+K { move-window-up; }
67+
Alt+Shift+L { move-column-right; }
6768

6869
// move window to workspace
69-
Mod+Ctrl+Shift+1 { move-column-to-workspace 1; }
70-
Mod+Ctrl+Shift+2 { move-column-to-workspace 2; }
71-
Mod+Ctrl+Shift+3 { move-column-to-workspace 3; }
72-
Mod+Ctrl+Shift+4 { move-column-to-workspace 4; }
73-
Mod+Ctrl+Shift+5 { move-column-to-workspace 5; }
74-
Mod+Ctrl+Shift+6 { move-column-to-workspace 6; }
75-
Mod+Ctrl+Shift+7 { move-column-to-workspace 7; }
76-
Mod+Ctrl+Shift+8 { move-column-to-workspace 8; }
77-
Mod+Ctrl+Shift+9 { move-column-to-workspace 9; }
78-
// Mod+Ctrl+Shift+K { move-column-to-workspace-up; }
79-
// Mod+Ctrl+Shift+J { move-column-to-workspace-down; }
70+
Alt+Ctrl+Shift+1 { move-column-to-workspace 1; }
71+
Alt+Ctrl+Shift+2 { move-column-to-workspace 2; }
72+
Alt+Ctrl+Shift+3 { move-column-to-workspace 3; }
73+
Alt+Ctrl+Shift+4 { move-column-to-workspace 4; }
74+
Alt+Ctrl+Shift+5 { move-column-to-workspace 5; }
75+
Alt+Ctrl+Shift+6 { move-column-to-workspace 6; }
76+
Alt+Ctrl+Shift+7 { move-column-to-workspace 7; }
77+
Alt+Ctrl+Shift+8 { move-column-to-workspace 8; }
78+
Alt+Ctrl+Shift+9 { move-column-to-workspace 9; }
79+
// Alt+Ctrl+Shift+K { move-column-to-workspace-up; }
80+
// Alt+Ctrl+Shift+J { move-column-to-workspace-down; }
8081

8182
// move window to monitor
82-
Mod+Alt+Shift+H { move-column-to-monitor-left; }
83-
Mod+Alt+Shift+J { move-column-to-monitor-down; }
84-
Mod+Alt+Shift+K { move-column-to-monitor-up; }
85-
Mod+Alt+Shift+L { move-column-to-monitor-right; }
83+
Alt+Ctrl+Shift+H { move-column-to-monitor-left; }
84+
Alt+Ctrl+Shift+J { move-column-to-monitor-down; }
85+
Alt+Ctrl+Shift+K { move-column-to-monitor-up; }
86+
Alt+Ctrl+Shift+L { move-column-to-monitor-right; }
8687

8788
// focus workspace
88-
Mod+Ctrl+1 { focus-workspace 1; }
89-
Mod+Ctrl+2 { focus-workspace 2; }
90-
Mod+Ctrl+3 { focus-workspace 3; }
91-
Mod+Ctrl+4 { focus-workspace 4; }
92-
Mod+Ctrl+5 { focus-workspace 5; }
93-
Mod+Ctrl+6 { focus-workspace 6; }
94-
Mod+Ctrl+7 { focus-workspace 7; }
95-
Mod+Ctrl+8 { focus-workspace 8; }
96-
Mod+Ctrl+9 { focus-workspace 9; }
97-
Mod+Ctrl+K { focus-workspace-up; }
98-
Mod+Ctrl+J { focus-workspace-down; }
89+
Alt+Ctrl+1 { focus-workspace 1; }
90+
Alt+Ctrl+2 { focus-workspace 2; }
91+
Alt+Ctrl+3 { focus-workspace 3; }
92+
Alt+Ctrl+4 { focus-workspace 4; }
93+
Alt+Ctrl+5 { focus-workspace 5; }
94+
Alt+Ctrl+6 { focus-workspace 6; }
95+
Alt+Ctrl+7 { focus-workspace 7; }
96+
Alt+Ctrl+8 { focus-workspace 8; }
97+
Alt+Ctrl+9 { focus-workspace 9; }
98+
// Alt+Ctrl+K { focus-workspace-up; }
99+
// Alt+Ctrl+J { focus-workspace-down; }
99100

100101
// focus monitor
101-
Mod+Alt+H { focus-monitor-left; }
102-
Mod+Alt+J { focus-monitor-down; }
103-
Mod+Alt+K { focus-monitor-up; }
104-
Mod+Alt+L { focus-monitor-right; }
102+
Alt+Ctrl+H { focus-monitor-left; }
103+
Alt+Ctrl+J { focus-monitor-down; }
104+
Alt+Ctrl+K { focus-monitor-up; }
105+
Alt+Ctrl+L { focus-monitor-right; }
105106

106107
// fullscreen
107-
Mod+Shift+F { fullscreen-window; }
108-
Mod+Shift+Space { toggle-window-floating; }
108+
Alt+Shift+F { fullscreen-window; }
109+
Alt+Shift+Space { toggle-window-floating; }
109110

110111
// Column Width Adjustment
111-
Mod+Minus { set-column-width "-10%"; }
112-
Mod+Equal { set-column-width "+10%"; }
112+
Alt+Minus { set-column-width "-10%"; }
113+
Alt+Equal { set-column-width "+10%"; }
113114

114115
// Window Height Adjustment
115-
Mod+Shift+Minus { set-window-height "-10%"; }
116-
Mod+Shift+Equal { set-window-height "+10%"; }
116+
Alt+Shift+Minus { set-window-height "-10%"; }
117+
Alt+Shift+Equal { set-window-height "+10%"; }
117118

118119
// Consume/Expel Windows (Tab columns)
119-
Mod+Comma { consume-window-into-column; }
120-
Mod+Slash { expel-window-from-column; }
120+
Alt+Comma { consume-window-into-column; }
121+
Alt+Slash { expel-window-from-column; }
121122

122123
// Column Presets
123-
Mod+R { switch-preset-column-width; }
124-
Mod+Alt+R { reset-window-height; }
125-
Mod+Ctrl+R { switch-preset-window-height; }
124+
Alt+R { switch-preset-column-width; }
125+
Alt+Shift+R { reset-window-height; }
126+
Alt+Ctrl+R { switch-preset-window-height; }
126127

127128
// Maximize Column
128-
Mod+F { maximize-column; }
129-
Mod+Ctrl+F { center-column; }
129+
Alt+F { maximize-column; }
130+
Alt+Ctrl+F { center-column; }
130131

131-
// Overview Mode
132-
Mod+Tab { toggle-overview; }
132+
// Overview Alte
133+
Alt+Tab { toggle-overview; }
133134

134-
Mod+Q { close-window; }
135+
Alt+Q { close-window; }
135136

136137
Print { screenshot show-pointer=false; }
137138
Ctrl+Print { screenshot-screen show-pointer=false; }
138139

139-
Mod+O { toggle-overview; }
140+
Alt+O { toggle-overview; }
140141

141-
Mod+Shift+E { quit; }
142+
Alt+Shift+E { quit; }
142143
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{ config, ...}:
2+
let
3+
inherit (config.lib.file) mkOutOfStoreSymlink;
4+
in
5+
{
6+
home.file.".config/raffi/raffi.yaml" = {
7+
source = mkOutOfStoreSymlink "${config.home.homeDirectory}/src/github.com/myuron/dotfiles/raffi/raffi.yaml";
8+
};
9+
}

raffi/raffi.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Twitter:
2+
binary: firefox
3+
args: ["https://x.com"]
4+
icon: twitter
5+
description: X
6+
7+
YouTube:
8+
binary: firefox
9+
args: ["https://www.youtube.com"]
10+
icon: youtube
11+
description: YouTube
12+
13+
Zenn:
14+
binary: firefox
15+
args: ["https://zenn.dev"]
16+
icon: zenn
17+
description: Zenn
18+
19+
GitHub:
20+
binary: firefox
21+
args: ["https://github.com"]
22+
icon: GitHub
23+
description: GitHub
24+
25+
nixpkgs:
26+
binary: firefox
27+
args: ["https://search.nixos.org/packages"]
28+
icon: nixpkgs
29+
description: nixpkgs
30+
31+
nix-home-manager:
32+
binary: firefox
33+
args: ["https://home-manager-options.extranix.com/"]
34+
icon: nix-home-manager
35+
description: nix-home-manager
36+
37+
hatena-bookmark:
38+
binary: firefox
39+
args: ["https://b.hatena.ne.jp/hotentry/it"]
40+
icon: hatena-bookmark
41+
description: hatena-bookmark

0 commit comments

Comments
 (0)