This commit is contained in:
Ward Nakchbandi 2022-12-23 13:05:16 +03:00
parent 4ac7c362be
commit f8e2ef7ace
46 changed files with 1589 additions and 34 deletions

View File

@ -1,7 +0,0 @@
#! /bin/bash
if echo $XDG_SESSION_DESKTOP | grep -i gnome ;
then
python3 /etc/nobara/scripts/nobara-layouts/nobara-layouts.py
else
zenity --error --text="current session isn't gnome"
fi

7
src/usr/bin/pika-gnome-layouts Executable file
View 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

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 27 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -16,16 +16,20 @@ class Application:
self.column_names = False
self.drop_nan = False
self.df = None
application_id="org.nobara.layouts"
application_id="org.pika.layouts"
self.builder = Gtk.Builder()
self.builder.add_from_file("/etc/nobara/scripts/nobara-layouts/nobara-layouts.ui")
self.builder.add_from_file("/usr/lib/pika/gnome-layouts/main.ui")
self.builder.connect_signals(self)
win = self.builder.get_object("main_window")
self.builder.get_object("install_all").hide()
#win.connect("destroy", Gtk.main_quit)
### Hidden entries
self.builder.get_object("audio_box").hide()
### Enable Extensions
subprocess.run(["gsettings set org.gnome.shell disable-user-extensions false"], shell=True, stdout=subprocess.DEVNULL)

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<!-- Generated with glade 3.40.0 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkRadioButton" id="radiobutton1">
@ -78,7 +78,7 @@
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="pixbuf">../../../../../../../../../etc/nobara/scripts/nobara-layouts/previews/win10.svg</property>
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/win10.svg</property>
</object>
<packing>
<property name="expand">False</property>
@ -126,7 +126,7 @@
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="pixbuf">../../../../../../../../../etc/nobara/scripts/nobara-layouts/previews/win11.svg</property>
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/win11.svg</property>
</object>
<packing>
<property name="expand">False</property>
@ -174,7 +174,7 @@
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="pixbuf">../../../../../../../../../etc/nobara/scripts/nobara-layouts/previews/macos.svg</property>
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/macos.svg</property>
</object>
<packing>
<property name="expand">False</property>
@ -222,7 +222,7 @@
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="pixbuf">../../../../../../../../../etc/nobara/scripts/nobara-layouts/previews/unity.svg</property>
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/unity.svg</property>
</object>
<packing>
<property name="expand">False</property>
@ -270,7 +270,7 @@
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="pixbuf">../../../../../../../../../etc/nobara/scripts/nobara-layouts/previews/gnome2.svg</property>
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/gnome2.svg</property>
</object>
<packing>
<property name="expand">False</property>
@ -318,7 +318,7 @@
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="pixbuf">../../../../../../../../../etc/nobara/scripts/nobara-layouts/previews/gnome.svg</property>
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/previews/gnome.svg</property>
</object>
<packing>
<property name="expand">False</property>
@ -351,13 +351,135 @@
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
<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="valign">start</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkImage" id="blue">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Blue</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkImage" id="green">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Green</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkImage" id="yellow">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Yellow</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkImage" id="orange">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Orange</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkImage" id="red">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Red</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkImage" id="magenta">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Magenta</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkImage" id="purple">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Purple</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
</packing>
</child>
<child>
<object class="GtkImage" id="brown">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Brown (please don't use this)</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
</packing>
</child>
<child>
<object class="GtkImage" id="gray">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes">Gray</property>
<property name="pixbuf">../../../../../../../../Downloads/accent/blue-svg.svg</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">8</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">2</property>
<property name="width">3</property>
</packing>
</child>
</object>
</child>
@ -695,6 +817,7 @@
<object class="GtkBox" id="audio_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="no-show-all">True</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
<child>
@ -729,7 +852,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">0</property>
<property name="top-attach">6</property>
</packing>
</child>
<child>
@ -770,7 +893,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
@ -798,7 +921,7 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Enable Touchpad Gestures Improvements</property>
<property name="label" translatable="yes">Enable Touchpad Gestures On X11</property>
<property name="xalign">0</property>
</object>
<packing>
@ -811,7 +934,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">2</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
@ -852,7 +975,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">3</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
@ -893,7 +1016,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">4</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
@ -934,7 +1057,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">6</property>
<property name="top-attach">5</property>
</packing>
</child>
<child>
@ -1045,7 +1168,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">5</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,6 +1,6 @@
[Desktop Entry]
Name=Nobara Desktop Layouts
Exec=/usr/bin/nobara-gnome-layouts
Name=PikaOS Desktop Layouts
Exec=/usr/bin/pika-gnome-layouts
Icon=desktop
Terminal=false
Type=Application

View File

@ -1,5 +1,5 @@
<schemalist>
<schema path="/org/nobara/layouts/" id="org.nobara.layouts">
<schema path="/org/pika/layouts/" id="org.pika.layouts">
<key type="i" name="layout-num">
<default>3</default>
<summary>What layout is selected.</summary>