sync
@ -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
@ -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
|
9
src/usr/lib/pika/gnome-layouts/accent-colors/blue.svg
Normal file
After Width: | Height: | Size: 8.2 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/brown.svg
Normal file
After Width: | Height: | Size: 9.0 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/gray.svg
Normal file
After Width: | Height: | Size: 14 KiB |
11
src/usr/lib/pika/gnome-layouts/accent-colors/green.svg
Normal file
After Width: | Height: | Size: 27 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/magenta.svg
Normal file
After Width: | Height: | Size: 9.4 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/orange.svg
Normal file
After Width: | Height: | Size: 8.8 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/purple.svg
Normal file
After Width: | Height: | Size: 9.0 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/red.svg
Normal file
After Width: | Height: | Size: 10 KiB |
9
src/usr/lib/pika/gnome-layouts/accent-colors/yellow.svg
Normal file
After Width: | Height: | Size: 10 KiB |
@ -16,16 +16,20 @@ class Application:
|
|||||||
self.column_names = False
|
self.column_names = False
|
||||||
self.drop_nan = False
|
self.drop_nan = False
|
||||||
self.df = None
|
self.df = None
|
||||||
application_id="org.nobara.layouts"
|
application_id="org.pika.layouts"
|
||||||
|
|
||||||
self.builder = Gtk.Builder()
|
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)
|
self.builder.connect_signals(self)
|
||||||
win = self.builder.get_object("main_window")
|
win = self.builder.get_object("main_window")
|
||||||
|
|
||||||
self.builder.get_object("install_all").hide()
|
self.builder.get_object("install_all").hide()
|
||||||
#win.connect("destroy", Gtk.main_quit)
|
#win.connect("destroy", Gtk.main_quit)
|
||||||
|
|
||||||
|
### Hidden entries
|
||||||
|
|
||||||
|
self.builder.get_object("audio_box").hide()
|
||||||
|
|
||||||
### Enable Extensions
|
### Enable Extensions
|
||||||
|
|
||||||
subprocess.run(["gsettings set org.gnome.shell disable-user-extensions false"], shell=True, stdout=subprocess.DEVNULL)
|
subprocess.run(["gsettings set org.gnome.shell disable-user-extensions false"], shell=True, stdout=subprocess.DEVNULL)
|
1345
src/usr/lib/pika/gnome-layouts/main.ui
Normal file
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Generated with glade 3.38.2 -->
|
<!-- Generated with glade 3.40.0 -->
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.24"/>
|
<requires lib="gtk+" version="3.24"/>
|
||||||
<object class="GtkRadioButton" id="radiobutton1">
|
<object class="GtkRadioButton" id="radiobutton1">
|
||||||
@ -78,7 +78,7 @@
|
|||||||
<property name="margin-end">10</property>
|
<property name="margin-end">10</property>
|
||||||
<property name="margin-top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@ -126,7 +126,7 @@
|
|||||||
<property name="margin-end">10</property>
|
<property name="margin-end">10</property>
|
||||||
<property name="margin-top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@ -174,7 +174,7 @@
|
|||||||
<property name="margin-end">10</property>
|
<property name="margin-end">10</property>
|
||||||
<property name="margin-top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@ -222,7 +222,7 @@
|
|||||||
<property name="margin-end">10</property>
|
<property name="margin-end">10</property>
|
||||||
<property name="margin-top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@ -270,7 +270,7 @@
|
|||||||
<property name="margin-end">10</property>
|
<property name="margin-end">10</property>
|
||||||
<property name="margin-top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@ -318,7 +318,7 @@
|
|||||||
<property name="margin-end">10</property>
|
<property name="margin-end">10</property>
|
||||||
<property name="margin-top">10</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@ -351,13 +351,135 @@
|
|||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<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>
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<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>
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<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>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
@ -695,6 +817,7 @@
|
|||||||
<object class="GtkBox" id="audio_box">
|
<object class="GtkBox" id="audio_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
|
<property name="no-show-all">True</property>
|
||||||
<property name="halign">start</property>
|
<property name="halign">start</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<child>
|
<child>
|
||||||
@ -729,7 +852,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">0</property>
|
<property name="top-attach">6</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -770,7 +893,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">1</property>
|
<property name="top-attach">0</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -798,7 +921,7 @@
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="halign">start</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>
|
<property name="xalign">0</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
@ -811,7 +934,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">2</property>
|
<property name="top-attach">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -852,7 +975,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">3</property>
|
<property name="top-attach">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -893,7 +1016,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">4</property>
|
<property name="top-attach">3</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -934,7 +1057,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">6</property>
|
<property name="top-attach">5</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@ -1045,7 +1168,7 @@
|
|||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">5</property>
|
<property name="top-attach">4</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
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 |
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 |
@ -1,6 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Nobara Desktop Layouts
|
Name=PikaOS Desktop Layouts
|
||||||
Exec=/usr/bin/nobara-gnome-layouts
|
Exec=/usr/bin/pika-gnome-layouts
|
||||||
Icon=desktop
|
Icon=desktop
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
@ -1,5 +1,5 @@
|
|||||||
<schemalist>
|
<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">
|
<key type="i" name="layout-num">
|
||||||
<default>3</default>
|
<default>3</default>
|
||||||
<summary>What layout is selected.</summary>
|
<summary>What layout is selected.</summary>
|