let's hope this doesn't break everything :3
This commit is contained in:
parent
608f093290
commit
2f85fb1b3b
21 changed files with 176 additions and 224 deletions
|
|
@ -1,15 +0,0 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
inputs.automapaper.packages.${pkgs.system}.default
|
||||
];
|
||||
|
||||
home.file = {
|
||||
"${config.xdg.configHome}/automapaper/config.toml".source = ./config.toml;
|
||||
"${config.xdg.configHome}/automapaper/config2nd.toml".source = ./config2nd.toml;
|
||||
"${config.xdg.configHome}/automapaper/state.frag".source = ./state.frag;
|
||||
"${config.xdg.configHome}/automapaper/init.frag".source = ./init.frag;
|
||||
"${config.xdg.configHome}/automapaper/display.frag".source = ./display.frag;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
# this is the config for Automapaper
|
||||
# you need one for each display you want the wallpaper on
|
||||
[display]
|
||||
# name of the display in wayland
|
||||
name="DP-3"
|
||||
# the horizontal cell amount to simulate
|
||||
horizontal=256
|
||||
# the vertical cell amount to simulate
|
||||
vertical=144
|
||||
# target simulation ticks per second
|
||||
tps=30
|
||||
# automaton shader
|
||||
# this has access to the previous state, which is a (horizontal, vertical) sized texture2D that uses rgba float values
|
||||
state_frag="/home/noa/.config/automapaper/state.frag"
|
||||
# initial state / reset shader
|
||||
# this has access to the resolution, and the time since the program was started
|
||||
init_frag="/home/noa/.config/automapaper/init.frag"
|
||||
# scaling/display shader
|
||||
# this has access to the current and previous state to display
|
||||
display_frag="/home/noa/.config/automapaper/display.frag"
|
||||
# the amount of cycles before the init_frag shader reruns
|
||||
cycles=2500
|
||||
# the amount of frames to display per state tick
|
||||
frames_per_tick=1
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# this is the config for Automapaper
|
||||
[display]
|
||||
# name of the display in wayland
|
||||
name = "DP-2"
|
||||
# the horizontal cell amount to simulate
|
||||
horizontal = 256
|
||||
# the vertical cell amount to simulate
|
||||
vertical = 144
|
||||
# target simulation ticks per second
|
||||
tps = 30
|
||||
# automaton shader
|
||||
# this has access to the previous state, which is a (horizontal, vertical) sized texture2D that uses the rgba values
|
||||
state_frag="/home/noa/.config/automapaper/state.frag"
|
||||
# initial state / reset shader
|
||||
# this has access to the resolution, and the time since the program was started
|
||||
init_frag="/home/noa/.config/automapaper/init.frag"
|
||||
# scaling/display shader
|
||||
# this has access to the current and previous state to display
|
||||
display_frag="/home/noa/.config/automapaper/display.frag"
|
||||
# the amount of cycles before the init_frag shader reruns
|
||||
cycles = 2500
|
||||
# the amount of frames to display per state tick
|
||||
frames_per_tick = 1
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform sampler2D tex2D;
|
||||
uniform sampler2D old2D;
|
||||
uniform ivec2 resolution;
|
||||
uniform float frame_part;
|
||||
|
||||
in highp vec2 texCoords;
|
||||
out vec4 stateColor;
|
||||
|
||||
const vec4 bgColor = vec4(38.0/255.0, 5.0/255.0, 46.0/255.0, 1.0); // #26052e
|
||||
const vec4 fgColor = vec4(148.0/255.0, 15.0/255.0, 173.0/255.0, 1.0); // #950fad
|
||||
|
||||
void main() {
|
||||
vec2 canvasSize = vec2(textureSize(tex2D, 0));
|
||||
vec4 state = texture(tex2D, texCoords);
|
||||
vec4 ostate = texture(old2D, texCoords);
|
||||
|
||||
vec2 localCoords = fract(gl_FragCoord.xy / vec2(resolution) * canvasSize);
|
||||
localCoords = localCoords - 0.5;
|
||||
float dist = sqrt(dot(localCoords, localCoords));
|
||||
|
||||
float size = smoothstep(0.0, 1.0, pow(mix(ostate.g,state.g, frame_part), 3.0)) * 0.35;
|
||||
float mask = 1.0 - step(size, dist);
|
||||
|
||||
float brightness = mix(ostate.r,state.r, frame_part) + 0.2 * pow(mix(ostate.g,state.g, frame_part), 3.0);
|
||||
stateColor = mix(bgColor, fgColor, brightness * mask);
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform float time;
|
||||
uniform vec2 resolution;
|
||||
|
||||
out vec4 stateColor;
|
||||
|
||||
float PHI = 1.61803398874989484820459; // Φ = Golden Ratio
|
||||
|
||||
float gold_noise(in vec2 xy, in float seed){
|
||||
return fract(tan(distance(xy*PHI, xy)*seed)*xy.x);
|
||||
}
|
||||
|
||||
void main( void ) {
|
||||
|
||||
vec2 position = gl_FragCoord.xy;
|
||||
float color = gold_noise(position.xy, fract(time));
|
||||
|
||||
|
||||
stateColor = vec4(step(0.3, color), 0,0,step(0.3, color));
|
||||
}
|
||||
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
#version 310 es
|
||||
precision highp float;
|
||||
|
||||
uniform sampler2D state;
|
||||
uniform vec2 scale;
|
||||
|
||||
out vec4 stateColor;
|
||||
|
||||
vec4 get(int x, int y) {
|
||||
return texture(state, (gl_FragCoord.xy + vec2(x, y)) / scale);
|
||||
}
|
||||
|
||||
void main() {
|
||||
int sum = int(get(-1, -1).r +
|
||||
get(-1, 0).r +
|
||||
get(-1, 1).r +
|
||||
get( 0, -1).r +
|
||||
get( 0, 1).r +
|
||||
get( 1, -1).r +
|
||||
get( 1, 0).r +
|
||||
get( 1, 1).r);
|
||||
vec4 current = get(0,0);
|
||||
if (sum == 3) {
|
||||
stateColor.r = 1.0;
|
||||
stateColor.g = 1.0;
|
||||
} else if (sum == 2) {
|
||||
stateColor = current;
|
||||
if (current.r == 0.0) {
|
||||
stateColor.g = max(current.g - 0.01, 0.0);
|
||||
}
|
||||
} else {
|
||||
stateColor = vec4(0.0, max(current.g - 0.01, 0.0), 0.0, 1.0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
firefox
|
||||
];
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# TODO add some default firefox settings
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Noa Aarts";
|
||||
userEmail = "itepastra@gmail.com";
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "main"; };
|
||||
safe.directory = "/etc/nixos";
|
||||
pull.rebase = false;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
kitty
|
||||
];
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
};
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -579,6 +579,8 @@ require("lazy").setup({
|
|||
python = { "black" },
|
||||
|
||||
go = { "gopls" },
|
||||
|
||||
nix = { "nixpkgs-fmt" },
|
||||
--
|
||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
||||
-- is found.
|
||||
|
|
|
|||
120
common/wofi.nix
120
common/wofi.nix
|
|
@ -1,120 +0,0 @@
|
|||
{ config, pkgs, inputs, nix-colors, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./colors.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "wofi-launch" ''
|
||||
${wofi}/bin/wofi --show drun
|
||||
'')
|
||||
(writeShellScriptBin "wofi-power" ''
|
||||
lock="Lock"
|
||||
poweroff="Poweroff"
|
||||
reboot="Reboot"
|
||||
sleep="Suspend"
|
||||
|
||||
selected_option=$(echo -e "$lock\n$sleep\n$reboot\n$poweroff" | wofi --dmenu -i -p "Powermenu")
|
||||
|
||||
if [ "$selected_option" == "$lock" ]
|
||||
then
|
||||
echo "lock"
|
||||
swaylock
|
||||
elif [ "$selected_option" == "$poweroff" ]
|
||||
then
|
||||
echo "poweroff"
|
||||
poweroff
|
||||
elif [ "$selected_option" == "$reboot" ]
|
||||
then
|
||||
echo "reboot"
|
||||
reboot
|
||||
elif [ "$selected_option" == "$sleep" ]
|
||||
then
|
||||
echo "sleep"
|
||||
suspend
|
||||
else
|
||||
echo "No match"
|
||||
fi
|
||||
'')
|
||||
];
|
||||
programs.wofi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
};
|
||||
style = ''
|
||||
* {
|
||||
outline: none;
|
||||
outline-style: none;
|
||||
}
|
||||
|
||||
#window {
|
||||
margin: 10px;
|
||||
border: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
border-radius: 10px;
|
||||
font-family:
|
||||
JetBrains Mono NF,
|
||||
monospace;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 10px;
|
||||
border: 2px #${config.colorScheme.palette.backgroundMuted};
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#input {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
margin-left: 2px;
|
||||
color: #${config.colorScheme.palette.info};
|
||||
outline-style: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
|
||||
#scroll {
|
||||
border: 10px solid #${config.colorScheme.palette.border};
|
||||
border-radius: 10px;
|
||||
/*padding-right: 10px;*/
|
||||
outline: none;
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#entry {
|
||||
border: none;
|
||||
/*border-radius: 10px;
|
||||
margin-right: 15px;
|
||||
margin-left: 15px;*/
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
color: #${config.colorScheme.palette.text};
|
||||
background-color: #${config.colorScheme.palette.background};
|
||||
}
|
||||
#entry:selected {
|
||||
border: none;
|
||||
background-color: #${config.colorScheme.palette.info};
|
||||
}
|
||||
|
||||
#text:selected {
|
||||
border: none;
|
||||
color: #${config.colorScheme.palette.textMuted};
|
||||
}
|
||||
|
||||
#img {
|
||||
background-color: transparent;
|
||||
margin-right: 6px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
zsh
|
||||
];
|
||||
programs.direnv = {
|
||||
enable=true;
|
||||
enableZshIntegration=true;
|
||||
nix-direnv.enable=true;
|
||||
};
|
||||
programs.zsh = {
|
||||
enable=true;
|
||||
shellAliases = {
|
||||
ll = "lsd -l";
|
||||
lt = "lsd -l --tree";
|
||||
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
|
||||
};
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
size = 10000;
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
theme = "frisk";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue