From 1fe510dbf141ce2a8b8429eba8477ae3e0ef9ea1 Mon Sep 17 00:00:00 2001 From: Seaotatop Date: Sun, 25 Jun 2023 17:49:06 -0500 Subject: [PATCH] Add SPDX identifiers --- Cargo.toml | 1 + api/lua/client.lua | 2 ++ api/lua/input.lua | 2 ++ api/lua/keys.lua | 2 ++ api/lua/pinnacle.lua | 2 ++ api/lua/process.lua | 2 ++ src/api.rs | 2 ++ src/api/msg.rs | 2 ++ src/backend.rs | 2 ++ src/backend/udev.rs | 2 ++ src/backend/winit.rs | 2 ++ src/cursor.rs | 2 ++ src/focus.rs | 2 ++ src/grab.rs | 2 ++ src/grab/move_grab.rs | 2 ++ src/grab/resize_grab.rs | 2 ++ src/handlers.rs | 2 ++ src/input.rs | 2 ++ src/layout.rs | 2 ++ src/layout/automatic.rs | 2 ++ src/layout/manual.rs | 6 ++++-- src/main.rs | 2 ++ src/pointer.rs | 2 ++ src/render.rs | 2 ++ src/render/pointer.rs | 2 ++ src/state.rs | 2 ++ src/tag.rs | 2 ++ src/window.rs | 2 ++ src/window/window_state.rs | 2 ++ src/xdg.rs | 2 ++ src/xdg/request.rs | 2 ++ 31 files changed, 63 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2247890..f922802 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "pinnacle" version = "0.1.0" edition = "2021" +license = "MPL-2.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/api/lua/client.lua b/api/lua/client.lua index ec51c26..2d15872 100644 --- a/api/lua/client.lua +++ b/api/lua/client.lua @@ -1,6 +1,8 @@ -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at https://mozilla.org/MPL/2.0/. +-- +-- SPDX-License-Identifier: MPL-2.0 local M = {} diff --git a/api/lua/input.lua b/api/lua/input.lua index d90a77a..4cda139 100644 --- a/api/lua/input.lua +++ b/api/lua/input.lua @@ -1,6 +1,8 @@ -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at https://mozilla.org/MPL/2.0/. +-- +-- SPDX-License-Identifier: MPL-2.0 local input = { keys = require("keys"), diff --git a/api/lua/keys.lua b/api/lua/keys.lua index 03fc576..2c0a8b5 100644 --- a/api/lua/keys.lua +++ b/api/lua/keys.lua @@ -1,6 +1,8 @@ -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at https://mozilla.org/MPL/2.0/. +-- +-- SPDX-License-Identifier: MPL-2.0 ---@alias Modifiers "Alt" | "Ctrl" | "Shift" | "Super" diff --git a/api/lua/pinnacle.lua b/api/lua/pinnacle.lua index 06c04c5..5b7cd86 100644 --- a/api/lua/pinnacle.lua +++ b/api/lua/pinnacle.lua @@ -1,6 +1,8 @@ -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at https://mozilla.org/MPL/2.0/. +-- +-- SPDX-License-Identifier: MPL-2.0 -- require("luarocks.loader") TODO: local socket = require("posix.sys.socket") diff --git a/api/lua/process.lua b/api/lua/process.lua index 721b522..c9ae491 100644 --- a/api/lua/process.lua +++ b/api/lua/process.lua @@ -1,6 +1,8 @@ -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at https://mozilla.org/MPL/2.0/. +-- +-- SPDX-License-Identifier: MPL-2.0 local process = {} diff --git a/src/api.rs b/src/api.rs index d234b9c..a0988d1 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 //! Pinnacle's configuration API. //! diff --git a/src/api/msg.rs b/src/api/msg.rs index 90bf4aa..6fbf4d2 100644 --- a/src/api/msg.rs +++ b/src/api/msg.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 // The MessagePack format for these is a one-element map where the element's key is the enum name and its // value is a map of the enum's values diff --git a/src/backend.rs b/src/backend.rs index f7ad470..5b7650d 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{output::Output, reexports::wayland_server::protocol::wl_surface::WlSurface}; diff --git a/src/backend/udev.rs b/src/backend/udev.rs index eb0ab9d..55be019 100644 --- a/src/backend/udev.rs +++ b/src/backend/udev.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 // from anvil // TODO: figure out what this stuff does diff --git a/src/backend/winit.rs b/src/backend/winit.rs index 243daed..9ec6b17 100644 --- a/src/backend/winit.rs +++ b/src/backend/winit.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use std::{error::Error, sync::Mutex, time::Duration}; diff --git a/src/cursor.rs b/src/cursor.rs index 4449a4e..9ec7868 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use std::{io::Read, time::Duration}; diff --git a/src/focus.rs b/src/focus.rs index b49be1f..e63f2fa 100644 --- a/src/focus.rs +++ b/src/focus.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{desktop::Window, output::Output, utils::IsAlive}; diff --git a/src/grab.rs b/src/grab.rs index 81e0c50..8a3a3f6 100644 --- a/src/grab.rs +++ b/src/grab.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 pub mod move_grab; pub mod resize_grab; diff --git a/src/grab/move_grab.rs b/src/grab/move_grab.rs index 0c1c71d..905f781 100644 --- a/src/grab/move_grab.rs +++ b/src/grab/move_grab.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ desktop::Window, diff --git a/src/grab/resize_grab.rs b/src/grab/resize_grab.rs index 9ec81d2..0cac2bb 100644 --- a/src/grab/resize_grab.rs +++ b/src/grab/resize_grab.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ desktop::Window, diff --git a/src/handlers.rs b/src/handlers.rs index a90922b..6715ac9 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ backend::renderer::utils, diff --git a/src/input.rs b/src/input.rs index 07fd78c..309f654 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use std::collections::HashMap; diff --git a/src/layout.rs b/src/layout.rs index 7921d55..cba6a0f 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 pub mod automatic; pub mod manual; diff --git a/src/layout/automatic.rs b/src/layout/automatic.rs index 8f5643b..d71c862 100644 --- a/src/layout/automatic.rs +++ b/src/layout/automatic.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ desktop::Window, diff --git a/src/layout/manual.rs b/src/layout/manual.rs index d4698f4..4690005 100644 --- a/src/layout/manual.rs +++ b/src/layout/manual.rs @@ -1,5 +1,7 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. - - +// +// SPDX-License-Identifier: MPL-2.0 +// +// love how i'm licensing this empty file diff --git a/src/main.rs b/src/main.rs index 8f5aeb6..371003e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 //! A very, VERY WIP Smithay-based Wayland compositor. //! diff --git a/src/pointer.rs b/src/pointer.rs index 100737a..b84866e 100644 --- a/src/pointer.rs +++ b/src/pointer.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ input::{ diff --git a/src/render.rs b/src/render.rs index e64b14d..6074c71 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ backend::renderer::{ diff --git a/src/render/pointer.rs b/src/render/pointer.rs index f72db1a..f81d5a6 100644 --- a/src/render/pointer.rs +++ b/src/render/pointer.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ backend::renderer::{ diff --git a/src/state.rs b/src/state.rs index d9a8b16..25c7ee1 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use std::{ error::Error, diff --git a/src/tag.rs b/src/tag.rs index b69d436..6ffeeaf 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -1,5 +1,7 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 pub struct Tag(u32); diff --git a/src/window.rs b/src/window.rs index 2313d2e..b0850c2 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use std::cell::RefCell; diff --git a/src/window/window_state.rs b/src/window/window_state.rs index 11e31d7..dc7a101 100644 --- a/src/window/window_state.rs +++ b/src/window/window_state.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use std::cell::RefCell; diff --git a/src/xdg.rs b/src/xdg.rs index 761dc9a..cd95c52 100644 --- a/src/xdg.rs +++ b/src/xdg.rs @@ -1,5 +1,7 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 pub mod request; diff --git a/src/xdg/request.rs b/src/xdg/request.rs index 41c6295..ee2d61c 100644 --- a/src/xdg/request.rs +++ b/src/xdg/request.rs @@ -1,6 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +// +// SPDX-License-Identifier: MPL-2.0 use smithay::{ input::{pointer::Focus, Seat},