Compare commits
No commits in common. "main" and "kinetic" have entirely different histories.
1
.github/build-canary-v3
vendored
@ -1 +0,0 @@
|
|||||||
1
|
|
1
.github/build-nest-v3
vendored
@ -1 +0,0 @@
|
|||||||
1
|
|
1
.github/release-canary-v3
vendored
@ -1 +0,0 @@
|
|||||||
1
|
|
1
.github/release-nest-v3
vendored
@ -1 +0,0 @@
|
|||||||
8
|
|
37
.github/workflows/build-canaryv3.yml
vendored
@ -1,37 +0,0 @@
|
|||||||
name: PikaOS Package Build Only (Canary) (amd64-v3)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '.github/build-canary-v3'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3
|
|
||||||
volumes:
|
|
||||||
- /proc:/proc
|
|
||||||
options: --privileged -it
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@v2
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
name: id_rsa
|
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
||||||
if_key_exists: replace
|
|
||||||
|
|
||||||
- name: Update APT Cache
|
|
||||||
run: apt-get update -y
|
|
||||||
|
|
||||||
- name: Set Build Config
|
|
||||||
run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh
|
|
||||||
|
|
||||||
- name: Build Package
|
|
||||||
run: ./main.sh
|
|
37
.github/workflows/build-nestv3.yml
vendored
@ -1,37 +0,0 @@
|
|||||||
name: PikaOS Package Build Only (amd64-v3)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '.github/build-nest-v3'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
|
|
||||||
volumes:
|
|
||||||
- /proc:/proc
|
|
||||||
options: --privileged -it
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@v2
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
name: id_rsa
|
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
||||||
if_key_exists: replace
|
|
||||||
|
|
||||||
- name: Update APT Cache
|
|
||||||
run: apt-get update -y
|
|
||||||
|
|
||||||
- name: Set Build Config
|
|
||||||
run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh
|
|
||||||
|
|
||||||
- name: Build Package
|
|
||||||
run: ./main.sh
|
|
40
.github/workflows/release-canaryv3.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: PikaOS Package Build & Release (Canary) (amd64-v3)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '.github/release-canary-v3'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3
|
|
||||||
volumes:
|
|
||||||
- /proc:/proc
|
|
||||||
options: --privileged -it
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@v2
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
name: id_rsa
|
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
||||||
if_key_exists: replace
|
|
||||||
|
|
||||||
- name: Update APT Cache
|
|
||||||
run: apt-get update -y
|
|
||||||
|
|
||||||
- name: Set Build Config
|
|
||||||
run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh
|
|
||||||
|
|
||||||
- name: Build Package
|
|
||||||
run: ./main.sh
|
|
||||||
|
|
||||||
- name: Release Package
|
|
||||||
run: ./release.sh
|
|
40
.github/workflows/release-nestv3.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: PikaOS Package Build & Release (amd64-v3)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '.github/release-nest-v3'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
|
|
||||||
volumes:
|
|
||||||
- /proc:/proc
|
|
||||||
options: --privileged -it
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@v2
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
name: id_rsa
|
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
||||||
if_key_exists: replace
|
|
||||||
|
|
||||||
- name: Update APT Cache
|
|
||||||
run: apt-get update -y
|
|
||||||
|
|
||||||
- name: Set Build Config
|
|
||||||
run: cp -vf ./pika-build-config/amd64-v3.sh ./pika-build-config.sh
|
|
||||||
|
|
||||||
- name: Build Package
|
|
||||||
run: ./main.sh
|
|
||||||
|
|
||||||
- name: Release Package
|
|
||||||
run: ./release.sh
|
|
40
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: PikaOS Package Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: self-hosted
|
||||||
|
container:
|
||||||
|
image: ubuntu:22.10
|
||||||
|
volumes:
|
||||||
|
- /proc:/proc
|
||||||
|
options: --privileged -it
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install needed packages
|
||||||
|
run: apt update && apt install software-properties-common sudo git bc gpg gpg-agent bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar reprepro dpkg-sig devscripts -y
|
||||||
|
|
||||||
|
- name: Import GPG key
|
||||||
|
id: import_gpg
|
||||||
|
uses: crazy-max/ghaction-import-gpg@v5
|
||||||
|
with:
|
||||||
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
passphrase: ${{ secrets.PASSPHRASE }}
|
||||||
|
|
||||||
|
- name: Install SSH key
|
||||||
|
uses: shimataro/ssh-key-action@v2
|
||||||
|
with:
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
name: id_rsa
|
||||||
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||||
|
if_key_exists: replace
|
||||||
|
|
||||||
|
- name: Build Package
|
||||||
|
run: ./main.sh
|
||||||
|
|
||||||
|
- name: Release Package
|
||||||
|
run: ./release.sh
|
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
/target
|
|
1312
Cargo.lock
generated
12
Cargo.toml
@ -1,12 +0,0 @@
|
|||||||
[package]
|
|
||||||
name = "pika-gnome-layouts"
|
|
||||||
version = "4.0.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
adw = { version = "0.7.0", package = "libadwaita", features = ["v1_5"] }
|
|
||||||
gtk = { version = "0.9.0", package = "gtk4", features = ["v4_14"] }
|
|
||||||
rust-i18n = "3.0.1"
|
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
glib-build-tools = "0.19.0"
|
|
24
LICENSE.md
@ -1,24 +0,0 @@
|
|||||||
MIT License (With DPKG packaging compatibility)
|
|
||||||
|
|
||||||
Copyright (c) 2024 PikaOS
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
Notes:
|
|
||||||
The files covered by this license are any files and directories in the root of this repository (including but not limited to: `main.sh`, `release.sh`, and `.github`), with the exception of the `debian` directory and its contents if `debian/copyright` exists, and declares any files or directories as a different LICENSE/COPYRIGHT.
|
|
42
Makefile
@ -1,42 +0,0 @@
|
|||||||
export PATH := "$(PWD):$(PATH)"
|
|
||||||
|
|
||||||
all:
|
|
||||||
true
|
|
||||||
|
|
||||||
install:
|
|
||||||
cargo fetch
|
|
||||||
cargo build --release
|
|
||||||
mkdir -p $(DESTDIR)/usr/bin/
|
|
||||||
mkdir -p $(DESTDIR)/usr/lib/pika/gnome-layouts
|
|
||||||
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
||||||
mkdir -p $(DESTDIR)/usr/share/applications
|
|
||||||
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
|
||||||
cp -vf target/release/pika-gnome-layouts $(DESTDIR)/usr/bin/
|
|
||||||
cp -vf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/gnome-layouts
|
|
||||||
cp -vf data/scripts/papirus-folders $(DESTDIR)/usr/lib/pika/gnome-layouts
|
|
||||||
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
||||||
cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
|
|
||||||
cp -vfr data/layout-scripts $(DESTDIR)/usr/lib/pika/gnome-layouts/
|
|
||||||
cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
|
|
||||||
chmod 755 $(DESTDIR)/usr/bin/pika-gnome-layouts
|
|
||||||
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/*.sh
|
|
||||||
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/layout-scripts/*.sh
|
|
||||||
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/papirus-folders
|
|
||||||
|
|
||||||
install_no_build_debug:
|
|
||||||
mkdir -p $(DESTDIR)/usr/bin/
|
|
||||||
mkdir -p $(DESTDIR)/usr/lib/pika/gnome-layouts
|
|
||||||
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
||||||
mkdir -p $(DESTDIR)/usr/share/applications
|
|
||||||
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
|
||||||
cp -vf target/debug/pika-gnome-layouts $(DESTDIR)/usr/bin/
|
|
||||||
cp -vf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/gnome-layouts
|
|
||||||
cp -vf data/scripts/papirus-folders $(DESTDIR)/usr/lib/pika/gnome-layouts
|
|
||||||
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
||||||
cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
|
|
||||||
cp -vfr data/layout-scripts $(DESTDIR)/usr/lib/pika/gnome-layouts/
|
|
||||||
cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
|
|
||||||
chmod 755 $(DESTDIR)/usr/bin/pika-gnome-layouts
|
|
||||||
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/*.sh
|
|
||||||
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/layout-scripts/*.sh
|
|
||||||
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/papirus-folders
|
|
9
build.rs
@ -1,9 +0,0 @@
|
|||||||
// R1
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
glib_build_tools::compile_resources(
|
|
||||||
&["resources"],
|
|
||||||
"resources/resources.gresource.xml",
|
|
||||||
"resources.gresource",
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<schemalist>
|
|
||||||
<schema id="com.github.pikaos-linux.pikagnomelayouts" path="/com/github/pikaos-linux/pikagnomelayouts/">
|
|
||||||
<key name="window-width" type="i">
|
|
||||||
<default>700</default>
|
|
||||||
<summary>Default window width</summary>
|
|
||||||
</key>
|
|
||||||
<key name="window-height" type="i">
|
|
||||||
<default>500</default>
|
|
||||||
<summary>Default window height</summary>
|
|
||||||
</key>
|
|
||||||
<key name="is-maximized" type="b">
|
|
||||||
<default>false</default>
|
|
||||||
<summary>Default window maximized behaviour</summary>
|
|
||||||
</key>
|
|
||||||
<key type="i" name="layout-num">
|
|
||||||
<default>0</default>
|
|
||||||
<summary>What layout is selected.</summary>
|
|
||||||
<description>
|
|
||||||
What layout is selected.
|
|
||||||
</description>
|
|
||||||
</key>
|
|
||||||
</schema>
|
|
||||||
</schemalist>
|
|
@ -1,5 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
for ext in $(gnome-extensions list); do
|
|
||||||
gnome-extensions disable $ext;
|
|
||||||
done
|
|
||||||
/usr/lib/pika/gnome-layouts/enable-pika-default-gex.sh
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE policyconfig PUBLIC
|
|
||||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
|
||||||
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
|
|
||||||
<policyconfig>
|
|
||||||
|
|
||||||
<action id="com.github.pikaos-linux.pikagnomelayouts.papirus">
|
|
||||||
<message>Authentication is required to change papirus folders colors</message>
|
|
||||||
<icon_name>desktop</icon_name>
|
|
||||||
<defaults>
|
|
||||||
<allow_any>auth_admin</allow_any>
|
|
||||||
<allow_inactive>auth_admin</allow_inactive>
|
|
||||||
<allow_active>auth_admin</allow_active>
|
|
||||||
</defaults>
|
|
||||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/pika/gnome-layouts/papirus-folders</annotate>
|
|
||||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
|
||||||
</action>
|
|
||||||
|
|
||||||
</policyconfig>
|
|
@ -1,6 +0,0 @@
|
|||||||
/* Allow passwordless auth for com.github.pikaos-linux.pikagnomelayouts.papirus
|
|
||||||
polkit.addRule(function(action, subject) {
|
|
||||||
if (action.id == "com.github.pikaos-linux.pikagnomelayouts.papirus") {
|
|
||||||
return polkit.Result.YES;
|
|
||||||
}
|
|
||||||
});
|
|
@ -1,15 +0,0 @@
|
|||||||
#! /usr/bin/bash
|
|
||||||
|
|
||||||
# Enable extensions
|
|
||||||
#gnome-extensions enable custom-accent-colors@demiskp
|
|
||||||
#gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
|
||||||
# Set accent color settings
|
|
||||||
#dconf write /org/gnome/shell/extensions/custom-accent-colors/accent-color "'"$1"'"
|
|
||||||
#dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-flatpak true
|
|
||||||
#dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-gtk3 true
|
|
||||||
#dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-shell true
|
|
||||||
# Refresh Shell
|
|
||||||
#dconf write /org/gnome/shell/extensions/user-theme/name "''"
|
|
||||||
#dconf write /org/gnome/shell/extensions/user-theme/name "'Custom-Accent-Colors'"
|
|
||||||
|
|
||||||
dconf write /org/gnome/desktop/interface/accent-color "'"$1"'"
|
|
@ -1,7 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
gnome-extensions enable ubuntu-appindicators@ubuntu.com
|
|
||||||
gnome-extensions enable legacyschemeautoswitcher@joshimukul29.gmail.com
|
|
||||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
|
||||||
gnome-extensions enable custom-accent-colors@demiskp
|
|
||||||
gnome-extensions enable pop-shell@system76.com
|
|
18
debian/changelog
vendored
@ -1,21 +1,3 @@
|
|||||||
pika-gnome-layouts (4.1.0-100pika1) pika; urgency=low
|
|
||||||
|
|
||||||
* Use Gnome 47 colors instead
|
|
||||||
|
|
||||||
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
|
||||||
|
|
||||||
pika-gnome-layouts (4.0.0-100pika1) pika; urgency=low
|
|
||||||
|
|
||||||
* Port OS 4/Rust/GTK4/Libadwaita
|
|
||||||
|
|
||||||
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
|
||||||
|
|
||||||
pika-gnome-layouts (3.0-100pika2) pikauwu; urgency=low
|
|
||||||
|
|
||||||
* Refine UI
|
|
||||||
|
|
||||||
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
|
||||||
|
|
||||||
pika-gnome-layouts (3.0-99pika3) kinetic; urgency=low
|
pika-gnome-layouts (3.0-99pika3) kinetic; urgency=low
|
||||||
|
|
||||||
* Refine UI
|
* Refine UI
|
||||||
|
26
debian/control
vendored
@ -3,31 +3,23 @@ Section: misc
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Ward Nakchbandi <hotrod.master@hotmail.com>
|
Maintainer: Ward Nakchbandi <hotrod.master@hotmail.com>
|
||||||
Standards-Version: 4.6.1
|
Standards-Version: 4.6.1
|
||||||
Build-Depends:
|
Build-Depends: debhelper-compat (= 13)
|
||||||
debhelper-compat (= 13),
|
|
||||||
build-essential,
|
|
||||||
debhelper,
|
|
||||||
# cargo,
|
|
||||||
libadwaita-1-dev,
|
|
||||||
libgtk-4-dev,
|
|
||||||
desktop-file-utils,
|
|
||||||
make,
|
|
||||||
|
|
||||||
Package: pika-gnome-layouts
|
Package: pika-gnome-layouts
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: pika-welcome,
|
Depends: pika-welcome,
|
||||||
gnome-shell (>= 47~),
|
|
||||||
gnome-shell (<< 48~),
|
|
||||||
gnome-shell-extension-arc-menu,
|
gnome-shell-extension-arc-menu,
|
||||||
gnome-shell-extension-just-perfection,
|
gnome-shell-extension-just-perfection,
|
||||||
gnome-shell-extension-legacyschemeautoswitcher,
|
gnome-shell-extension-launch-new-instance,
|
||||||
|
gnome-shell-extension-places-menu,
|
||||||
|
gnome-shell-extension-user-theme,
|
||||||
|
gnome-shell-extension-window-list,
|
||||||
gnome-shell-extension-dash-to-panel,
|
gnome-shell-extension-dash-to-panel,
|
||||||
gnome-shell-extension-dashtodock,
|
gnome-shell-extension-ubuntu-dock,
|
||||||
gnome-shell-extension-desktop-icons-ng,
|
gnome-shell-extension-desktop-icons-ng,
|
||||||
gnome-shell-extension-appindicator,
|
gnome-shell-extension-appindicator,
|
||||||
gnome-shell-extension-pop-shell | pop-shell,
|
gnome-shell-extension-pika-darkmode,
|
||||||
gnome-shell-extensions,
|
|
||||||
dconf-cli,
|
dconf-cli,
|
||||||
${shlibs:Depends},
|
pika-theme,
|
||||||
Conflicts: gnome-shell-extension-custom-accent-colors
|
pika-settings
|
||||||
Description: PikaOS Gnome Desktop Layouts Selector
|
Description: PikaOS Gnome Desktop Layouts Selector
|
||||||
|
373
debian/copyright
vendored
@ -1,373 +0,0 @@
|
|||||||
Mozilla Public License Version 2.0
|
|
||||||
==================================
|
|
||||||
|
|
||||||
1. Definitions
|
|
||||||
--------------
|
|
||||||
|
|
||||||
1.1. "Contributor"
|
|
||||||
means each individual or legal entity that creates, contributes to
|
|
||||||
the creation of, or owns Covered Software.
|
|
||||||
|
|
||||||
1.2. "Contributor Version"
|
|
||||||
means the combination of the Contributions of others (if any) used
|
|
||||||
by a Contributor and that particular Contributor's Contribution.
|
|
||||||
|
|
||||||
1.3. "Contribution"
|
|
||||||
means Covered Software of a particular Contributor.
|
|
||||||
|
|
||||||
1.4. "Covered Software"
|
|
||||||
means Source Code Form to which the initial Contributor has attached
|
|
||||||
the notice in Exhibit A, the Executable Form of such Source Code
|
|
||||||
Form, and Modifications of such Source Code Form, in each case
|
|
||||||
including portions thereof.
|
|
||||||
|
|
||||||
1.5. "Incompatible With Secondary Licenses"
|
|
||||||
means
|
|
||||||
|
|
||||||
(a) that the initial Contributor has attached the notice described
|
|
||||||
in Exhibit B to the Covered Software; or
|
|
||||||
|
|
||||||
(b) that the Covered Software was made available under the terms of
|
|
||||||
version 1.1 or earlier of the License, but not also under the
|
|
||||||
terms of a Secondary License.
|
|
||||||
|
|
||||||
1.6. "Executable Form"
|
|
||||||
means any form of the work other than Source Code Form.
|
|
||||||
|
|
||||||
1.7. "Larger Work"
|
|
||||||
means a work that combines Covered Software with other material, in
|
|
||||||
a separate file or files, that is not Covered Software.
|
|
||||||
|
|
||||||
1.8. "License"
|
|
||||||
means this document.
|
|
||||||
|
|
||||||
1.9. "Licensable"
|
|
||||||
means having the right to grant, to the maximum extent possible,
|
|
||||||
whether at the time of the initial grant or subsequently, any and
|
|
||||||
all of the rights conveyed by this License.
|
|
||||||
|
|
||||||
1.10. "Modifications"
|
|
||||||
means any of the following:
|
|
||||||
|
|
||||||
(a) any file in Source Code Form that results from an addition to,
|
|
||||||
deletion from, or modification of the contents of Covered
|
|
||||||
Software; or
|
|
||||||
|
|
||||||
(b) any new file in Source Code Form that contains any Covered
|
|
||||||
Software.
|
|
||||||
|
|
||||||
1.11. "Patent Claims" of a Contributor
|
|
||||||
means any patent claim(s), including without limitation, method,
|
|
||||||
process, and apparatus claims, in any patent Licensable by such
|
|
||||||
Contributor that would be infringed, but for the grant of the
|
|
||||||
License, by the making, using, selling, offering for sale, having
|
|
||||||
made, import, or transfer of either its Contributions or its
|
|
||||||
Contributor Version.
|
|
||||||
|
|
||||||
1.12. "Secondary License"
|
|
||||||
means either the GNU General Public License, Version 2.0, the GNU
|
|
||||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
||||||
Public License, Version 3.0, or any later versions of those
|
|
||||||
licenses.
|
|
||||||
|
|
||||||
1.13. "Source Code Form"
|
|
||||||
means the form of the work preferred for making modifications.
|
|
||||||
|
|
||||||
1.14. "You" (or "Your")
|
|
||||||
means an individual or a legal entity exercising rights under this
|
|
||||||
License. For legal entities, "You" includes any entity that
|
|
||||||
controls, is controlled by, or is under common control with You. For
|
|
||||||
purposes of this definition, "control" means (a) the power, direct
|
|
||||||
or indirect, to cause the direction or management of such entity,
|
|
||||||
whether by contract or otherwise, or (b) ownership of more than
|
|
||||||
fifty percent (50%) of the outstanding shares or beneficial
|
|
||||||
ownership of such entity.
|
|
||||||
|
|
||||||
2. License Grants and Conditions
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
2.1. Grants
|
|
||||||
|
|
||||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
||||||
non-exclusive license:
|
|
||||||
|
|
||||||
(a) under intellectual property rights (other than patent or trademark)
|
|
||||||
Licensable by such Contributor to use, reproduce, make available,
|
|
||||||
modify, display, perform, distribute, and otherwise exploit its
|
|
||||||
Contributions, either on an unmodified basis, with Modifications, or
|
|
||||||
as part of a Larger Work; and
|
|
||||||
|
|
||||||
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
||||||
for sale, have made, import, and otherwise transfer either its
|
|
||||||
Contributions or its Contributor Version.
|
|
||||||
|
|
||||||
2.2. Effective Date
|
|
||||||
|
|
||||||
The licenses granted in Section 2.1 with respect to any Contribution
|
|
||||||
become effective for each Contribution on the date the Contributor first
|
|
||||||
distributes such Contribution.
|
|
||||||
|
|
||||||
2.3. Limitations on Grant Scope
|
|
||||||
|
|
||||||
The licenses granted in this Section 2 are the only rights granted under
|
|
||||||
this License. No additional rights or licenses will be implied from the
|
|
||||||
distribution or licensing of Covered Software under this License.
|
|
||||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
||||||
Contributor:
|
|
||||||
|
|
||||||
(a) for any code that a Contributor has removed from Covered Software;
|
|
||||||
or
|
|
||||||
|
|
||||||
(b) for infringements caused by: (i) Your and any other third party's
|
|
||||||
modifications of Covered Software, or (ii) the combination of its
|
|
||||||
Contributions with other software (except as part of its Contributor
|
|
||||||
Version); or
|
|
||||||
|
|
||||||
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
||||||
its Contributions.
|
|
||||||
|
|
||||||
This License does not grant any rights in the trademarks, service marks,
|
|
||||||
or logos of any Contributor (except as may be necessary to comply with
|
|
||||||
the notice requirements in Section 3.4).
|
|
||||||
|
|
||||||
2.4. Subsequent Licenses
|
|
||||||
|
|
||||||
No Contributor makes additional grants as a result of Your choice to
|
|
||||||
distribute the Covered Software under a subsequent version of this
|
|
||||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
||||||
permitted under the terms of Section 3.3).
|
|
||||||
|
|
||||||
2.5. Representation
|
|
||||||
|
|
||||||
Each Contributor represents that the Contributor believes its
|
|
||||||
Contributions are its original creation(s) or it has sufficient rights
|
|
||||||
to grant the rights to its Contributions conveyed by this License.
|
|
||||||
|
|
||||||
2.6. Fair Use
|
|
||||||
|
|
||||||
This License is not intended to limit any rights You have under
|
|
||||||
applicable copyright doctrines of fair use, fair dealing, or other
|
|
||||||
equivalents.
|
|
||||||
|
|
||||||
2.7. Conditions
|
|
||||||
|
|
||||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
||||||
in Section 2.1.
|
|
||||||
|
|
||||||
3. Responsibilities
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
3.1. Distribution of Source Form
|
|
||||||
|
|
||||||
All distribution of Covered Software in Source Code Form, including any
|
|
||||||
Modifications that You create or to which You contribute, must be under
|
|
||||||
the terms of this License. You must inform recipients that the Source
|
|
||||||
Code Form of the Covered Software is governed by the terms of this
|
|
||||||
License, and how they can obtain a copy of this License. You may not
|
|
||||||
attempt to alter or restrict the recipients' rights in the Source Code
|
|
||||||
Form.
|
|
||||||
|
|
||||||
3.2. Distribution of Executable Form
|
|
||||||
|
|
||||||
If You distribute Covered Software in Executable Form then:
|
|
||||||
|
|
||||||
(a) such Covered Software must also be made available in Source Code
|
|
||||||
Form, as described in Section 3.1, and You must inform recipients of
|
|
||||||
the Executable Form how they can obtain a copy of such Source Code
|
|
||||||
Form by reasonable means in a timely manner, at a charge no more
|
|
||||||
than the cost of distribution to the recipient; and
|
|
||||||
|
|
||||||
(b) You may distribute such Executable Form under the terms of this
|
|
||||||
License, or sublicense it under different terms, provided that the
|
|
||||||
license for the Executable Form does not attempt to limit or alter
|
|
||||||
the recipients' rights in the Source Code Form under this License.
|
|
||||||
|
|
||||||
3.3. Distribution of a Larger Work
|
|
||||||
|
|
||||||
You may create and distribute a Larger Work under terms of Your choice,
|
|
||||||
provided that You also comply with the requirements of this License for
|
|
||||||
the Covered Software. If the Larger Work is a combination of Covered
|
|
||||||
Software with a work governed by one or more Secondary Licenses, and the
|
|
||||||
Covered Software is not Incompatible With Secondary Licenses, this
|
|
||||||
License permits You to additionally distribute such Covered Software
|
|
||||||
under the terms of such Secondary License(s), so that the recipient of
|
|
||||||
the Larger Work may, at their option, further distribute the Covered
|
|
||||||
Software under the terms of either this License or such Secondary
|
|
||||||
License(s).
|
|
||||||
|
|
||||||
3.4. Notices
|
|
||||||
|
|
||||||
You may not remove or alter the substance of any license notices
|
|
||||||
(including copyright notices, patent notices, disclaimers of warranty,
|
|
||||||
or limitations of liability) contained within the Source Code Form of
|
|
||||||
the Covered Software, except that You may alter any license notices to
|
|
||||||
the extent required to remedy known factual inaccuracies.
|
|
||||||
|
|
||||||
3.5. Application of Additional Terms
|
|
||||||
|
|
||||||
You may choose to offer, and to charge a fee for, warranty, support,
|
|
||||||
indemnity or liability obligations to one or more recipients of Covered
|
|
||||||
Software. However, You may do so only on Your own behalf, and not on
|
|
||||||
behalf of any Contributor. You must make it absolutely clear that any
|
|
||||||
such warranty, support, indemnity, or liability obligation is offered by
|
|
||||||
You alone, and You hereby agree to indemnify every Contributor for any
|
|
||||||
liability incurred by such Contributor as a result of warranty, support,
|
|
||||||
indemnity or liability terms You offer. You may include additional
|
|
||||||
disclaimers of warranty and limitations of liability specific to any
|
|
||||||
jurisdiction.
|
|
||||||
|
|
||||||
4. Inability to Comply Due to Statute or Regulation
|
|
||||||
---------------------------------------------------
|
|
||||||
|
|
||||||
If it is impossible for You to comply with any of the terms of this
|
|
||||||
License with respect to some or all of the Covered Software due to
|
|
||||||
statute, judicial order, or regulation then You must: (a) comply with
|
|
||||||
the terms of this License to the maximum extent possible; and (b)
|
|
||||||
describe the limitations and the code they affect. Such description must
|
|
||||||
be placed in a text file included with all distributions of the Covered
|
|
||||||
Software under this License. Except to the extent prohibited by statute
|
|
||||||
or regulation, such description must be sufficiently detailed for a
|
|
||||||
recipient of ordinary skill to be able to understand it.
|
|
||||||
|
|
||||||
5. Termination
|
|
||||||
--------------
|
|
||||||
|
|
||||||
5.1. The rights granted under this License will terminate automatically
|
|
||||||
if You fail to comply with any of its terms. However, if You become
|
|
||||||
compliant, then the rights granted under this License from a particular
|
|
||||||
Contributor are reinstated (a) provisionally, unless and until such
|
|
||||||
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
||||||
ongoing basis, if such Contributor fails to notify You of the
|
|
||||||
non-compliance by some reasonable means prior to 60 days after You have
|
|
||||||
come back into compliance. Moreover, Your grants from a particular
|
|
||||||
Contributor are reinstated on an ongoing basis if such Contributor
|
|
||||||
notifies You of the non-compliance by some reasonable means, this is the
|
|
||||||
first time You have received notice of non-compliance with this License
|
|
||||||
from such Contributor, and You become compliant prior to 30 days after
|
|
||||||
Your receipt of the notice.
|
|
||||||
|
|
||||||
5.2. If You initiate litigation against any entity by asserting a patent
|
|
||||||
infringement claim (excluding declaratory judgment actions,
|
|
||||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
||||||
directly or indirectly infringes any patent, then the rights granted to
|
|
||||||
You by any and all Contributors for the Covered Software under Section
|
|
||||||
2.1 of this License shall terminate.
|
|
||||||
|
|
||||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
||||||
end user license agreements (excluding distributors and resellers) which
|
|
||||||
have been validly granted by You or Your distributors under this License
|
|
||||||
prior to termination shall survive termination.
|
|
||||||
|
|
||||||
************************************************************************
|
|
||||||
* *
|
|
||||||
* 6. Disclaimer of Warranty *
|
|
||||||
* ------------------------- *
|
|
||||||
* *
|
|
||||||
* Covered Software is provided under this License on an "as is" *
|
|
||||||
* basis, without warranty of any kind, either expressed, implied, or *
|
|
||||||
* statutory, including, without limitation, warranties that the *
|
|
||||||
* Covered Software is free of defects, merchantable, fit for a *
|
|
||||||
* particular purpose or non-infringing. The entire risk as to the *
|
|
||||||
* quality and performance of the Covered Software is with You. *
|
|
||||||
* Should any Covered Software prove defective in any respect, You *
|
|
||||||
* (not any Contributor) assume the cost of any necessary servicing, *
|
|
||||||
* repair, or correction. This disclaimer of warranty constitutes an *
|
|
||||||
* essential part of this License. No use of any Covered Software is *
|
|
||||||
* authorized under this License except under this disclaimer. *
|
|
||||||
* *
|
|
||||||
************************************************************************
|
|
||||||
|
|
||||||
************************************************************************
|
|
||||||
* *
|
|
||||||
* 7. Limitation of Liability *
|
|
||||||
* -------------------------- *
|
|
||||||
* *
|
|
||||||
* Under no circumstances and under no legal theory, whether tort *
|
|
||||||
* (including negligence), contract, or otherwise, shall any *
|
|
||||||
* Contributor, or anyone who distributes Covered Software as *
|
|
||||||
* permitted above, be liable to You for any direct, indirect, *
|
|
||||||
* special, incidental, or consequential damages of any character *
|
|
||||||
* including, without limitation, damages for lost profits, loss of *
|
|
||||||
* goodwill, work stoppage, computer failure or malfunction, or any *
|
|
||||||
* and all other commercial damages or losses, even if such party *
|
|
||||||
* shall have been informed of the possibility of such damages. This *
|
|
||||||
* limitation of liability shall not apply to liability for death or *
|
|
||||||
* personal injury resulting from such party's negligence to the *
|
|
||||||
* extent applicable law prohibits such limitation. Some *
|
|
||||||
* jurisdictions do not allow the exclusion or limitation of *
|
|
||||||
* incidental or consequential damages, so this exclusion and *
|
|
||||||
* limitation may not apply to You. *
|
|
||||||
* *
|
|
||||||
************************************************************************
|
|
||||||
|
|
||||||
8. Litigation
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Any litigation relating to this License may be brought only in the
|
|
||||||
courts of a jurisdiction where the defendant maintains its principal
|
|
||||||
place of business and such litigation shall be governed by laws of that
|
|
||||||
jurisdiction, without reference to its conflict-of-law provisions.
|
|
||||||
Nothing in this Section shall prevent a party's ability to bring
|
|
||||||
cross-claims or counter-claims.
|
|
||||||
|
|
||||||
9. Miscellaneous
|
|
||||||
----------------
|
|
||||||
|
|
||||||
This License represents the complete agreement concerning the subject
|
|
||||||
matter hereof. If any provision of this License is held to be
|
|
||||||
unenforceable, such provision shall be reformed only to the extent
|
|
||||||
necessary to make it enforceable. Any law or regulation which provides
|
|
||||||
that the language of a contract shall be construed against the drafter
|
|
||||||
shall not be used to construe this License against a Contributor.
|
|
||||||
|
|
||||||
10. Versions of the License
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
10.1. New Versions
|
|
||||||
|
|
||||||
Mozilla Foundation is the license steward. Except as provided in Section
|
|
||||||
10.3, no one other than the license steward has the right to modify or
|
|
||||||
publish new versions of this License. Each version will be given a
|
|
||||||
distinguishing version number.
|
|
||||||
|
|
||||||
10.2. Effect of New Versions
|
|
||||||
|
|
||||||
You may distribute the Covered Software under the terms of the version
|
|
||||||
of the License under which You originally received the Covered Software,
|
|
||||||
or under the terms of any subsequent version published by the license
|
|
||||||
steward.
|
|
||||||
|
|
||||||
10.3. Modified Versions
|
|
||||||
|
|
||||||
If you create software not governed by this License, and you want to
|
|
||||||
create a new license for such software, you may create and use a
|
|
||||||
modified version of this License if you rename the license and remove
|
|
||||||
any references to the name of the license steward (except to note that
|
|
||||||
such modified license differs from this License).
|
|
||||||
|
|
||||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
||||||
Licenses
|
|
||||||
|
|
||||||
If You choose to distribute Source Code Form that is Incompatible With
|
|
||||||
Secondary Licenses under the terms of this version of the License, the
|
|
||||||
notice described in Exhibit B of this License must be attached.
|
|
||||||
|
|
||||||
Exhibit A - Source Code Form License Notice
|
|
||||||
-------------------------------------------
|
|
||||||
|
|
||||||
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 http://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
If it is not possible or desirable to put the notice in a particular
|
|
||||||
file, then You may include the notice in a location (such as a LICENSE
|
|
||||||
file in a relevant directory) where a recipient would be likely to look
|
|
||||||
for such a notice.
|
|
||||||
|
|
||||||
You may add additional accurate notices of copyright ownership.
|
|
||||||
|
|
||||||
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
||||||
---------------------------------------------------------
|
|
||||||
|
|
||||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
||||||
defined by the Mozilla Public License, v. 2.0.
|
|
10
debian/pika-gnome-layouts.postinst
vendored
@ -1,10 +1,2 @@
|
|||||||
#!/bin/sh
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
||||||
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
update-mime-database /usr/share/mime
|
|
||||||
update-desktop-database
|
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
||||||
|
|
||||||
|
|
||||||
|
10
debian/pika-gnome-layouts.postrm
vendored
@ -1,10 +1,2 @@
|
|||||||
#!/bin/sh
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
||||||
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
update-mime-database /usr/share/mime
|
|
||||||
update-desktop-database
|
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
||||||
|
|
||||||
|
|
||||||
|
42
debian/rules
vendored
@ -1,44 +1,4 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
## See debhelper(7) (uncomment to enable).
|
|
||||||
## Output every command that modifies files on the build system.
|
|
||||||
export DH_VERBOSE = 1
|
|
||||||
|
|
||||||
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
|
|
||||||
export PATH := $(PATH):/root/.cargo/bin
|
|
||||||
|
|
||||||
override_dh_prep:
|
|
||||||
# amd64 build prep
|
|
||||||
ifeq (amd64-v3,$(PIKA_BUILD_ARCH))
|
|
||||||
# Does not support LTO due to dylib-lto
|
|
||||||
#export RUSTFLAGS = -C target-cpu=x86-64-v3 -C lto=fat -C embed-bitcode -C codegen-units=1 -C opt-level=3 -Zdylib-lto
|
|
||||||
export RUSTFLAGS = -C target-cpu=x86-64-v3 -C opt-level=3
|
|
||||||
endif
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh ${@}
|
||||||
|
|
||||||
override_dh_auto_build:
|
|
||||||
/root/.cargo/bin/cargo fetch
|
|
||||||
/root/.cargo/bin/cargo build --release
|
|
||||||
|
|
||||||
override_dh_auto_install:
|
|
||||||
mkdir -p debian/tmp/usr/bin/
|
|
||||||
mkdir -p debian/tmp/usr/lib/pika/gnome-layouts
|
|
||||||
mkdir -p debian/tmp/usr/share/glib-2.0/schemas/
|
|
||||||
mkdir -p debian/tmp/usr/share/applications
|
|
||||||
mkdir -p debian/tmp/usr/share/icons/hicolor/scalable/apps
|
|
||||||
cp -vf target/release/pika-gnome-layouts debian/tmp/usr/bin/
|
|
||||||
cp -vf data/scripts/*.sh debian/tmp/usr/lib/pika/gnome-layouts
|
|
||||||
cp -vf data/scripts/papirus-folders debian/tmp/usr/lib/pika/gnome-layouts
|
|
||||||
cp -vf data/*.gschema.xml debian/tmp/usr/share/glib-2.0/schemas/
|
|
||||||
cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop debian/tmp/usr/share/applications/
|
|
||||||
cp -vfr data/layout-scripts debian/tmp/usr/lib/pika/gnome-layouts/
|
|
||||||
cp -vfr data/polkit-1 debian/tmp/usr/share/
|
|
||||||
chmod 755 debian/tmp/usr/bin/pika-gnome-layouts
|
|
||||||
chmod 755 debian/tmp/usr/lib/pika/gnome-layouts/*.sh
|
|
||||||
chmod 755 debian/tmp/usr/lib/pika/gnome-layouts/layout-scripts/*.sh
|
|
||||||
chmod 755 debian/tmp/usr/lib/pika/gnome-layouts/papirus-folders
|
|
||||||
|
|
||||||
override_dh_install:
|
|
||||||
dh_install
|
|
||||||
|
2
debian/source/format
vendored
@ -1 +1 @@
|
|||||||
3.0 (quilt)
|
3.0 (native)
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"application_name": "PikaOS Gnome Appearance",
|
|
||||||
"developer_name": "Cosmo",
|
|
||||||
"eleven_label": "Eleven",
|
|
||||||
"gnome2_label": "GNOME 2",
|
|
||||||
"gnome_label": "GNOME",
|
|
||||||
"pineapple_label": "PineApple",
|
|
||||||
"traditional_label": "Traditional",
|
|
||||||
"unity_label": "Unity",
|
|
||||||
"eleven_tooltip_text": "* A Bottom Taskbar with Centered Icons.\n* A More Modern Application Menu Binded to The \"Super Key\".\n* Desktop Icons.\n* Full Window Controls on The Right Side of The Window.\n* \"Activities\" Button for Easy Workspace Management.",
|
|
||||||
"gnome2_tooltip_text": "The Old Gnome/Mate Experience.",
|
|
||||||
"gnome_tooltip_text": "The Stock GNOME Experience.",
|
|
||||||
"pineapple_tooltip_text": "* A Bottom Dock and a Top Panel.\n* A Fullscreen Application grid.\n* Desktop Icons.\n* Full Window Controls on The Left Side of The Window.",
|
|
||||||
"traditional_tooltip_text": "* A Bottom Taskbar with Icons on The Left.\n* A Traditional Application Menu Binded to The \"Super Key\".\n* Desktop Icons.\n* Full Window Controls on The Right Side of The Window.",
|
|
||||||
"unity_tooltip_text": "* A Left-side Dock and a Top Panel.\n* Desktop Icons.\n* Full Window Controls on The Left Side of The Window.",
|
|
||||||
"blue_tooltip_text": "Blue",
|
|
||||||
"green_tooltip_text": "Green",
|
|
||||||
"yellow_tooltip_text": "Yellow",
|
|
||||||
"orange_tooltip_text": "Orange",
|
|
||||||
"red_tooltip_text": "Red",
|
|
||||||
"pink_tooltip_text": "Pink",
|
|
||||||
"purple_tooltip_text": "Purple",
|
|
||||||
"teal_tooltip_text": "Teal",
|
|
||||||
"slate_tooltip_text": "Slate/Gray",
|
|
||||||
"brown_tooltip_text": "Brown"
|
|
||||||
}
|
|
28
main.sh
@ -1,26 +1,20 @@
|
|||||||
#! /bin/bash
|
# Add dependent repositories
|
||||||
|
wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add -
|
||||||
set -e
|
add-apt-repository https://ppa.pika-os.com
|
||||||
|
add-apt-repository ppa:pikaos/pika
|
||||||
VERSION="4.1.0"
|
add-apt-repository ppa:kubuntu-ppa/backports
|
||||||
|
|
||||||
source ./pika-build-config.sh
|
|
||||||
|
|
||||||
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
||||||
|
|
||||||
# Clone Upstream
|
# Clone Upstream
|
||||||
mkdir -p pika-gnome-layouts
|
mkdir -p ./pika-gnome-layouts
|
||||||
cp -rvf ./* ./pika-gnome-layouts/ || true
|
cp -rvf ./debian ./pika-gnome-layouts/
|
||||||
cd ./pika-gnome-layouts/
|
cp -rvf ./usr ./pika-gnome-layouts/
|
||||||
|
cd ./pika-gnome-layouts
|
||||||
|
|
||||||
# Get build deps
|
# Get build deps
|
||||||
apt-get build-dep ./ -y
|
apt-get build-dep ./ -y
|
||||||
apt-get install curl -y
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
|
|
||||||
|
|
||||||
# Build package
|
# Build package
|
||||||
LOGNAME=root dh_make --createorig -y -l -p pika-gnome-layouts_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
dh_make --createorig
|
||||||
dpkg-buildpackage --no-sign
|
dpkg-buildpackage
|
||||||
|
|
||||||
# Move the debs to output
|
# Move the debs to output
|
||||||
cd ../
|
cd ../
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
export PIKA_BUILD_ARCH="amd64-v3"
|
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
|
||||||
export DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
|
|
||||||
export DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
|
|
||||||
export DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
|
|
||||||
export DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
|
|
||||||
export DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
|
|
||||||
export DEB_BUILD_OPTIONS="nocheck notest terse"
|
|
||||||
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
|
|
@ -1,5 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
export PIKA_BUILD_ARCH="i386"
|
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
|
||||||
export DEB_BUILD_OPTIONS="nocheck notest terse"
|
|
||||||
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
|
|
16
release.sh
@ -1,2 +1,14 @@
|
|||||||
# send debs to server
|
# Sign the packages
|
||||||
rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/cockatiel-incoming/
|
dpkg-sig --sign builder ./output/pika-gnome-layouts*.deb
|
||||||
|
|
||||||
|
# Pull down existing ppa repo db files etc
|
||||||
|
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
||||||
|
|
||||||
|
# Remove our existing package from the repo
|
||||||
|
reprepro -V --basedir ./output/repo/ removefilter kinetic 'Package (% pika-gnome-layouts*)'
|
||||||
|
|
||||||
|
# Add the new package to the repo
|
||||||
|
reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/pika-gnome-layouts*.deb
|
||||||
|
|
||||||
|
# Push the updated ppa repo to the server
|
||||||
|
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<gresources>
|
|
||||||
<gresource prefix="/com/github/pikaos-linux/pikagnomelayouts/">
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/blue.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/teal.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/green.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/orange.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/pink.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/purple.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/red.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/yellow.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/slate.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">previews/gnome.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">previews/gnome2.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">previews/pineapple.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">previews/unity.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">previews/traditional.svg</file>
|
|
||||||
<file compressed="true" preprocess="xml-stripblanks">previews/eleven.svg</file>
|
|
||||||
</gresource>
|
|
||||||
</gresources>
|
|
@ -1,80 +0,0 @@
|
|||||||
use gtk::{gio as gio, glib as glib, prelude::*};
|
|
||||||
use crate::{content, config::{APP_ID, APP_ICON, APP_GITHUB, VERSION}};
|
|
||||||
|
|
||||||
pub fn build_ui(app: &adw::Application) {
|
|
||||||
gtk::glib::set_prgname(Some(t!("application_name").to_string()));
|
|
||||||
glib::set_application_name(&t!("application_name").to_string());
|
|
||||||
let glib_settings = gio::Settings::new(APP_ID);
|
|
||||||
|
|
||||||
let window_headerbar = adw::HeaderBar::builder()
|
|
||||||
.title_widget(
|
|
||||||
&adw::WindowTitle::builder()
|
|
||||||
.title(t!("application_name"))
|
|
||||||
.build(),
|
|
||||||
)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let content_stack = gtk::Stack::builder()
|
|
||||||
.build();
|
|
||||||
|
|
||||||
content::content(&content_stack, &glib_settings);
|
|
||||||
|
|
||||||
let window_toolbar = adw::ToolbarView::builder().content(&content_stack).build();
|
|
||||||
|
|
||||||
let window = adw::ApplicationWindow::builder()
|
|
||||||
.title(t!("application_name"))
|
|
||||||
.application(app)
|
|
||||||
.content(&window_toolbar)
|
|
||||||
.icon_name(APP_ICON)
|
|
||||||
.default_width(glib_settings.int("window-width"))
|
|
||||||
.default_height(glib_settings.int("window-height"))
|
|
||||||
.width_request(700)
|
|
||||||
.height_request(500)
|
|
||||||
.startup_id(APP_ID)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
if glib_settings.boolean("is-maximized") == true {
|
|
||||||
window.maximize()
|
|
||||||
}
|
|
||||||
|
|
||||||
window_toolbar.add_top_bar(&window_headerbar);
|
|
||||||
|
|
||||||
window.connect_close_request(move |window| {
|
|
||||||
if let Some(application) = window.application() {
|
|
||||||
save_window_size(&window, &glib_settings);
|
|
||||||
application.remove_window(window);
|
|
||||||
}
|
|
||||||
glib::Propagation::Proceed
|
|
||||||
});
|
|
||||||
|
|
||||||
let credits_button = gtk::Button::builder()
|
|
||||||
.icon_name("dialog-information-symbolic")
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let credits_window = adw::AboutWindow::builder()
|
|
||||||
.application_icon(APP_ICON)
|
|
||||||
.application_name(t!("application_name"))
|
|
||||||
.transient_for(&window)
|
|
||||||
.version(VERSION)
|
|
||||||
.hide_on_close(true)
|
|
||||||
.developer_name(t!("developer_name"))
|
|
||||||
.license_type(gtk::License::Mpl20)
|
|
||||||
.issue_url(APP_GITHUB.to_owned() + "/issues")
|
|
||||||
.build();
|
|
||||||
|
|
||||||
window_headerbar.pack_end(&credits_button);
|
|
||||||
credits_button.connect_clicked(
|
|
||||||
move |_|
|
|
||||||
credits_window.present()
|
|
||||||
);
|
|
||||||
|
|
||||||
window.present();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn save_window_size(window: &adw::ApplicationWindow, glib_settings: &gio::Settings) {
|
|
||||||
let size = window.default_size();
|
|
||||||
|
|
||||||
let _ = glib_settings.set_int("window-width", size.0);
|
|
||||||
let _ = glib_settings.set_int("window-height", size.1);
|
|
||||||
let _ = glib_settings.set_boolean("is-maximized", window.is_maximized());
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
pub const APP_ID: &str = "com.github.pikaos-linux.pikagnomelayouts";
|
|
||||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
||||||
pub const APP_ICON: &str = "desktop";
|
|
||||||
pub const APP_GITHUB: &str = "https://git.pika-os.com/gnome-packages/pika-gnome-layouts";
|
|
@ -1,171 +0,0 @@
|
|||||||
use gtk::{gio as gio, glib as glib, prelude::*};
|
|
||||||
use glib::clone;
|
|
||||||
|
|
||||||
struct DesktopLayout {
|
|
||||||
name: String,
|
|
||||||
id: i32,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn content(
|
|
||||||
content_stack: >k::Stack,
|
|
||||||
glib_settings: &gio::Settings
|
|
||||||
) {
|
|
||||||
let content_box = gtk::Box::builder()
|
|
||||||
.orientation(gtk::Orientation::Vertical)
|
|
||||||
.vexpand(true)
|
|
||||||
.hexpand(true)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let desktop_layouts = [
|
|
||||||
&DesktopLayout {
|
|
||||||
name: "gnome".to_string(),
|
|
||||||
id: 0
|
|
||||||
},
|
|
||||||
&DesktopLayout {
|
|
||||||
name: "traditional".to_string(),
|
|
||||||
id: 1
|
|
||||||
},
|
|
||||||
&DesktopLayout {
|
|
||||||
name: "eleven".to_string(),
|
|
||||||
id: 2
|
|
||||||
},
|
|
||||||
&DesktopLayout {
|
|
||||||
name: "pineapple".to_string(),
|
|
||||||
id: 3
|
|
||||||
},
|
|
||||||
&DesktopLayout {
|
|
||||||
name: "gnome2".to_string(),
|
|
||||||
id: 4
|
|
||||||
},
|
|
||||||
&DesktopLayout {
|
|
||||||
name: "unity".to_string(),
|
|
||||||
id: 5
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
let accent_colors = ["blue", "teal", "green", "yellow", "orange", "red", "pink", "purple", "slate"];
|
|
||||||
|
|
||||||
let null_checkbutton = gtk::CheckButton::builder()
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let layout_grid = gtk::Grid::builder()
|
|
||||||
.vexpand(true)
|
|
||||||
.hexpand(true)
|
|
||||||
.row_homogeneous(true)
|
|
||||||
.column_homogeneous(true)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let accent_colors_box = gtk::Box::builder()
|
|
||||||
.orientation(gtk::Orientation::Horizontal)
|
|
||||||
.homogeneous(true)
|
|
||||||
.halign(gtk::Align::Center)
|
|
||||||
.hexpand(true)
|
|
||||||
.margin_top(5)
|
|
||||||
.margin_bottom(5)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let previews_size_group = gtk::SizeGroup::new(gtk::SizeGroupMode::Both);
|
|
||||||
|
|
||||||
let mut last_widget: (Option<gtk::Box>, i32) = (None, 0);
|
|
||||||
|
|
||||||
for layout in desktop_layouts {
|
|
||||||
let layout_name = layout.name.clone();
|
|
||||||
let layout_id = layout.id;
|
|
||||||
|
|
||||||
let layout_box = gtk::Box::builder()
|
|
||||||
.orientation(gtk::Orientation::Vertical)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let layout_preview = gtk::Image::builder()
|
|
||||||
.resource(format!("/com/github/pikaos-linux/pikagnomelayouts/previews/{}.svg", &layout_name))
|
|
||||||
.vexpand(true)
|
|
||||||
.hexpand(true)
|
|
||||||
.margin_start(5)
|
|
||||||
.margin_end(5)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let layout_checkbutton = gtk::CheckButton::builder()
|
|
||||||
.group(&null_checkbutton)
|
|
||||||
.halign(gtk::Align::Center)
|
|
||||||
.valign(gtk::Align::Start)
|
|
||||||
.active(glib_settings.int("layout-num") == layout_id)
|
|
||||||
.label(t!(format!("{}_label", &layout_name)))
|
|
||||||
.tooltip_text(t!(format!("{}_tooltip_text", &layout_name)))
|
|
||||||
.build();
|
|
||||||
|
|
||||||
previews_size_group.add_widget(&layout_preview);
|
|
||||||
|
|
||||||
layout_box.append(&layout_preview);
|
|
||||||
layout_box.append(&layout_checkbutton);
|
|
||||||
|
|
||||||
layout_checkbutton.connect_toggled(clone!(
|
|
||||||
#[weak]
|
|
||||||
glib_settings,
|
|
||||||
move |checkbutton| {
|
|
||||||
if checkbutton.is_active() {
|
|
||||||
let _ = std::process::Command::new(
|
|
||||||
format!("/usr/lib/pika/gnome-layouts/layout-scripts/{}.sh", &layout_name)
|
|
||||||
).spawn();
|
|
||||||
let _ = glib_settings.set_int("layout-num", layout_id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if last_widget.0.is_none() {
|
|
||||||
layout_grid.attach(&layout_box, 0, 0, 1, 1);
|
|
||||||
} else if last_widget.1 == 3 {
|
|
||||||
layout_grid.attach_next_to(&layout_box, Some(&last_widget.0.unwrap()), gtk::PositionType::Bottom, 1, 1)
|
|
||||||
} else if last_widget.1 > 3 {
|
|
||||||
layout_grid.attach_next_to(&layout_box, Some(&last_widget.0.unwrap()), gtk::PositionType::Left, 1, 1)
|
|
||||||
} else {
|
|
||||||
layout_grid.attach_next_to(&layout_box, Some(&last_widget.0.unwrap()), gtk::PositionType::Right, 1, 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
last_widget.0 = Some(layout_box);
|
|
||||||
last_widget.1 += 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
for color in accent_colors {
|
|
||||||
let color_image = gtk::Image::builder()
|
|
||||||
.resource(format!("/com/github/pikaos-linux/pikagnomelayouts/accent-color-icons/{}.svg", &color))
|
|
||||||
.width_request(30)
|
|
||||||
.height_request(30)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
let color_button = gtk::Button::builder()
|
|
||||||
.child(&color_image)
|
|
||||||
.tooltip_text(t!(format!("{}_tooltip_text", &color)))
|
|
||||||
.build();
|
|
||||||
color_button.add_css_class("flat");
|
|
||||||
|
|
||||||
accent_colors_box.append(&color_button);
|
|
||||||
|
|
||||||
color_button.connect_clicked(move |_|
|
|
||||||
{
|
|
||||||
let color_double = match color {
|
|
||||||
"purple" => ("purple","violet"),
|
|
||||||
"slate" => ("slate", "grey"),
|
|
||||||
_ => (color,color)
|
|
||||||
};
|
|
||||||
let _ = std::process::Command::new("/usr/lib/pika/gnome-layouts/dconf-accent.sh")
|
|
||||||
.arg(color_double.0)
|
|
||||||
.spawn();
|
|
||||||
let _ = std::process::Command::new("pkexec")
|
|
||||||
.arg("/usr/lib/pika/gnome-layouts/papirus-folders")
|
|
||||||
.arg("-u")
|
|
||||||
.arg("-C")
|
|
||||||
.arg(color_double.1)
|
|
||||||
.spawn();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
content_box.append(&layout_grid);
|
|
||||||
content_box.append(&accent_colors_box);
|
|
||||||
|
|
||||||
content_stack.add_named(
|
|
||||||
&content_box,
|
|
||||||
Some("content_page"),
|
|
||||||
);
|
|
||||||
}
|
|
49
src/main.rs
@ -1,49 +0,0 @@
|
|||||||
mod config;
|
|
||||||
mod build_ui;
|
|
||||||
mod content;
|
|
||||||
|
|
||||||
use std::env;
|
|
||||||
use gtk::{gio,prelude::*, glib as glib};
|
|
||||||
use config::APP_ID;
|
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate rust_i18n;
|
|
||||||
i18n!("locales", fallback = "en_US");
|
|
||||||
|
|
||||||
fn main() -> glib::ExitCode {
|
|
||||||
let current_locale = match env::var_os("LANG") {
|
|
||||||
Some(v) => v.into_string().unwrap().chars()
|
|
||||||
.take_while(|&ch| ch != '.')
|
|
||||||
.collect::<String>(),
|
|
||||||
None => panic!("$LANG is not set"),
|
|
||||||
};
|
|
||||||
rust_i18n::set_locale(¤t_locale);
|
|
||||||
|
|
||||||
let app = adw::Application::builder().application_id(APP_ID).build();
|
|
||||||
|
|
||||||
app.connect_startup(|app| {
|
|
||||||
load_gresource();
|
|
||||||
load_css();
|
|
||||||
app.connect_activate(build_ui::build_ui);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Run the application
|
|
||||||
app.run()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn load_gresource() {
|
|
||||||
gio::resources_register_include!("resources.gresource").expect("Failed to register resources.");
|
|
||||||
}
|
|
||||||
|
|
||||||
fn load_css() {
|
|
||||||
// Load the CSS file and add it to the provider
|
|
||||||
/*let provider = CssProvider::new();
|
|
||||||
provider.load_from_resource("/com/github/cosmicfusion/fedora-kernel-manager/css/style.css");
|
|
||||||
|
|
||||||
// Add the provider to the default screen
|
|
||||||
gtk::style_context_add_provider_for_display(
|
|
||||||
&Display::default().expect("Could not connect to a display."),
|
|
||||||
&provider,
|
|
||||||
gtk::STYLE_PROVIDER_PRIORITY_APPLICATION,
|
|
||||||
);*/
|
|
||||||
}
|
|
7
usr/bin/pika-gnome-layouts
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
if echo $XDG_SESSION_DESKTOP | grep -i ubuntu
|
||||||
|
then
|
||||||
|
python3 /usr/lib/pika/gnome-layouts/main.py
|
||||||
|
else
|
||||||
|
zenity --error --text="current session isn't gnome"
|
||||||
|
fi
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
10
usr/lib/pika/gnome-layouts/all.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
export ALL=True
|
||||||
|
|
||||||
|
for f in /etc/nobara/scripts/nobara-layouts/settings-scripts/*.sh; do
|
||||||
|
bash "$f" enable
|
||||||
|
done
|
||||||
|
|
||||||
|
export RELOG_NEEDED=1
|
||||||
|
|
||||||
|
/etc/nobara/scripts/nobara-layouts/reload.sh
|
29
usr/lib/pika/gnome-layouts/dconf-accent.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#! /usr/bin/bash
|
||||||
|
gnome-extensions enable pika-darkmode@pika.com
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/manual-time-source true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-button-placement "'none'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/time-source "'ondemand'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/enabled true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/enabled true
|
||||||
|
dconf write /org/pika/layouts/pika-theme 1
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunrise "'pika-gnome-theme'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunset "'pika-gnome-theme dark'"
|
||||||
|
if [[ $1 == Blue ]]
|
||||||
|
then
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Orchis-Light'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Orchis-Dark'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Orchis-Light'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Orchis-Dark'"
|
||||||
|
else
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Orchis-$1-Light'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Orchis-$1-Dark'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Orchis-$1-Light'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Orchis-$1-Dark'"
|
||||||
|
fi
|
||||||
|
if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
|
||||||
|
then
|
||||||
|
pika-gnome-theme dark
|
||||||
|
else
|
||||||
|
pika-gnome-theme
|
||||||
|
fi
|
@ -1,12 +1,14 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# Reset everything
|
# Reset everything
|
||||||
|
|
||||||
|
#
|
||||||
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||||
gnome-extensions reset dash-to-dock@micxgx.gmail.com || echo
|
gnome-extensions reset pika-dock@pika.com || echo
|
||||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
@ -1,12 +1,14 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# Reset everything
|
# Reset everything
|
||||||
|
|
||||||
|
#
|
||||||
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||||
gnome-extensions reset dash-to-dock@micxgx.gmail.com || echo
|
gnome-extensions reset pika-dock@pika.com || echo
|
||||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
@ -30,7 +32,7 @@ dconf write /org/gnome/shell/extensions/dash-to-dock/dock-position "'BOTTOM'"
|
|||||||
dconf write /org/gnome/shell/extensions/just-perfection/clock-menu-position 1
|
dconf write /org/gnome/shell/extensions/just-perfection/clock-menu-position 1
|
||||||
|
|
||||||
# Enable Dock
|
# Enable Dock
|
||||||
gnome-extensions enable dash-to-dock@micxgx.gmail.com
|
gnome-extensions enable pika-dock@pika.com
|
||||||
# Enable just perfection
|
# Enable just perfection
|
||||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||||
# Enable Desktop Icons
|
# Enable Desktop Icons
|
7
usr/lib/pika/gnome-layouts/layout-scripts/reset.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
for ext in $(gnome-extensions list); do
|
||||||
|
gnome-extensions reset $ext;
|
||||||
|
gnome-extensions disable $ext;
|
||||||
|
done
|
||||||
|
gnome-extensions enable pika-darkmode@pika.com
|
||||||
|
gnome-extensions enable ubuntu-appindicators@ubuntu.com
|
@ -1,12 +1,14 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# Reset everything
|
# Reset everything
|
||||||
|
|
||||||
|
#
|
||||||
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||||
gnome-extensions reset dash-to-dock@micxgx.gmail.com || echo
|
gnome-extensions reset pika-dock@pika.com || echo
|
||||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
@ -31,7 +33,7 @@ dconf write /org/gnome/shell/extensions/just-perfection/clock-menu-position '1'
|
|||||||
|
|
||||||
|
|
||||||
# Enable Dash
|
# Enable Dash
|
||||||
gnome-extensions enable dash-to-dock@micxgx.gmail.com
|
gnome-extensions enable pika-dock@pika.com
|
||||||
# Enable just perfection
|
# Enable just perfection
|
||||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||||
# Enable Desktop Icons
|
# Enable Desktop Icons
|
@ -1,12 +1,14 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# Reset everything
|
# Reset everything
|
||||||
|
|
||||||
|
#
|
||||||
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||||
gnome-extensions reset dash-to-dock@micxgx.gmail.com || echo
|
gnome-extensions reset pika-dock@pika.com || echo
|
||||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
@ -1,6 +1,8 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# Reset everything Reset everything
|
# Reset everything
|
||||||
|
|
||||||
|
# Reset everything
|
||||||
|
|
||||||
#
|
#
|
||||||
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
dconf reset -f /org/gnome/shell/extensions/arcmenu/ || echo
|
||||||
@ -8,7 +10,7 @@ dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
|||||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||||
gnome-extensions reset dash-to-dock@micxgx.gmail.com || echo
|
gnome-extensions reset pika-dock@pika.com || echo
|
||||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
@ -30,7 +32,7 @@ dconf write /org/gnome/shell/extensions/arcmenu/position-in-panel "'Center'"
|
|||||||
|
|
||||||
dconf write /org/gnome/shell/extensions/arcmenu/show-activities-button 'true'
|
dconf write /org/gnome/shell/extensions/arcmenu/show-activities-button 'true'
|
||||||
|
|
||||||
gsettings set org.gnome.shell.extensions.dash-to-panel panel-element-positions '{"0":[{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"centerMonitor"},{"element":"taskbar","visible":true,"position":"centerMonitor"},{"element":"activitiesButton","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
|
gsettings set org.gnome.shell.extensions.dash-to-panel panel-element-positions '{"0":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"taskbar","visible":true,"position":"centered"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"activitiesButton","visible":true,"position":"stackedTL"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
|
||||||
|
|
||||||
# Enable taskbar
|
# Enable taskbar
|
||||||
gnome-extensions enable dash-to-panel@jderose9.github.com
|
gnome-extensions enable dash-to-panel@jderose9.github.com
|
150
usr/lib/pika/gnome-layouts/main.py
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
import gi
|
||||||
|
gi.require_version("Gtk", "3.0")
|
||||||
|
from gi.repository import Gtk, Gio
|
||||||
|
import subprocess
|
||||||
|
import os
|
||||||
|
import os.path
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import time
|
||||||
|
import threading
|
||||||
|
|
||||||
|
class Application:
|
||||||
|
|
||||||
|
### MAIN WINDOW ###
|
||||||
|
def __init__(self):
|
||||||
|
self.column_names = False
|
||||||
|
self.drop_nan = False
|
||||||
|
self.df = None
|
||||||
|
application_id="org.pika.layouts"
|
||||||
|
|
||||||
|
self.builder = Gtk.Builder()
|
||||||
|
self.builder.add_from_file("/usr/lib/pika/gnome-layouts/main.ui")
|
||||||
|
self.builder.connect_signals(self)
|
||||||
|
win = self.builder.get_object("main_window")
|
||||||
|
|
||||||
|
|
||||||
|
### Enable Extensions
|
||||||
|
|
||||||
|
subprocess.run(["gsettings set org.gnome.shell disable-user-extensions false"], shell=True, stdout=subprocess.DEVNULL)
|
||||||
|
|
||||||
|
accent_box = self.builder.get_object("accent_box")
|
||||||
|
|
||||||
|
accent_output = subprocess.run(["dconf read /org/pika/layouts/pika-theme | grep 1"], shell=True)
|
||||||
|
|
||||||
|
if (accent_output.returncode) != 0:
|
||||||
|
accent_box.hide()
|
||||||
|
|
||||||
|
### Window props ###
|
||||||
|
|
||||||
|
win.connect("destroy", Gtk.main_quit)
|
||||||
|
|
||||||
|
self.window = self.builder.get_object("main_window")
|
||||||
|
self.window.show()
|
||||||
|
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
|
||||||
|
|
||||||
|
### Themes
|
||||||
|
def on_pika_theme_button_pressed(self, widget):
|
||||||
|
accent_box = self.builder.get_object("accent_box")
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/theme.sh pika"], shell=True)
|
||||||
|
accent_box.show()
|
||||||
|
def on_gnome_theme_button_pressed(self, widget):
|
||||||
|
accent_box = self.builder.get_object("accent_box")
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/theme.sh gnome"], shell=True)
|
||||||
|
accent_box.hide()
|
||||||
|
|
||||||
|
|
||||||
|
if settings.get_int("layout-num") == 1:
|
||||||
|
win10toggle = self.builder.get_object("win10_button")
|
||||||
|
win10toggle.set_active(True)
|
||||||
|
|
||||||
|
if settings.get_int("layout-num") == 2:
|
||||||
|
win11toggle = self.builder.get_object("win11_button")
|
||||||
|
win11toggle.set_active(True)
|
||||||
|
|
||||||
|
if settings.get_int("layout-num") == 3:
|
||||||
|
gnometoggle = self.builder.get_object("gnome_button")
|
||||||
|
gnometoggle.set_active(True)
|
||||||
|
|
||||||
|
if settings.get_int("layout-num") == 4:
|
||||||
|
macostoggle = self.builder.get_object("macos_button")
|
||||||
|
macostoggle.set_active(True)
|
||||||
|
if settings.get_int("layout-num") == 5:
|
||||||
|
macostoggle = self.builder.get_object("gnome2_button")
|
||||||
|
macostoggle.set_active(True)
|
||||||
|
if settings.get_int("layout-num") == 6:
|
||||||
|
macostoggle = self.builder.get_object("unity_button")
|
||||||
|
macostoggle.set_active(True)
|
||||||
|
|
||||||
|
### Layouts ###
|
||||||
|
|
||||||
|
def on_win10_button_pressed(self, widget):
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
settings.set_int("layout-num", 1)
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/win10.sh"], shell=True)
|
||||||
|
|
||||||
|
def on_win11_button_pressed(self, widget):
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
settings.set_int("layout-num", 2)
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/win11.sh"], shell=True)
|
||||||
|
def on_gnome_button_pressed(self, widget):
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
settings.set_int("layout-num", 3)
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/reset.sh"], shell=True)
|
||||||
|
def on_macos_button_pressed(self, widget):
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
settings.set_int("layout-num", 4)
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/macos.sh"], shell=True)
|
||||||
|
def on_gnome2_button_pressed(self, widget):
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
settings.set_int("layout-num", 5)
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/gnome2.sh"], shell=True)
|
||||||
|
def on_unity_button_pressed(self, widget):
|
||||||
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
|
settings.set_int("layout-num", 6)
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/unity.sh"], shell=True)
|
||||||
|
### Settings ###
|
||||||
|
|
||||||
|
### Accent Colors
|
||||||
|
|
||||||
|
def blue_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Blue"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C blue"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def green_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Green"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C green"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def yellow_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Yellow"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C yellow"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def orange_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Orange"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C orange"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def red_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Red"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C red"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def pink_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Pink"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C pink"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def purple_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Purple"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C violet"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def teal_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Teal"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C teal"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
def gray_accent_button_pressed_cb (self, widget):
|
||||||
|
subprocess.run(["/usr/lib/pika/gnome-layouts/dconf-accent.sh Grey"], shell=True)
|
||||||
|
subprocess.run(["pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C grey"], shell=True)
|
||||||
|
subprocess.run(["echo 'theme change done!'"], shell=True)
|
||||||
|
|
||||||
|
Application()
|
||||||
|
Gtk.main()
|
835
usr/lib/pika/gnome-layouts/main.ui
Normal file
@ -0,0 +1,835 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.40.0 -->
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk+" version="3.24"/>
|
||||||
|
<object class="GtkRadioButton" id="radiobutton1">
|
||||||
|
<property name="label" translatable="yes">radiobutton</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="active">True</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkApplicationWindow" id="main_window">
|
||||||
|
<property name="width-request">700</property>
|
||||||
|
<property name="height-request">520</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="default-width">700</property>
|
||||||
|
<property name="default-height">512</property>
|
||||||
|
<property name="show-menubar">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="main_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStack" id="main_stack">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="transition-type">crossfade</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkScrolledWindow" id="layouts_scroll">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="hscrollbar-policy">never</property>
|
||||||
|
<property name="shadow-type">in</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkViewport">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="margin-start">5</property>
|
||||||
|
<property name="margin-end">5</property>
|
||||||
|
<property name="margin-top">5</property>
|
||||||
|
<property name="margin-bottom">5</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<!-- n-columns=3 n-rows=2 -->
|
||||||
|
<object class="GtkGrid" id="layouts_grid">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="row-spacing">10</property>
|
||||||
|
<property name="column-spacing">10</property>
|
||||||
|
<property name="column-homogeneous">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="win10_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="win10_preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-left">10</property>
|
||||||
|
<property name="margin-right">10</property>
|
||||||
|
<property name="margin-start">10</property>
|
||||||
|
<property name="margin-end">10</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">10</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/win10.svg</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRadioButton" id="win10_button">
|
||||||
|
<property name="label" translatable="yes">Traditional</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">The good old michealsoft binbows layout:
|
||||||
|
* A Bottom taskbar.
|
||||||
|
* An Application Menu binded to the "Super Key".
|
||||||
|
* Desktop Icons.
|
||||||
|
* Full window controls on the right side of the window.</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
<property name="group">radiobutton1</property>
|
||||||
|
<signal name="pressed" handler="on_win10_button_pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="win11_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="win11_preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-left">10</property>
|
||||||
|
<property name="margin-right">10</property>
|
||||||
|
<property name="margin-start">10</property>
|
||||||
|
<property name="margin-end">10</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">10</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/win11.svg</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRadioButton" id="win11_button">
|
||||||
|
<property name="label" translatable="yes">Eleven</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">The michealsoft binbows layout but newer:
|
||||||
|
* A Bottom taskbar with centered icons.
|
||||||
|
* A More modern Application Menu binded to the "Super Key".
|
||||||
|
* Desktop Icons.
|
||||||
|
* Full window controls on the right side of the window.
|
||||||
|
* "Activities" button for wasy workspace management.</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
<property name="group">radiobutton1</property>
|
||||||
|
<signal name="pressed" handler="on_win11_button_pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">1</property>
|
||||||
|
<property name="top-attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="macos_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="macos_preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-left">10</property>
|
||||||
|
<property name="margin-right">10</property>
|
||||||
|
<property name="margin-start">10</property>
|
||||||
|
<property name="margin-end">10</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">10</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/macos.svg</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRadioButton" id="macos_button">
|
||||||
|
<property name="label" translatable="yes">Pineapple</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">The Ma....... i mean the PearOS layout:
|
||||||
|
* A Bottom Dock and a top panel.
|
||||||
|
* A Fullscreen Application grid.
|
||||||
|
* Desktop Icons.
|
||||||
|
* Full window controls on the left side of the window.
|
||||||
|
* "Activities" button for wasy workspace management.</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
<property name="group">radiobutton1</property>
|
||||||
|
<signal name="pressed" handler="on_macos_button_pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">2</property>
|
||||||
|
<property name="top-attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="unity_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="unity_preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-left">10</property>
|
||||||
|
<property name="margin-right">10</property>
|
||||||
|
<property name="margin-start">10</property>
|
||||||
|
<property name="margin-end">10</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">10</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/unity.svg</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRadioButton" id="unity_button">
|
||||||
|
<property name="label" translatable="yes">Unity</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">The Ubuntu Unity Experience:
|
||||||
|
* A Leftside Dock and a top panel.
|
||||||
|
* Desktop Icons.
|
||||||
|
* Full window controls on the left side of the window.</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
<property name="group">radiobutton1</property>
|
||||||
|
<signal name="pressed" handler="on_unity_button_pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">2</property>
|
||||||
|
<property name="top-attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="gnome2_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="gnome2_preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-left">10</property>
|
||||||
|
<property name="margin-right">10</property>
|
||||||
|
<property name="margin-start">10</property>
|
||||||
|
<property name="margin-end">10</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">10</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/gnome2.svg</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRadioButton" id="gnome2_button">
|
||||||
|
<property name="label" translatable="yes">GNOME 2</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">The Old Gnome/Mate Experience.</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
<property name="group">radiobutton1</property>
|
||||||
|
<signal name="pressed" handler="on_gnome2_button_pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">1</property>
|
||||||
|
<property name="top-attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="gnome_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="gnome_preview">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-left">10</property>
|
||||||
|
<property name="margin-right">10</property>
|
||||||
|
<property name="margin-start">10</property>
|
||||||
|
<property name="margin-end">10</property>
|
||||||
|
<property name="margin-top">10</property>
|
||||||
|
<property name="margin-bottom">10</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/gnome.svg</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkRadioButton" id="gnome_button">
|
||||||
|
<property name="label" translatable="yes">GNOME</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">The Stock GNOME Experience.</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="draw-indicator">True</property>
|
||||||
|
<property name="group">radiobutton1</property>
|
||||||
|
<signal name="pressed" handler="on_gnome_button_pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">Layouts</property>
|
||||||
|
<property name="title" translatable="yes">Layouts</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkScrolledWindow" id="theme_scroll">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="hscrollbar-policy">never</property>
|
||||||
|
<property name="shadow-type">in</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkViewport">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="margin-start">5</property>
|
||||||
|
<property name="margin-end">5</property>
|
||||||
|
<property name="margin-top">5</property>
|
||||||
|
<property name="margin-bottom">5</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">10</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="accent_box">
|
||||||
|
<property name="name">accent_box</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">start</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="blue_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="blue_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="blue_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Blue</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/blue.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="green_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="green_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="green_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Green</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/green.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="yellow_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="yellow_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="yellow_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Yellow</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/yellow.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="orange_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="orange_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="orange_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Orange</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/orange.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="red_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="red_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="red_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Red</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/red.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">4</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="pink_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="pink_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="pink_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Pink</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/pink.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">5</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="purple_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="purple_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="purple_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Purple</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/purple.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">6</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="teal_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="teal_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="teal_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Teal</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/teal.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">7</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="gray_accent_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="relief">none</property>
|
||||||
|
<signal name="pressed" handler="gray_accent_button_pressed_cb" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="gray_accent_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="tooltip-text" translatable="yes">Gray</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/gray.svg</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">8</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="padding">15</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<!-- n-columns=2 n-rows=2 -->
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="column-spacing">5</property>
|
||||||
|
<property name="column-homogeneous">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="pika_theme_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">5</property>
|
||||||
|
<property name="margin-end">5</property>
|
||||||
|
<property name="margin-top">15</property>
|
||||||
|
<property name="margin-bottom">5</property>
|
||||||
|
<signal name="pressed" handler="on_pika_theme_button_pressed" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="pixel-size">36</property>
|
||||||
|
<property name="icon-name">pika-logo</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">PikaOS Theming</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="gnome_theme_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">True</property>
|
||||||
|
<property name="receives-default">True</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">5</property>
|
||||||
|
<property name="margin-end">5</property>
|
||||||
|
<property name="margin-top">15</property>
|
||||||
|
<property name="margin-bottom">5</property>
|
||||||
|
<signal name="pressed" handler="on_gnome_theme_button_pressed" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="pixel-size">36</property>
|
||||||
|
<property name="icon-name">gnome-foot</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Gnome Theming</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">1</property>
|
||||||
|
<property name="top-attach">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/pika-theme.png</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">0</property>
|
||||||
|
<property name="top-attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/gnome-theme.png</property>
|
||||||
|
<property name="pixel-size">96</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left-attach">1</property>
|
||||||
|
<property name="top-attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="name">themes</property>
|
||||||
|
<property name="title" translatable="yes">Themes & Colors</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="titlebar">
|
||||||
|
<object class="GtkHeaderBar" id="main_Header">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="show-close-button">True</property>
|
||||||
|
<child type="title">
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="homogeneous">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStackSwitcher">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can-focus">False</property>
|
||||||
|
<property name="homogeneous">True</property>
|
||||||
|
<property name="stack">main_stack</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
BIN
usr/lib/pika/gnome-layouts/previews/gnome-theme.png
Normal file
After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
BIN
usr/lib/pika/gnome-layouts/previews/pika-theme.png
Normal file
After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
8
usr/lib/pika/gnome-layouts/reload.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
if [[ "$RELOG_NEEDED" == 1 ]]; then
|
||||||
|
if zenity --question --text="New extensions have been installed!, reload required!"
|
||||||
|
then
|
||||||
|
gnome-session-quit --force --no-prompt
|
||||||
|
fi
|
||||||
|
fi
|
68
usr/lib/pika/gnome-layouts/theme.sh
Executable file
@ -0,0 +1,68 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
rm -rfv $HOME/.config/gtk-4.0
|
||||||
|
|
||||||
|
gnome-extensions enable pika-darkmode@pika.com
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/manual-time-source true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-button-placement "'none'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-time "'night'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/time-source "'ondemand'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/enabled true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/enabled true
|
||||||
|
|
||||||
|
if [[ $1 == pika ]]
|
||||||
|
then
|
||||||
|
dconf write /org/pika/layouts/pika-theme 1
|
||||||
|
dconf write /org/gnome/desktop/wm/preferences/titlebar-font "'Fira Sans Semi-Bold 10'"
|
||||||
|
dconf write /org/gnome/desktop/sound/theme-name "'pika'"
|
||||||
|
dconf write /org/gnome/desktop/interface/icon-theme "'Papirus'"
|
||||||
|
dconf write /org/gnome/desktop/interface/monospace-font-name "'Fira Mono 11'"
|
||||||
|
dconf write /org/gnome/desktop/interface/document-font-name "'Roboto Slab 11'"
|
||||||
|
dconf write /org/gnome/desktop/interface/font-name "'Fira Sans Semi-Light 10'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/manual-time-source true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-button-placement "'none'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-time "'night'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/time-source "'ondemand'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunrise "'pika-gnome-theme'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunset "'pika-gnome-theme dark'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/enabled true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Orchis-Yellow-Light'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Orchis-Yellow-Dark'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/enabled true
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Orchis-Yellow-Light'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Orchis-Yellow-Dark'"
|
||||||
|
echo '#! /bin/bash' > $HOME/.config/pika_theme || touch $HOME/.config/pika_theme && echo '#! /bin/bash' > $HOME/.config/pika_theme
|
||||||
|
echo 'KVANTUM_THEME_DARK=Orchis-dark#' >> $HOME/.config/pika_theme
|
||||||
|
echo 'KVANTUM_THEME_LIGHT=Orchis#' >> $HOME/.config/pika_theme
|
||||||
|
echo 'GTK_THEME_PATH_DARK=/usr/share/themes/$(dconf read /org/gnome/desktop/interface/gtk-theme | 'sed \"s+\'++\"' | 'sed \"s+\'++\"' | 'sed \"s+-Dark++\"' | 'sed \"s+-Light++\"')'-Dark >> $HOME/.config/pika_theme
|
||||||
|
echo 'GTK_THEME_PATH_LIGHT=/usr/share/themes/$(dconf read /org/gnome/desktop/interface/gtk-theme | 'sed \"s+\'++\"' | 'sed \"s+\'++\"' | 'sed \"s+-Dark++\"' | 'sed \"s+-Light++\"')'-Light >> $HOME/.config/pika_theme
|
||||||
|
pkexec /usr/lib/pika/gnome-layouts/papirus-folders -u -C yellow
|
||||||
|
|
||||||
|
if dconf read /org/gnome/desktop/interface/color-scheme | grep dark
|
||||||
|
then
|
||||||
|
pika-gnome-theme dark
|
||||||
|
else
|
||||||
|
pika-gnome-theme
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ $1 == gnome ]]
|
||||||
|
then
|
||||||
|
dconf write /org/pika/layouts/pika-theme 0
|
||||||
|
dconf write /org/gnome/shell/extensions/user-theme/name "''"
|
||||||
|
dconf write /org/gnome/desktop/wm/preferences/titlebar-font "'Cantarell Bold 11'"
|
||||||
|
dconf write /org/gnome/desktop/sound/theme-name "'freedesktop'"
|
||||||
|
dconf write /org/gnome/desktop/interface/icon-theme "'Adwaita'"
|
||||||
|
dconf write /org/gnome/desktop/interface/monospace-font-name "'Monospace 11'"
|
||||||
|
dconf write /org/gnome/desktop/interface/document-font-name "'Sans 11'"
|
||||||
|
dconf write /org/gnome/desktop/interface/font-name "'Cantarell 11'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled false
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'adw-gtk3'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'adw-gtk3-dark'"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "''"
|
||||||
|
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "''"
|
||||||
|
echo '#! /bin/bash' > $HOME/.config/pika_theme || touch $HOME/.config/pika_theme && echo '#! /bin/bash' > $HOME/.config/pika_theme
|
||||||
|
echo 'KVANTUM_THEME_DARK=' >> $HOME/.config/pika_theme
|
||||||
|
echo 'KVANTUM_THEME_LIGHT=' >> $HOME/.config/pika_theme
|
||||||
|
echo 'GTK_THEME_PATH_DARK=' >> $HOME/.config/pika_theme
|
||||||
|
echo 'GTK_THEME_PATH_LIGHT=' >> $HOME/.config/pika_theme
|
||||||
|
fi
|
@ -1,6 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=PikaOS Gnome Appearance
|
Name=PikaOS Desktop Layouts
|
||||||
Exec=pika-gnome-layouts
|
Exec=/usr/bin/pika-gnome-layouts
|
||||||
Icon=desktop
|
Icon=desktop
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
18
usr/share/glib-2.0/schemas/org.pika.layouts.gschema.xml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<schemalist>
|
||||||
|
<schema path="/org/pika/layouts/" id="org.pika.layouts">
|
||||||
|
<key type="i" name="layout-num">
|
||||||
|
<default>3</default>
|
||||||
|
<summary>What layout is selected.</summary>
|
||||||
|
<description>
|
||||||
|
What layout is selected.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key type="i" name="pika-theme">
|
||||||
|
<default>1</default>
|
||||||
|
<summary>What Theme is being used.</summary>
|
||||||
|
<description>
|
||||||
|
What Theme is being used.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
</schema>
|
||||||
|
</schemalist>
|