Skip to content

Commit d55efb1

Browse files
committed
weekend updates
1 parent db9e2ac commit d55efb1

File tree

6 files changed

+46
-39
lines changed

6 files changed

+46
-39
lines changed

flake.lock

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

flake.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
impermanence.url = "github:nix-community/impermanence";
2020
# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
2121

22-
niri-unstable = {
23-
url = "github:YaLTeR/niri/a11fe23cbf6ba01ae4c23679aa2f7d7d8b44baf4";
24-
flake = false;
25-
};
22+
# niri-unstable = {
23+
# url = "github:YaLTeR/niri/a11fe23cbf6ba01ae4c23679aa2f7d7d8b44baf4";
24+
# flake = false;
25+
# };
2626
niri = {
2727
url = "github:sodiboo/niri-flake";
28-
inputs.niri-unstable.follows = "niri-unstable";
28+
# inputs.niri-unstable.follows = "niri-unstable";
2929
};
3030

3131
# private flakes

home/starship.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
format = "[$symbol](green)";
105105
repeat = true;
106106
symbol = "❯";
107-
repeat_offset = 2;
108-
threshold = 3;
107+
repeat_offset = 3;
108+
threshold = 4;
109109
};
110110
};
111111
};

home/wayland/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
pavucontrol
6060
spotify
6161
teamspeak_client
62+
transmission_4-gtk
63+
audacity
6264
# vlc
6365
wdisplays
6466
wev

home/wayland/niri.nix

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
programs.niri = {
77
package = pkgs.niri-unstable;
88
config = ''
9-
overview {
10-
zoom 0.5
11-
}
129
gestures {
1310
hot-corners {
1411
off
@@ -30,8 +27,8 @@
3027
touchpad {
3128
tap
3229
dwt
33-
middle-emulation
3430
natural-scroll
31+
middle-emulation
3532
accel-speed 0.400000
3633
accel-profile "adaptive"
3734
}
@@ -47,6 +44,10 @@
4744
background-color "#16161d"
4845
transform "normal"
4946
}
47+
output "DP-2" {
48+
background-color "#16161d"
49+
transform "normal"
50+
}
5051
output "eDP-1" {
5152
background-color "#16161d"
5253
scale 1.000000
@@ -68,7 +69,7 @@
6869
inactive-color "#6a9589"
6970
}
7071
border {
71-
width 1
72+
width 2
7273
active-color "#7e9cd8"
7374
inactive-color "#363646"
7475
}
@@ -83,17 +84,16 @@
8384
inactive-color "#36364688"
8485
}
8586
insert-hint { color "#76946a88"; }
86-
default-column-width { proportion 0.333300; }
87+
default-column-width { proportion 0.333000; }
8788
preset-column-widths {
88-
proportion 0.333300
89+
proportion 0.333000
8990
proportion 0.500000
90-
proportion 0.666700
91+
proportion 0.667000
9192
}
9293
preset-window-heights {
93-
proportion 0.200000
94-
proportion 0.400000
95-
proportion 0.600000
96-
proportion 0.800000
94+
proportion 0.333000
95+
proportion 0.500000
96+
proportion 0.667000
9797
}
9898
center-focused-column "never"
9999
}
@@ -119,7 +119,7 @@
119119
Mod+BracketLeft { focus-column-first; }
120120
Mod+BracketRight { focus-column-last; }
121121
Mod+C { center-column; }
122-
Mod+Comma { set-column-width "33.33%"; }
122+
Mod+Comma { set-column-width "33.3%"; }
123123
Mod+Ctrl+0 { set-workspace-name "yellow"; }
124124
Mod+Ctrl+1 { set-workspace-name "red"; }
125125
Mod+Ctrl+2 { set-workspace-name "green"; }
@@ -129,10 +129,10 @@
129129
Mod+Ctrl+8 { set-workspace-name "cyan"; }
130130
Mod+Ctrl+9 { set-workspace-name "purple"; }
131131
Mod+Ctrl+F { toggle-windowed-fullscreen; }
132-
Mod+Ctrl+H { move-column-left; }
132+
Mod+Ctrl+H { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-monitor-left || niri msg action move-column-left-or-to-monitor-left"; }
133133
Mod+Ctrl+J { move-workspace-down; }
134134
Mod+Ctrl+K { move-workspace-up; }
135-
Mod+Ctrl+L { move-column-right; }
135+
Mod+Ctrl+L { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-monitor-right || niri msg action move-column-right-or-to-monitor-right"; }
136136
Mod+Ctrl+M { expand-column-to-available-width; }
137137
Mod+Ctrl+Minus { unset-workspace-name; }
138138
Mod+Ctrl+S { set-dynamic-cast-monitor; }
@@ -143,17 +143,17 @@
143143
Mod+Equal { spawn "niri" "msg" "output" "eDP-1" "on"; }
144144
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
145145
Mod+F { fullscreen-window; }
146-
Mod+H { focus-column-left-or-last; }
146+
Mod+H { focus-column-or-monitor-left; }
147147
Mod+J { focus-window-or-workspace-down; }
148148
Mod+K { focus-window-or-workspace-up; }
149-
Mod+L { focus-column-right-or-first; }
149+
Mod+L { focus-column-or-monitor-right; }
150150
Mod+M { maximize-column; }
151151
Mod+Minus { focus-workspace 42; }
152152
Mod+N { spawn "/nix/store/dhflc7gyj5kxn14q8jc74nbgdag7n30m-mako-1.10.0/bin/makoctl" "dismiss" "-a"; }
153-
Mod+Period { set-column-width "66.67%"; }
153+
Mod+Period { set-column-width "66.7%"; }
154154
Mod+Q { close-window; }
155155
Mod+R { switch-preset-column-width; }
156-
Mod+Return { spawn "/nix/store/jkya41rx8azpjcxi72z4rnm180pihkhl-kitty-0.41.1/bin/kitty"; }
156+
Mod+Return { spawn "/nix/store/r8xiqydgjbxixvqa092ag18zmnvlnbyc-kitty-0.41.1/bin/kitty"; }
157157
Mod+S { set-dynamic-cast-window; }
158158
Mod+Semicolon { spawn "fish" "-c" "niri msg action focus-window --id (niri msg -j windows | jq -r '.[] | (.id|tostring) + \" \" + .app_id + \": \" + .title' | /nix/store/w1sm854ilhiw793nq64bgp6s0p416a6a-wofi-1.4.1/bin/wofi -di | cut -d' ' -f1)"; }
159159
Mod+Shift+0 { spawn "fish" "-c" "niri msg action move-window-to-workspace yellow"; }
@@ -169,8 +169,8 @@
169169
Mod+Shift+Equal { spawn "niri" "msg" "output" "eDP-1" "off"; }
170170
Mod+Shift+F { toggle-windowed-fullscreen; }
171171
Mod+Shift+H { consume-or-expel-window-left; }
172-
Mod+Shift+J { move-window-down-or-to-workspace-down; }
173-
Mod+Shift+K { move-window-up-or-to-workspace-up; }
172+
Mod+Shift+J { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-workspace-down || niri msg action move-window-down-or-to-workspace-down"; }
173+
Mod+Shift+K { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-workspace-up || niri msg action move-window-up-or-to-workspace-up"; }
174174
Mod+Shift+L { consume-or-expel-window-right; }
175175
Mod+Shift+M { reset-window-height; }
176176
Mod+Shift+Minus { spawn "fish" "-c" "niri msg action move-window-to-workspace 42"; }
@@ -182,7 +182,7 @@
182182
Mod+Shift+XF86AudioLowerVolume { set-window-height "-1%"; }
183183
Mod+Shift+XF86AudioRaiseVolume { set-window-height "+1%"; }
184184
Mod+Slash { set-column-width "50%"; }
185-
Mod+Space { spawn "fish" "-c" "niri msg action toggle-overview"; }
185+
Mod+Space { toggle-overview; }
186186
Mod+Tab { focus-monitor-next; }
187187
Mod+V { switch-focus-between-floating-and-tiling; }
188188
Mod+W { toggle-column-tabbed-display; }
@@ -204,7 +204,7 @@
204204
XF86MonBrightnessDown { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --brightness=lower"; }
205205
XF86MonBrightnessUp { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --brightness=raise"; }
206206
}
207-
spawn-at-startup "/nix/store/vzh35c419zivp27zaxxr9yzsaymb0fsf-xwayland-satellite-0.5.1/bin/xwayland-satellite" ":42"
207+
spawn-at-startup "${pkgs.xwayland-satellite}/bin/xwayland-satellite" ":42"
208208
window-rule {
209209
geometry-corner-radius 1.000000 1.000000 1.000000 1.000000
210210
clip-to-geometry true
@@ -213,6 +213,10 @@
213213
match title="^\\[private\\] .*$"
214214
block-out-from "screencast"
215215
}
216+
window-rule {
217+
match app-id="firefox" title="Picture-in-Picture"
218+
open-floating true
219+
}
216220
window-rule {
217221
match is-window-cast-target=true
218222
border {
@@ -278,6 +282,9 @@
278282
"DP-1" = {
279283
background-color = "#${config.colors.dark_bg}";
280284
};
285+
"DP-2" = {
286+
background-color = "#${config.colors.dark_bg}";
287+
};
281288
};
282289
hotkey-overlay.skip-at-startup = true;
283290
prefer-no-csd = true;
@@ -429,7 +436,7 @@
429436
# subprocess.call(['niri', 'msg', 'action', 'consume-or-expel-window-left'])
430437
# break
431438
# ''}";
432-
"Mod+Space".action = spawn "fish" "-c" "niri msg action toggle-overview";
439+
"Mod+Space".action = toggle-overview;
433440

434441
# window width
435442
"Mod+R".action = switch-preset-column-width;

hosts/simmons/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
./boot.nix
55
./steam.nix
66
];
7+
8+
services.mullvad-vpn.enable = true;
79
}

0 commit comments

Comments
 (0)