Skip to content

Commit c81722b

Browse files
committed
niri experimental
1 parent b97a40a commit c81722b

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

flake.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
url = "github:ryantm/agenix";
1717
inputs.nixpkgs.follows = "nixpkgs";
1818
};
19+
niri-unstable = {
20+
url = "github:YaLTeR/niri/2761922210a6c92dc22bbc5c8dce8c3771b02a54";
21+
flake = false;
22+
};
23+
niri = {
24+
url = "github:sodiboo/niri-flake";
25+
inputs.niri-unstable.follows = "niri-unstable";
26+
};
1927
# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
2028
gridx = {
2129
url = "git+ssh://[email protected]/debugloop/gridx";
@@ -25,9 +33,6 @@
2533
nvim-blink-cmp = {
2634
url = "github:Saghen/blink.cmp";
2735
};
28-
niri = {
29-
url = "github:sodiboo/niri-flake";
30-
};
3136
wunschkonzert-install = {
3237
url = "git+ssh://[email protected]/debugloop/wunschkonzert-install";
3338
};

home/wayland/niri.nix

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
workspace-auto-back-and-forth = true;
2020
focus-follows-mouse = {
2121
enable = true;
22-
max-scroll-amount = "100%";
22+
max-scroll-amount = "0%";
2323
};
2424
keyboard = {
2525
xkb = {
@@ -71,7 +71,7 @@
7171
};
7272
border = {
7373
enable = true;
74-
width = 1;
74+
width = 2;
7575
active.color = "#${config.colors.blue}";
7676
inactive.color = "#${config.colors.light_bg}";
7777
};
@@ -177,18 +177,19 @@
177177
"Mod+W".action = toggle-column-tabbed-display;
178178
"Mod+Ctrl+V".action = toggle-window-floating;
179179
"Mod+V".action = switch-focus-between-floating-and-tiling;
180-
"Mod+Space".action = spawn "${pkgs.writeScript "consume_next.py" ''
181-
#!/usr/bin/env python
182-
import subprocess
183-
184-
p = subprocess.Popen(['niri', 'msg', '-j', 'event-stream'], stdout=subprocess.PIPE)
185-
186-
for line in p.stdout:
187-
line = line.decode('utf-8')
188-
if 'WindowOpenedOrChanged' in line:
189-
subprocess.call(['niri', 'msg', 'action', 'consume-or-expel-window-left'])
190-
break
191-
''}";
180+
# "Mod+Space".action = spawn "${pkgs.writeScript "consume_next.py" ''
181+
# #!/usr/bin/env python
182+
# import subprocess
183+
#
184+
# p = subprocess.Popen(['niri', 'msg', '-j', 'event-stream'], stdout=subprocess.PIPE)
185+
#
186+
# for line in p.stdout:
187+
# line = line.decode('utf-8')
188+
# if 'WindowOpenedOrChanged' in line:
189+
# subprocess.call(['niri', 'msg', 'action', 'consume-or-expel-window-left'])
190+
# break
191+
# ''}";
192+
"Mod+Space".action = spawn "fish" "-c" "niri msg action toggle-overview";
192193

193194
# window width
194195
"Mod+R".action = switch-preset-column-width;

0 commit comments

Comments
 (0)