Compare commits
No commits in common. "5a4bc7ce3124e9fc55272a97c8e54f0d9988bd2a" and "b30376cdcf514a15e420cd9b175f1ea94df51994" have entirely different histories.
5a4bc7ce31
...
b30376cdcf
@ -1 +0,0 @@
|
|||||||
trailingComma = "none"
|
|
6
fmt
6
fmt
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Format all files matched by treefmt.toml
|
# Format all .nix files using the new default nix formatter
|
||||||
|
# TODO doesn't work when run using ./fmt
|
||||||
treefmt --on-unmatched info
|
nix fmt ./**.nix
|
||||||
|
@ -22,9 +22,7 @@ slider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background .notification-row .notification-background {
|
.floating-notifications.background .notification-row .notification-background {
|
||||||
box-shadow:
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #313244;
|
||||||
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
|
||||||
inset 0 0 0 1px #313244;
|
|
||||||
border-radius: 12.6px;
|
border-radius: 12.6px;
|
||||||
margin: 18px;
|
margin: 18px;
|
||||||
background-color: #1e1e2e;
|
background-color: #1e1e2e;
|
||||||
@ -32,72 +30,36 @@ slider {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification {
|
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
border-radius: 12.6px;
|
border-radius: 12.6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification.critical {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification.critical {
|
|
||||||
box-shadow: inset 0 0 7px 0 #f38ba8;
|
box-shadow: inset 0 0 7px 0 #f38ba8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification .notification-content {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content {
|
|
||||||
margin: 7px;
|
margin: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification .notification-content .summary {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content
|
|
||||||
.summary {
|
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification .notification-content .time {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content
|
|
||||||
.time {
|
|
||||||
color: #a6adc8;
|
color: #a6adc8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification .notification-content .body {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content
|
|
||||||
.body {
|
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> * {
|
|
||||||
min-height: 3.4em;
|
min-height: 3.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> *
|
|
||||||
.notification-action {
|
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
background-color: #313244;
|
background-color: #313244;
|
||||||
@ -105,35 +67,20 @@ slider {
|
|||||||
margin: 7px;
|
margin: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action:hover {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> *
|
|
||||||
.notification-action:hover {
|
|
||||||
box-shadow: inset 0 0 0 1px #45475a;
|
box-shadow: inset 0 0 0 1px #45475a;
|
||||||
background-color: #313244;
|
background-color: #313244;
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action:active {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> *
|
|
||||||
.notification-action:active {
|
|
||||||
box-shadow: inset 0 0 0 1px #45475a;
|
box-shadow: inset 0 0 0 1px #45475a;
|
||||||
background-color: #74c7ec;
|
background-color: #74c7ec;
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close Button */
|
/* Close Button */
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .close-button {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.close-button {
|
|
||||||
margin: 7px;
|
margin: 7px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
border-radius: 6.3px;
|
border-radius: 6.3px;
|
||||||
@ -141,26 +88,18 @@ slider {
|
|||||||
background-color: #f38ba8;
|
background-color: #f38ba8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .close-button:hover {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.close-button:hover {
|
|
||||||
background-color: #eba0ac;
|
background-color: #eba0ac;
|
||||||
color: #1e1e2e;
|
color: #1e1e2e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-notifications.background
|
.floating-notifications.background .notification-row .notification-background .close-button:active {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.close-button:active {
|
|
||||||
background-color: #f38ba8;
|
background-color: #f38ba8;
|
||||||
color: #1e1e2e;
|
color: #1e1e2e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center {
|
.control-center {
|
||||||
box-shadow:
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #313244;
|
||||||
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
|
||||||
inset 0 0 0 1px #313244;
|
|
||||||
border-radius: 12.6px;
|
border-radius: 12.6px;
|
||||||
margin: 18px;
|
margin: 18px;
|
||||||
background-color: #1e1e2e;
|
background-color: #1e1e2e;
|
||||||
@ -206,64 +145,31 @@ slider {
|
|||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification.critical {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification.critical {
|
|
||||||
box-shadow: inset 0 0 7px 0 #f38ba8;
|
box-shadow: inset 0 0 7px 0 #f38ba8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification .notification-content {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content {
|
|
||||||
margin: 7px;
|
margin: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification .notification-content .summary {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content
|
|
||||||
.summary {
|
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification .notification-content .time {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content
|
|
||||||
.time {
|
|
||||||
color: #a6adc8;
|
color: #a6adc8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification .notification-content .body {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
.notification-content
|
|
||||||
.body {
|
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification > *:last-child > * {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> * {
|
|
||||||
min-height: 3.4em;
|
min-height: 3.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification > *:last-child > * .notification-action {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> *
|
|
||||||
.notification-action {
|
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
background-color: #11111b;
|
background-color: #11111b;
|
||||||
@ -271,25 +177,13 @@ slider {
|
|||||||
margin: 7px;
|
margin: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification > *:last-child > * .notification-action:hover {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> *
|
|
||||||
.notification-action:hover {
|
|
||||||
box-shadow: inset 0 0 0 1px #45475a;
|
box-shadow: inset 0 0 0 1px #45475a;
|
||||||
background-color: #313244;
|
background-color: #313244;
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .notification > *:last-child > * .notification-action:active {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.notification
|
|
||||||
> *:last-child
|
|
||||||
> *
|
|
||||||
.notification-action:active {
|
|
||||||
box-shadow: inset 0 0 0 1px #45475a;
|
box-shadow: inset 0 0 0 1px #45475a;
|
||||||
background-color: #74c7ec;
|
background-color: #74c7ec;
|
||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
@ -312,10 +206,7 @@ slider {
|
|||||||
color: #1e1e2e;
|
color: #1e1e2e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-center
|
.control-center .notification-row .notification-background .close-button:active {
|
||||||
.notification-row
|
|
||||||
.notification-background
|
|
||||||
.close-button:active {
|
|
||||||
background-color: #f38ba8;
|
background-color: #f38ba8;
|
||||||
color: #1e1e2e;
|
color: #1e1e2e;
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,13 @@
|
|||||||
// Waybar position (top|bottom|left|right)
|
// Waybar position (top|bottom|left|right)
|
||||||
// "width": 1280, // Waybar width
|
// "width": 1280, // Waybar width
|
||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["hyprland/workspaces", "custom/music"],
|
"modules-left": [
|
||||||
"modules-center": ["hyprland/window"],
|
"hyprland/workspaces",
|
||||||
|
"custom/music"
|
||||||
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"hyprland/window"
|
||||||
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"hyprland/language",
|
"hyprland/language",
|
||||||
"wireplumber",
|
"wireplumber",
|
||||||
@ -55,14 +60,28 @@
|
|||||||
"backlight": {
|
"backlight": {
|
||||||
"device": "intel_backlight",
|
"device": "intel_backlight",
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"wireplumber": {
|
"wireplumber": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
"format-muted": " ",
|
"format-muted": " ",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"default": ["", " ", " "]
|
"default": [
|
||||||
|
"",
|
||||||
|
" ",
|
||||||
|
" "
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
background-color: rgba(30, 30, 46, 0.9);
|
background-color: rgba(30, 30, 46, 0.90);
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@ -20,9 +20,7 @@ button {
|
|||||||
background-size: 25%;
|
background-size: 25%;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus,
|
button:focus, button:active, button:hover {
|
||||||
button:active,
|
|
||||||
button:hover {
|
|
||||||
/* 20% Overlay 2, 80% mantle */
|
/* 20% Overlay 2, 80% mantle */
|
||||||
background-color: rgb(48, 50, 66);
|
background-color: rgb(48, 50, 66);
|
||||||
outline-style: none;
|
outline-style: none;
|
||||||
|
@ -6,21 +6,14 @@
|
|||||||
jetbrains.rust-rover
|
jetbrains.rust-rover
|
||||||
jetbrains.webstorm
|
jetbrains.webstorm
|
||||||
vscodium # TODO set up extensions
|
vscodium # TODO set up extensions
|
||||||
zed-editor
|
|
||||||
# Tools
|
# Tools
|
||||||
git
|
git
|
||||||
rustup
|
rustup
|
||||||
nodejs
|
nodejs
|
||||||
pnpm
|
pnpm
|
||||||
gcc # Required for C, Rust and others
|
gcc # Required for C, Rust and others
|
||||||
# Language servers
|
|
||||||
nixd
|
|
||||||
nil
|
|
||||||
# Formatters
|
# Formatters
|
||||||
nixfmt-rfc-style
|
nixd
|
||||||
treefmt
|
|
||||||
nodePackages.prettier
|
|
||||||
shfmt
|
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
|
@ -1,32 +1,27 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
# TODO move locale config for hyprland here
|
# TODO move locale config for hyprland here
|
||||||
let
|
|
||||||
utf-8 = "UTF-8";
|
|
||||||
en = "en_GB.${utf-8}";
|
|
||||||
nb = "nb_NO.${utf-8}";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "uk";
|
console.keyMap = "uk";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = en;
|
defaultLocale = "en_GB.UTF-8";
|
||||||
supportedLocales = [
|
supportedLocales = [
|
||||||
"${en}/${utf-8}"
|
"en_GB.UTF-8/UTF-8"
|
||||||
"${nb}/${utf-8}"
|
"nb_NO.UTF-8/UTF-8"
|
||||||
];
|
];
|
||||||
extraLocaleSettings = {
|
extraLocaleSettings = {
|
||||||
LC_ADDRESS = nb;
|
LC_ADDRESS = "nb_NO.UTF-8";
|
||||||
LC_IDENTIFICATION = nb;
|
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
||||||
LC_MEASUREMENT = nb;
|
LC_MEASUREMENT = "nb_NO.UTF-8";
|
||||||
LC_MONETARY = nb;
|
LC_MONETARY = "nb_NO.UTF-8";
|
||||||
LC_NAME = nb;
|
LC_NAME = "nb_NO.UTF-8";
|
||||||
LC_NUMERIC = nb;
|
LC_NUMERIC = "nb_NO.UTF-8";
|
||||||
LC_PAPER = nb;
|
LC_PAPER = "nb_NO.UTF-8";
|
||||||
LC_TELEPHONE = nb;
|
LC_TELEPHONE = "nb_NO.UTF-8";
|
||||||
LC_TIME = nb;
|
LC_TIME = "nb_NO.UTF-8";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
test
2
test
@ -3,4 +3,4 @@
|
|||||||
# Rebuild and switch the environment if successful
|
# Rebuild and switch the environment if successful
|
||||||
git add .
|
git add .
|
||||||
./fmt
|
./fmt
|
||||||
nh os test . "$@"
|
nh os test .
|
||||||
|
18
treefmt.toml
18
treefmt.toml
@ -1,18 +0,0 @@
|
|||||||
[formatter.nixfmt-rfc-style]
|
|
||||||
command = "nixfmt"
|
|
||||||
includes = ["*.nix"]
|
|
||||||
|
|
||||||
[formatter.prettier]
|
|
||||||
command = "prettier"
|
|
||||||
includes = ["*.css", "*.json", "*.jsonc", "*.yaml"]
|
|
||||||
options = ["--write"]
|
|
||||||
|
|
||||||
[formatter.shell]
|
|
||||||
command = "shfmt"
|
|
||||||
includes = ["fmt", "test", "switch"]
|
|
||||||
excludes = []
|
|
||||||
options = [
|
|
||||||
"--indent", "2",
|
|
||||||
"--simplify",
|
|
||||||
"--write",
|
|
||||||
]
|
|
Loading…
x
Reference in New Issue
Block a user