sync
This commit is contained in:
parent
4d3bdc472e
commit
807b54e590
@ -1,6 +1,7 @@
|
|||||||
#! /usr/bin/bash
|
#! /usr/bin/bash
|
||||||
# Enable extension
|
# Enable extensions
|
||||||
gnome-extensions enable custom-accent-colors@demiskp
|
gnome-extensions enable custom-accent-colors@demiskp
|
||||||
|
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||||
# Set accent color settings
|
# 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/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-flatpak true
|
||||||
|
@ -7,13 +7,11 @@ 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
|
||||||
dconf reset -f /org/gnome/shell/extensions/Move_Clock/ || 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 ubuntu-dock@ubuntu.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
|
||||||
gnome-extensions reset Move_Clock@rmy.pobox.com || echo
|
|
||||||
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
|
|
||||||
@ -21,16 +19,12 @@ gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com ||
|
|||||||
|
|
||||||
gsettings set org.gnome.shell.extensions.arcmenu menu-hotkey 'Super_L'
|
gsettings set org.gnome.shell.extensions.arcmenu menu-hotkey 'Super_L'
|
||||||
|
|
||||||
gsettings set org.gnome.shell.extensions.arcmenu menu-layout 'Eleven'
|
|
||||||
|
|
||||||
gsettings set org.gnome.shell.extensions.arcmenu menu-layout 'GnomeMenu'
|
gsettings set org.gnome.shell.extensions.arcmenu menu-layout 'GnomeMenu'
|
||||||
|
|
||||||
gsettings set org.gnome.shell.extensions.arcmenu menu-button-appearance 'Text'
|
gsettings set org.gnome.shell.extensions.arcmenu menu-button-appearance 'Text'
|
||||||
|
|
||||||
# Enable just perfection
|
# Enable just perfection
|
||||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||||
# Enable Move Clock
|
|
||||||
gnome-extensions enable Move_Clock@rmy.pobox.com
|
|
||||||
# Enable Launch New instance
|
# Enable Launch New instance
|
||||||
gnome-extensions enable launch-new-instance@gnome-shell-extensions.gcampax.github.com
|
gnome-extensions enable launch-new-instance@gnome-shell-extensions.gcampax.github.com
|
||||||
# Enable Places
|
# Enable Places
|
||||||
|
@ -7,19 +7,29 @@ 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
|
||||||
dconf reset -f /org/gnome/shell/extensions/Move_Clock/ || 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 ubuntu-dock@ubuntu.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
|
||||||
gnome-extensions reset Move_Clock@rmy.pobox.com || echo
|
|
||||||
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
|
|
||||||
|
# add new settings
|
||||||
|
|
||||||
|
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 48
|
||||||
|
|
||||||
|
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true
|
||||||
|
|
||||||
|
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
|
||||||
|
|
||||||
|
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'BOTTOM'
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
|
gsettings set 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 ubuntu-dock@ubuntu.com
|
||||||
# Enable just perfection
|
# Enable just perfection
|
||||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||||
# Enable Move Clock
|
|
||||||
gnome-extensions enable Move_Clock@rmy.pobox.com
|
|
||||||
|
@ -7,13 +7,11 @@ 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
|
||||||
dconf reset -f /org/gnome/shell/extensions/Move_Clock/ || 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 ubuntu-dock@ubuntu.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
|
||||||
gnome-extensions reset Move_Clock@rmy.pobox.com || echo
|
|
||||||
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
|
|
||||||
@ -28,7 +26,7 @@ gsettings set org.gnome.shell.extensions.dash-to-dock extend-height true
|
|||||||
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'LEFT'
|
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'LEFT'
|
||||||
|
|
||||||
# Enable Dash
|
# Enable Dash
|
||||||
gnome-extensions enable dash-to-dock@micxgx.gmail.com
|
gnome-extensions enable ubuntu-dock@ubuntu.com
|
||||||
# Enable just perfection
|
# Enable just perfection
|
||||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||||
|
|
||||||
|
@ -7,13 +7,11 @@ 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
|
||||||
dconf reset -f /org/gnome/shell/extensions/Move_Clock/ || 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 ubuntu-dock@ubuntu.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
|
||||||
gnome-extensions reset Move_Clock@rmy.pobox.com || echo
|
|
||||||
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
|
|
||||||
|
@ -9,13 +9,11 @@ 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
|
||||||
dconf reset -f /org/gnome/shell/extensions/Move_Clock/ || 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 ubuntu-dock@ubuntu.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
|
||||||
gnome-extensions reset Move_Clock@rmy.pobox.com || echo
|
|
||||||
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset places-menu@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
gnome-extensions reset window-list@gnome-shell-extensions.gcampax.github.com || echo
|
||||||
|
|
||||||
|
@ -172,28 +172,28 @@ class Application:
|
|||||||
def on_win10_button_pressed(self, widget):
|
def on_win10_button_pressed(self, widget):
|
||||||
settings = Gio.Settings.new("org.pika.layouts")
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
settings.set_int("layout-num", 1)
|
settings.set_int("layout-num", 1)
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/layout-scripts/win10.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/win10.sh"], shell=True)
|
||||||
|
|
||||||
def on_win11_button_pressed(self, widget):
|
def on_win11_button_pressed(self, widget):
|
||||||
settings = Gio.Settings.new("org.pika.layouts")
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
settings.set_int("layout-num", 2)
|
settings.set_int("layout-num", 2)
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/layout-scripts/win11.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/win11.sh"], shell=True)
|
||||||
def on_gnome_button_pressed(self, widget):
|
def on_gnome_button_pressed(self, widget):
|
||||||
settings = Gio.Settings.new("org.pika.layouts")
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
settings.set_int("layout-num", 3)
|
settings.set_int("layout-num", 3)
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/layout-scripts/reset.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/reset.sh"], shell=True)
|
||||||
def on_macos_button_pressed(self, widget):
|
def on_macos_button_pressed(self, widget):
|
||||||
settings = Gio.Settings.new("org.pika.layouts")
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
settings.set_int("layout-num", 4)
|
settings.set_int("layout-num", 4)
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/layout-scripts/macos.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/macos.sh"], shell=True)
|
||||||
def on_gnome2_button_pressed(self, widget):
|
def on_gnome2_button_pressed(self, widget):
|
||||||
settings = Gio.Settings.new("org.pika.layouts")
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
settings.set_int("layout-num", 5)
|
settings.set_int("layout-num", 5)
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/layout-scripts/gnome2.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/gnome2.sh"], shell=True)
|
||||||
def on_unity_button_pressed(self, widget):
|
def on_unity_button_pressed(self, widget):
|
||||||
settings = Gio.Settings.new("org.pika.layouts")
|
settings = Gio.Settings.new("org.pika.layouts")
|
||||||
settings.set_int("layout-num", 6)
|
settings.set_int("layout-num", 6)
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/layout-scripts/unity.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/layout-scripts/unity.sh"], shell=True)
|
||||||
### Settings ###
|
### Settings ###
|
||||||
|
|
||||||
### Accent Colors
|
### Accent Colors
|
||||||
@ -238,104 +238,104 @@ class Application:
|
|||||||
#### Desktop Switch ####
|
#### Desktop Switch ####
|
||||||
def on_desktop_switch_active_notify(self, switch, state):
|
def on_desktop_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/desktop.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/desktop.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/desktop.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/desktop.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Audio Switch ####
|
#### Audio Switch ####
|
||||||
def on_audio_switch_active_notify(self, switch, state):
|
def on_audio_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/audio.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/audio.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/audio.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/audio.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Blur Switch ####
|
#### Blur Switch ####
|
||||||
def on_blur_switch_active_notify(self, switch, state):
|
def on_blur_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/blur.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/blur.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/blur.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/blur.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Tray Switch ####
|
#### Tray Switch ####
|
||||||
def on_tray_switch_active_notify(self, switch, state):
|
def on_tray_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/tray.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/tray.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/tray.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/tray.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### workspace Switch ####
|
#### workspace Switch ####
|
||||||
def on_workspace_switch_active_notify(self, switch, state):
|
def on_workspace_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/workspace.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/workspace.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/workspace.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/workspace.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### x11 Switch ####
|
#### x11 Switch ####
|
||||||
def on_x11_switch_active_notify(self, switch, state):
|
def on_x11_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/x11.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/x11.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/x11.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/x11.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### clipboard Switch ####
|
#### clipboard Switch ####
|
||||||
def on_clipboard_switch_active_notify(self, switch, state):
|
def on_clipboard_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/clipboard.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/clipboard.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/clipboard.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/clipboard.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### caffeine Switch ####
|
#### caffeine Switch ####
|
||||||
def on_caffeine_switch_active_notify(self, switch, state):
|
def on_caffeine_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/caffeine.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/caffeine.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/caffeine.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/caffeine.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### supergfxctl Switch ####
|
#### supergfxctl Switch ####
|
||||||
def on_supergfxctl_switch_active_notify(self, switch, state):
|
def on_supergfxctl_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/supergfxctl.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/supergfxctl.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/supergfxctl.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/supergfxctl.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### kde Switch ####
|
#### kde Switch ####
|
||||||
def on_kde_switch_active_notify(self, switch, state):
|
def on_kde_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/kde.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/kde.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/kde.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/kde.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### weather Switch ####
|
#### weather Switch ####
|
||||||
def on_weather_switch_active_notify(self, switch, state):
|
def on_weather_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/weather.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/weather.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/weather.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/weather.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### stats Switch ####
|
#### stats Switch ####
|
||||||
def on_stats_switch_active_notify(self, switch, state):
|
def on_stats_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/stats.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/stats.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/stats.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/stats.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### hid Switch ####
|
#### hid Switch ####
|
||||||
def on_hid_switch_active_notify(self, switch, state):
|
def on_hid_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/hid.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/hid.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/hid.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/hid.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Pop Switch ####
|
#### Pop Switch ####
|
||||||
def on_pop_switch_active_notify(self, switch, state):
|
def on_pop_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/pop.sh enable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/pop.sh enable"], shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/settings-scripts/pop.sh disable"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/settings-scripts/pop.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_install_all_pressed(self, widget):
|
def on_install_all_pressed(self, widget):
|
||||||
subprocess.run(["/etc/pika/scripts/pika-layouts/all.sh"], shell=True)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/all.sh"], shell=True)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
Application()
|
Application()
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user