wip: dnsc-machine setup
This commit is contained in:
parent
4f598fc382
commit
e6b6016ba7
7 changed files with 77 additions and 51 deletions
|
|
@ -94,6 +94,14 @@
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
security.pam.services.hyprlock = {};
|
security.pam.services.hyprlock = {};
|
||||||
|
|
||||||
|
# Steam
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
||||||
|
};
|
||||||
|
|
||||||
# Nix settings
|
# Nix settings
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function M.apply_to_config(config)
|
||||||
config.font_size = 15.5
|
config.font_size = 15.5
|
||||||
config.window_decorations = "NONE"
|
config.window_decorations = "NONE"
|
||||||
config.window_padding = helpers.get_padding(18, 6)
|
config.window_padding = helpers.get_padding(18, 6)
|
||||||
config.window_background_opacity = 1
|
config.window_background_opacity = 0.94
|
||||||
-- config.enable_wayland = false;
|
-- config.enable_wayland = false;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
main = {
|
main = {
|
||||||
terminal = "${pkgs.wezterm}/bin/wezterm start -- ";
|
terminal = "${pkgs.wezterm}/bin/wezterm start -- ";
|
||||||
layer = "overlay";
|
layer = "overlay";
|
||||||
font = "VictorMono Nerd Font:weight=400:size=15";
|
font = "VictorMono Nerd Font:weight=300:size=15";
|
||||||
use-bold = true;
|
use-bold = true;
|
||||||
icon-theme = "Reversal-dark";
|
icon-theme = "Reversal-dark";
|
||||||
width = 85;
|
width = 85;
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
image-size-ratio = 1;
|
image-size-ratio = 1;
|
||||||
};
|
};
|
||||||
colors = {
|
colors = {
|
||||||
background = "0f0b15ff";
|
background = "0f0b15f5";
|
||||||
text = "ffffffff";
|
text = "ffffffff";
|
||||||
message = "bf8a9fff";
|
message = "bf8a9fff";
|
||||||
prompt = "807c9fff";
|
prompt = "807c9fff";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
position = "left"
|
position = "top"
|
||||||
height = 24
|
height = 24
|
||||||
icon_theme = "Reversal-dark"
|
icon_theme = "Reversal-dark"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ layout {
|
||||||
// - "always", the focused column will always be centered.
|
// - "always", the focused column will always be centered.
|
||||||
// - "on-overflow", focusing a column will center it if it doesn't fit
|
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||||
// together with the previously focused column.
|
// together with the previously focused column.
|
||||||
center-focused-column "never"
|
center-focused-column "on-overflow"
|
||||||
|
|
||||||
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||||
preset-column-widths {
|
preset-column-widths {
|
||||||
|
|
@ -183,11 +183,9 @@ layout {
|
||||||
}
|
}
|
||||||
|
|
||||||
// STARTUP
|
// STARTUP
|
||||||
|
|
||||||
// Wallpaper Setup
|
|
||||||
spawn-at-startup "swaync"
|
spawn-at-startup "swaync"
|
||||||
// spawn-at-startup "ironbar"
|
spawn-at-startup "ironbar"
|
||||||
spawn-at-startup "swww-daemon" // Wallpaper
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
|
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
|
||||||
|
|
||||||
hotkey-overlay {
|
hotkey-overlay {
|
||||||
|
|
@ -218,10 +216,33 @@ animations {
|
||||||
// slowdown 3.0
|
// slowdown 3.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
overview {
|
||||||
|
backdrop-color "#0f0b15"
|
||||||
|
}
|
||||||
|
|
||||||
|
workspace "main"
|
||||||
|
workspace "code"
|
||||||
|
workspace "gaming"
|
||||||
|
workspace "other"
|
||||||
|
workspace "chat"
|
||||||
|
workspace "media"
|
||||||
|
|
||||||
// Window rules let you adjust behavior for individual windows.
|
// Window rules let you adjust behavior for individual windows.
|
||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
||||||
|
|
||||||
|
// TODO: Set up window rules for windows (only at niri startup)
|
||||||
|
// window-rule {
|
||||||
|
// match at-startup=true app-id=r#"^Spotify$"#
|
||||||
|
// open-on-workspace "media"
|
||||||
|
// }
|
||||||
|
|
||||||
|
// TODO: Set up window rules for windows (only at niri startup)
|
||||||
|
// window-rule {
|
||||||
|
// match at-startup=true app-id=r#"^Signal$"#
|
||||||
|
// open-on-workspace "chat"
|
||||||
|
// }
|
||||||
|
|
||||||
// Work around WezTerm's initial configure bug
|
// Work around WezTerm's initial configure bug
|
||||||
// by setting an empty default-column-width.
|
// by setting an empty default-column-width.
|
||||||
// window-rule {
|
// window-rule {
|
||||||
|
|
@ -241,6 +262,11 @@ window-rule {
|
||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"gimp$"# title="^GIMP$"
|
||||||
|
open-maximized true
|
||||||
|
}
|
||||||
|
|
||||||
// Example: block out two password managers from screen capture.
|
// Example: block out two password managers from screen capture.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
/-window-rule {
|
/-window-rule {
|
||||||
|
|
@ -409,24 +435,24 @@ binds {
|
||||||
//
|
//
|
||||||
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||||
// will all refer to the 3rd workspace.
|
// will all refer to the 3rd workspace.
|
||||||
Mod+1 { focus-workspace 1; }
|
Alt+1 { focus-workspace "main"; }
|
||||||
Mod+2 { focus-workspace 2; }
|
Alt+2 { focus-workspace "code"; }
|
||||||
Mod+3 { focus-workspace 3; }
|
Alt+3 { focus-workspace "gaming"; }
|
||||||
Mod+4 { focus-workspace 4; }
|
Alt+4 { focus-workspace "other"; }
|
||||||
Mod+5 { focus-workspace 5; }
|
Alt+5 { focus-workspace "chat"; }
|
||||||
Mod+6 { focus-workspace 6; }
|
Alt+6 { focus-workspace "media"; }
|
||||||
Mod+7 { focus-workspace 7; }
|
Alt+7 { focus-workspace 7; }
|
||||||
Mod+8 { focus-workspace 8; }
|
Alt+8 { focus-workspace 8; }
|
||||||
Mod+9 { focus-workspace 9; }
|
Alt+9 { focus-workspace 9; }
|
||||||
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
Alt+Ctrl+1 { move-column-to-workspace "main"; }
|
||||||
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
Alt+Ctrl+2 { move-column-to-workspace "code"; }
|
||||||
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
Alt+Ctrl+3 { move-column-to-workspace "gaming"; }
|
||||||
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
Alt+Ctrl+4 { move-column-to-workspace "other"; }
|
||||||
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
Alt+Ctrl+5 { move-column-to-workspace "chat"; }
|
||||||
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
Alt+Ctrl+6 { move-column-to-workspace "media"; }
|
||||||
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
Alt+Ctrl+7 { move-column-to-workspace 7; }
|
||||||
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
Alt+Ctrl+8 { move-column-to-workspace 8; }
|
||||||
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
Alt+Ctrl+9 { move-column-to-workspace 9; }
|
||||||
|
|
||||||
// Alternatively, there are commands to move just a single window:
|
// Alternatively, there are commands to move just a single window:
|
||||||
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
||||||
|
|
@ -437,13 +463,13 @@ binds {
|
||||||
// The following binds move the focused window in and out of a column.
|
// The following binds move the focused window in and out of a column.
|
||||||
// If the window is alone, they will consume it into the nearby column to the side.
|
// If the window is alone, they will consume it into the nearby column to the side.
|
||||||
// If the window is already in a column, they will expel it out.
|
// If the window is already in a column, they will expel it out.
|
||||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
Mod+Comma { consume-or-expel-window-left; }
|
||||||
Mod+BracketRight { consume-or-expel-window-right; }
|
Mod+Period { consume-or-expel-window-right; }
|
||||||
|
|
||||||
// Consume one window from the right to the bottom of the focused column.
|
// Consume one window from the right to the bottom of the focused column.
|
||||||
Mod+Comma { consume-window-into-column; }
|
// Mod+Comma { consume-window-into-column; }
|
||||||
// Expel the bottom window from the focused column to the right.
|
// Expel the bottom window from the focused column to the right.
|
||||||
Mod+Period { expel-window-from-column; }
|
// Mod+Period { expel-window-from-column; }
|
||||||
|
|
||||||
Mod+R { switch-preset-column-width; }
|
Mod+R { switch-preset-column-width; }
|
||||||
// Cycling through the presets in reverse order is also possible.
|
// Cycling through the presets in reverse order is also possible.
|
||||||
|
|
|
||||||
|
|
@ -21,18 +21,6 @@
|
||||||
},
|
},
|
||||||
"buttons-grid": {
|
"buttons-grid": {
|
||||||
"actions": [
|
"actions": [
|
||||||
{
|
|
||||||
"command": "wezterm start -- nmtui",
|
|
||||||
"label": " "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "blueman-manager",
|
|
||||||
"label": " "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "hyprlock",
|
|
||||||
"label": " "
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"command": "niri msg action quit",
|
"command": "niri msg action quit",
|
||||||
"label": " "
|
"label": " "
|
||||||
|
|
|
||||||
|
|
@ -78,11 +78,11 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
background-color: @bg;
|
background-color: @bg_secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-row .notification-background .notification:hover {
|
.notification-row .notification-background .notification:hover {
|
||||||
background-color: @bg;
|
background-color: @bg_secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-row .notification-background .notification.low {
|
.notification-row .notification-background .notification.low {
|
||||||
|
|
@ -110,7 +110,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
|
|
||||||
.notification-row .notification-background .notification .notification-default-action:hover {
|
.notification-row .notification-background .notification .notification-default-action:hover {
|
||||||
-gtk-icon-filter: none;
|
-gtk-icon-filter: none;
|
||||||
background-color: @bg;
|
background-color: @bg_secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-row .notification-background .notification .notification-default-action:not(:only-child) {
|
.notification-row .notification-background .notification .notification-default-action:not(:only-child) {
|
||||||
|
|
@ -302,7 +302,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-group.collapsed .notification-row .notification {
|
.notification-group.collapsed .notification-row .notification {
|
||||||
background-color: @bg;
|
background-color: @bg_secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-group.collapsed .notification-row:not(:last-child) {
|
.notification-group.collapsed .notification-row:not(:last-child) {
|
||||||
|
|
@ -316,14 +316,16 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
|
.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
|
||||||
background-color: @bg;
|
background-color: @bg_secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center {
|
.control-center {
|
||||||
/* The Control Center which contains the old notifications + widgets */
|
/* The Control Center which contains the old notifications + widgets */
|
||||||
background-color: @bg;
|
background-color: @bg;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
border-left: 2px solid @magenta_subtle_bg;
|
||||||
color: @fg;
|
color: @fg;
|
||||||
|
opacity: 0.95;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center .control-center-list-placeholder {
|
.control-center .control-center-list-placeholder {
|
||||||
|
|
@ -338,7 +340,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
|
|
||||||
.control-center .control-center-list .notification {
|
.control-center .control-center-list .notification {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border: 2px solid @magenta_subtle_bg_darker;
|
border: 2px solid @magenta_subtle_bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center .control-center-list .notification .notification-default-action,
|
.control-center .control-center-list .notification .notification-default-action,
|
||||||
|
|
@ -347,7 +349,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
|
|
||||||
.control-center .control-center-list .notification .notification-default-action:hover,
|
.control-center .control-center-list .notification .notification-default-action:hover,
|
||||||
.control-center .control-center-list .notification .notification-action:hover {
|
.control-center .control-center-list .notification .notification-action:hover {
|
||||||
background-color: @bg;
|
background-color: @bg_secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blank-window {
|
.blank-window {
|
||||||
|
|
@ -365,6 +367,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
|
|
||||||
.widget-mpris {
|
.widget-mpris {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-mpris .widget-mpris-player {
|
.widget-mpris .widget-mpris-player {
|
||||||
|
|
@ -425,7 +428,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: @fg_dim;
|
color: @fg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .widget-buttons-grid { */
|
/* .widget-buttons-grid { */
|
||||||
|
|
@ -437,6 +440,7 @@ notificationwindow, blankwindow, blankwindow {
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
background-color: @magenta_subtle_bg_darker;
|
background-color: @magenta_subtle_bg_darker;
|
||||||
color: @magenta_brighter;
|
color: @magenta_brighter;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-buttons-grid flowboxchild > button:hover {
|
.widget-buttons-grid flowboxchild > button:hover {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue