Compare commits
4 Commits
a7112f1577
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
beb64f4df9
|
|||
|
2a99d35797
|
|||
|
6571672df8
|
|||
|
20363b498c
|
@@ -122,6 +122,7 @@ jobs:
|
|||||||
echo " User aur" >> ~/.ssh/config
|
echo " User aur" >> ~/.ssh/config
|
||||||
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts 2>/dev/null
|
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
|
rm -rf /tmp/aur-gpupaper
|
||||||
git clone ssh://aur@aur.archlinux.org/gpupaper.git /tmp/aur-gpupaper
|
git clone ssh://aur@aur.archlinux.org/gpupaper.git /tmp/aur-gpupaper
|
||||||
cp aur/PKGBUILD /tmp/aur-gpupaper/
|
cp aur/PKGBUILD /tmp/aur-gpupaper/
|
||||||
cd /tmp/aur-gpupaper
|
cd /tmp/aur-gpupaper
|
||||||
|
|||||||
Generated
+1
-1
@@ -473,7 +473,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gpupaper"
|
name = "gpupaper"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "gpupaper"
|
name = "gpupaper"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Bendik Aagaard Lynghaug <bendik.lynghaug@gmail.com>
|
# Maintainer: Bendik Aagaard Lynghaug <bendik.lynghaug@gmail.com>
|
||||||
pkgname=gpupaper
|
pkgname=gpupaper
|
||||||
pkgver=0.1.1
|
pkgver=0.1.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)"
|
pkgdesc="Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)"
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
// i don't remember what i based this off of or if it was just fiddling,
|
||||||
|
// found it in my shader list and thought the clouds were pretty good,
|
||||||
|
// for what it is
|
||||||
|
uniform float time;
|
||||||
|
uniform vec2 resolution;
|
||||||
|
|
||||||
|
float noise(vec3 p) {
|
||||||
|
float v = 0.0, a;
|
||||||
|
for (a = .85; a > .15; a *=.75) {
|
||||||
|
v += a * abs(dot( sin( .1*time + .1*p.z + .1*p/a) , vec3(a*3.)) );
|
||||||
|
p += p;
|
||||||
|
}
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
|
||||||
|
void mainImage(out vec4 o, vec2 u) {
|
||||||
|
float i = 0.0, s = 0.0;
|
||||||
|
o = vec4(0.0);
|
||||||
|
vec3 p = vec3(0.0);
|
||||||
|
vec2 r = resolution;
|
||||||
|
u = ( u+u - r.xy ) / r.y;
|
||||||
|
for( ; i++ < 1e2; ) {
|
||||||
|
p += vec3(u * s, s);
|
||||||
|
s = .1 + .2* abs( 12.-abs(p.y) - noise(p) );
|
||||||
|
o += 1./s;
|
||||||
|
}
|
||||||
|
o = tanh(vec4(5,2,1,0)*o /3e3/ length(u));
|
||||||
|
}
|
||||||
|
|
||||||
+10
-7
@@ -168,14 +168,11 @@ pub fn run(
|
|||||||
let is_all = target_output == "all" || target_output == "*";
|
let is_all = target_output == "all" || target_output == "*";
|
||||||
|
|
||||||
if is_all {
|
if is_all {
|
||||||
let wl_outputs: Vec<_> = state.output_state.outputs().collect();
|
// OutputHandler::new_output already attached one layer per existing
|
||||||
if wl_outputs.is_empty() {
|
// output during the roundtrip above. Only fall back to a compositor-
|
||||||
// No outputs reported yet; let the compositor assign.
|
// assigned surface if none arrived.
|
||||||
|
if state.outputs.is_empty() {
|
||||||
state.attach_output(&qh, None);
|
state.attach_output(&qh, None);
|
||||||
} else {
|
|
||||||
for wl_out in &wl_outputs {
|
|
||||||
state.attach_output(&qh, Some(wl_out));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let wl_out = find_output(&state.output_state, &target_output);
|
let wl_out = find_output(&state.output_state, &target_output);
|
||||||
@@ -343,6 +340,12 @@ impl OutputHandler for AppState {
|
|||||||
output: wl_output::WlOutput,
|
output: wl_output::WlOutput,
|
||||||
) {
|
) {
|
||||||
if self.target_output == "all" || self.target_output == "*" {
|
if self.target_output == "all" || self.target_output == "*" {
|
||||||
|
let name = self
|
||||||
|
.output_state
|
||||||
|
.info(&output)
|
||||||
|
.and_then(|i| i.name)
|
||||||
|
.unwrap_or_else(|| "<unnamed>".into());
|
||||||
|
log::info!("attaching output: {}", name);
|
||||||
self.attach_output(qh, Some(&output));
|
self.attach_output(qh, Some(&output));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user