Browse Source

Fixup some breeze theme configs; Do not sleep on wizard; Cleanup

master
falkTX 5 years ago
parent
commit
b7af76fe8a
8 changed files with 76 additions and 8 deletions
  1. +0
    -1
      config-theme/.gtkrc-2.0-kde4
  2. +15
    -0
      config-theme/config/breezerc
  3. +0
    -0
      config-theme/gtkrc-2.0
  4. +13
    -2
      scripts/xrec_1
  5. +39
    -0
      scripts/xrec_1b.sh
  6. +4
    -0
      update-configs.sh
  7. +4
    -4
      welcome/welcome.py
  8. +1
    -1
      welcome/welcome.ui

+ 0
- 1
config-theme/.gtkrc-2.0-kde4 View File

@@ -1 +0,0 @@
/home/falktx/.gtkrc-2.0

+ 15
- 0
config-theme/config/breezerc View File

@@ -0,0 +1,15 @@
[Common]
ShadowColor=7,8,9
ShadowSize=ShadowMedium
ShadowStrength=89

[Style]
AnimationsEnabled=false
ScrollBarAddLineButtons=2
ScrollBarSubLineButtons=1
ViewDrawFocusIndicator=false

[Windeco]
AnimationsEnabled=false
ButtonSize=ButtonSmall
DrawTitleBarSeparator=false

config-theme/.gtkrc-2.0 → config-theme/gtkrc-2.0 View File


+ 13
- 2
scripts/xrec_1 View File

@@ -1,12 +1,12 @@
#!/bin/bash

# all dependencies:
# $ sudo apt-get install xserver-xephyr harvid
# $ sudo apt-get install xserver-xephyr

init_screen () {
# Set up nested X server
Xephyr -keybd ephyr,,,xkbmodel=evdev -br -reset -screen 1280x720x24 -dpi 96 :2 &
sleep 3
sleep 1
}

start_screen_gnome2 () {
@@ -44,6 +44,11 @@ export DISPLAY=:0
plasma-desktop
}

start_screen_kde5 () {
# set environment
sudo su - falk -c "$(pwd)/$(dirname $0)/xrec_1b.sh"
}

start_screen_xfce4 () {
# set environment
export DISPLAY=:2.0
@@ -75,6 +80,11 @@ init_screen
start_screen_kde4
;;

kde5|-kde5|--kde5)
init_screen
start_screen_kde5
;;

xfce4|-xfce4|--xfce4)
init_screen
start_screen_xfce4
@@ -86,6 +96,7 @@ echo "usage: xrec_1 <DE>
DE can be:
gnome2 Gnome2 session
kde4 KDE4 session
kde5 KDE5 session
xfce4 XFCE4 session
"
;;


+ 39
- 0
scripts/xrec_1b.sh View File

@@ -0,0 +1,39 @@
#!/bin/bash

export DISPLAY=:2.0
export KWIN_COMPOSE=N
export XDG_RUNTIME_DIR=/run/user/1001
export KDE_FULL_SESSION=true
export XDG_SESSION_DESKTOP=KDE
export XDG_CURRENT_DESKTOP=KDE
export XDG_SESSION_TYPE=x11
export KDE_SESSION_UID=1001
# export KDE_SESSION_VERSION=5
export QT_ACCESSIBILITY=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0

export XCURSOR_SIZE=0
export XCURSOR_THEME=oxy-zion
export XDG_CONFIG_DIRS=/etc/xdg/xdg-/usr/share/xsessions/plasma:/usr/share/kxstudio/menu:/etc/xdg

export XDG_DATA_DIRS=/usr/share//usr/share/xsessions/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
# export XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
# export XDG_SEAT=seat0
export XDG_SESSION_CLASS=user
# export XDG_SESSION_ID=29
# export XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session11
export XDG_VTNR=1

# sudo mkdir /run/user/1001
# sudo chmod 700 /run/user/1001
# sudo chown falk:falk /run/user/1001

export $(dbus-launch)

rm -rf /home/falk/.{a,c,g,h,j,k,l,m,w}*
kxstudio-welcome --live-dvd

plasmashell
kwin_x11 &
sleep 3
kwin_x11 --replace

+ 4
- 0
update-configs.sh View File

@@ -0,0 +1,4 @@
#!/bin/bash

sudo cp -R config config-theme welcome /usr/share/kxstudio/
sudo chmod 755 -R /usr/share/kxstudio/

+ 4
- 4
welcome/welcome.py View File

@@ -8,7 +8,6 @@ from PyQt5.QtCore import pyqtSignal, QSettings, QTimer, QThread
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtWidgets import QApplication, QMessageBox, QWizard
from subprocess import getoutput
from time import sleep
import os, sys

# ----------------------------------------------
@@ -95,6 +94,7 @@ CONFIG_THEME = (
"hydrogen/hydrogen.conf",
"phasex/phasex.cfg",

"gtkrc-2.0",
"config/fontconfig/fonts.conf",
"config/gtk-3.0/settings.ini",
"config/linuxsampler.org/Qsampler.conf",
@@ -103,6 +103,7 @@ CONFIG_THEME = (
"config/rncbc.org/Qsynth.conf",
"config/rncbc.org/Qtractor.conf",
"config/rosegardenmusic/Rosegarden.conf",
"config/breezerc",
"config/gtkrc",
"config/gtkrc-2.0",
"config/kcmdisplayrc",
@@ -183,6 +184,8 @@ def do_copy_theme(fontSize, copy_all=False):
os.system('cp "%s/mozilla/firefox/default/chrome/userContent.css" "%s"' % (CONFIG_THEME_DIR, foxFolder))

def do_wine_stuff():
return

if not os.path.exists("/usr/bin/wineboot"):
return

@@ -247,7 +250,6 @@ class CopyStuffThread(QThread):
# Settings
self.setLabelPixmap.emit(ID_GROUP_SETTINGS, ID_PIXMAP_PROCESS)
if self._copy:
sleep(1)
if self._copy_all:
do_copy_all()
elif self._copy_basic:
@@ -257,7 +259,6 @@ class CopyStuffThread(QThread):
# Theme
self.setLabelPixmap.emit(ID_GROUP_THEME, ID_PIXMAP_PROCESS)
if self._copy_theme:
sleep(1)
do_copy_theme(self._font_size)
self.setLabelPixmap.emit(ID_GROUP_THEME, ID_PIXMAP_DONE)

@@ -270,7 +271,6 @@ class CopyStuffThread(QThread):
# Final
self.setLabelPixmap.emit(ID_GROUP_FINAL, ID_PIXMAP_PROCESS)
if self._copy:
sleep(1)
do_final_stuff()
self.setLabelPixmap.emit(ID_GROUP_FINAL, ID_PIXMAP_DONE)



+ 1
- 1
welcome/welcome.ui View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>702</width>
<height>634</height>
<height>640</height>
</rect>
</property>
<property name="windowTitle">


Loading…
Cancel
Save