From 7e306773218856e4f2174a3980f7e05a60840c91 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Sun, 30 Dec 2018 13:55:26 +0100 Subject: [PATCH] Add QT theme Signed-off-by: Severin Kaderli --- README.md | 9 +++++- install.sh | 1 + system/.config/Trolltech.conf | 45 +++++++++++++++++++++++++++++ system/.config/dunst/dunstrc | 2 +- system/.config/gtk-3.0/settings.ini | 3 +- system/.config/i3/config | 7 ++--- system/.config/polybar/config | 2 +- system/.env | 11 +++++-- system/.gtkrc-2.0 | 2 +- system/.gtkrc-2.0.mine | 2 +- system/.xsetup | 7 +++-- system/bin/screenlock.sh | 4 +-- 12 files changed, 78 insertions(+), 17 deletions(-) create mode 100644 system/.config/Trolltech.conf diff --git a/README.md b/README.md index 9414196..13f7db7 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,14 @@ temperature of my screens depending on the time of day. This folder contains my [Streamlink](https://streamlink.github.io/) configuration. I use it to directly watch Twitch livestreams in a local video player. ### `.config/termite` -This folder contains my configuration for my terminal emulator [Termite](https://github.com/thestinger/termite). +This folder contains my configuration for my terminal emulator +[Termite](https://github.com/thestinger/termite). + +### `.config/compton.conf` +This file contains my [compton](https://github.com/chjj/compton) configuration. + +### `.config/Trolltech.conf` +This file contains my QT4 configuration. ### `bin` This folder contains a bunch of scripts that I use. Some of them are used by Polybar or i3 and others are used directly and some like `utils.sh` contain functions that I use in other scripts. diff --git a/install.sh b/install.sh index 4a22e12..f622435 100755 --- a/install.sh +++ b/install.sh @@ -41,6 +41,7 @@ LINKED_FILES_HOME=( ".config/redshift" ".config/streamlink" ".config/termite" + ".config/Trolltech.conf" ".crontab" ".dircolors" ".env" diff --git a/system/.config/Trolltech.conf b/system/.config/Trolltech.conf new file mode 100644 index 0000000..8770b3f --- /dev/null +++ b/system/.config/Trolltech.conf @@ -0,0 +1,45 @@ +[Qt%20Plugin%20Cache%204.8.false] +usr\lib\qt4\plugins\inputmethods\libqimsw-multi.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\inputmethods\libqtim-ibus.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-23T01:55:32 +usr\lib\keepassx2\libkeepassx-autotype-x11.so=40807, 0, x86_64 linux g++-4 full-config, 2018-11-10T01:22:38 +usr\lib\qt4\plugins\iconengines\libqsvgicon.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\imageformats\libqgif.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\imageformats\libqico.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\imageformats\libqjpeg.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\imageformats\libqmng.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\imageformats\libqsvg.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 +usr\lib\qt4\plugins\imageformats\libqtiff.so=40807, 0, x86_64 linux g++-4 full-config, 2018-10-22T23:10:59 + +[Qt%20Factory%20Cache%204.8] +com.trolltech.Qt.QInputContextFactoryInterface%3A\usr\lib\qt4\plugins\inputmethods\libqimsw-multi.so=2018-10-22T23:10:59, imsw-multi +com.trolltech.Qt.QInputContextFactoryInterface%3A\usr\lib\qt4\plugins\inputmethods\libqtim-ibus.so=2018-10-23T01:55:32, ibus +com.trolltech.Qt.QIconEngineFactoryInterfaceV2%3A\usr\lib\qt4\plugins\iconengines\libqsvgicon.so=2018-10-22T23:10:59, svg, svgz, svg.gz +com.trolltech.Qt.QIconEngineFactoryInterface%3A\usr\lib\qt4\plugins\iconengines\libqsvgicon.so=2018-10-22T23:10:59 +com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqgif.so=2018-10-22T23:10:59, gif +com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqico.so=2018-10-22T23:10:59, ico +com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqjpeg.so=2018-10-22T23:10:59, jpeg, jpg +com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqmng.so=2018-10-22T23:10:59, mng +com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqsvg.so=2018-10-22T23:10:59, svg, svgz +com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqtiff.so=2018-10-22T23:10:59, tiff, tif + +[Qt] +filedialog=@ByteArray(\0\0\0\xbe\0\0\0\x3\0\0\0\x1e\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\0]\0\0\xe\0\x1\0\0\0\x4\x1\0\0\0\x1\0\0\0\x2\0\0\0\x5\x66ile:\0\0\0\x14\x66ile:///home/severin\0\0\0\x1\0\0\0\x32\0/\0h\0o\0m\0\x65\0/\0s\0\x65\0v\0\x65\0r\0i\0n\0/\0G\0o\0o\0g\0l\0\x65\0\x44\0r\0i\0v\0\x65\0\0\0\x32\0/\0h\0o\0m\0\x65\0/\0s\0\x65\0v\0\x65\0r\0i\0n\0/\0G\0o\0o\0g\0l\0\x65\0\x44\0r\0i\0v\0\x65\0\0\0~\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xf1\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0r\0\0\0\x1\0\0\0\0\0\0\0\x1) +font="Noto Sans,9,-1,5,87,0,0,0,0,0" +Palette\active=#000000, #d4d0c8, #ffffff, #e9e7e3, #6a6864, #a0a0a4, #000000, #ffffff, #000000, #ffffff, #d4d0c8, #000000, #000080, #ffffff, #0000ff, #ff00ff, #e9e7e3, #000000, #ffffdc, #000000 +Palette\inactive=#000000, #d4d0c8, #ffffff, #e9e7e3, #6a6864, #a0a0a4, #000000, #ffffff, #000000, #ffffff, #d4d0c8, #000000, #000080, #ffffff, #0000ff, #ff00ff, #e9e7e3, #000000, #ffffdc, #000000 +Palette\disabled=#6a6864, #d4d0c8, #ffffff, #e9e7e3, #6a6864, #a0a0a4, #6a6864, #ffffff, #6a6864, #d4d0c8, #d4d0c8, #000000, #000080, #ffffff, #0000ff, #ff00ff, #e9e7e3, #000000, #ffffdc, #000000 +fontPath=@Invalid() +embedFonts=true +style=GTK+ +doubleClickInterval=400 +cursorFlashTime=1000 +wheelScrollLines=3 +resolveSymlinks=false +globalStrut\width=0 +globalStrut\height=0 +useRtlExtensions=false +XIMInputStyle=On The Spot +DefaultInputMethod=xim +audiosink=Auto +videomode=Auto +GUIEffects=none diff --git a/system/.config/dunst/dunstrc b/system/.config/dunst/dunstrc index 232f89d..c3e650d 100644 --- a/system/.config/dunst/dunstrc +++ b/system/.config/dunst/dunstrc @@ -10,7 +10,7 @@ # USAGE: # This file is automatically used by dunst. [global] -font = Roboto 12 +font = Noto Sans 12 # Allow a small subset of html markup: # bold diff --git a/system/.config/gtk-3.0/settings.ini b/system/.config/gtk-3.0/settings.ini index 762f24f..3879c4e 100644 --- a/system/.config/gtk-3.0/settings.ini +++ b/system/.config/gtk-3.0/settings.ini @@ -9,10 +9,11 @@ # # USAGE: # This file is automatically used by GTK. + [Settings] gtk-theme-name=Adapta-Nokto gtk-icon-theme-name=Paper-Mono-Dark -gtk-font-name=Roboto 11 +gtk-font-name=Noto Sans 11 gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR diff --git a/system/.config/i3/config b/system/.config/i3/config index d833f4f..139b696 100644 --- a/system/.config/i3/config +++ b/system/.config/i3/config @@ -32,7 +32,7 @@ new_window none # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:Roboto, Font Awesome 5 Free 15px +font pango:Noto Sans, Font Awesome 5 Free 15px # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -201,9 +201,8 @@ bindsym $mod+$alt+Right move workspace to output right ####################################### # Startup applications ####################################### - -# Merge .Xresources on boot -exec xrdb -merge $HOME/.Xresources +# Dunst + exec --no-startup-id dunst # Compton exec --no-startup-id compton -b diff --git a/system/.config/polybar/config b/system/.config/polybar/config index 8268d22..0fd2df1 100644 --- a/system/.config/polybar/config +++ b/system/.config/polybar/config @@ -26,7 +26,7 @@ foreground = ${colors.foreground} padding-right = 2 module-margin = 2 -font-0 = Roboto:pixelsize=12;3 +font-0 = Noto Sans:pixelsize=12;3 font-1 = Font Awesome 5 Free:style=Solid::pixelsize=12;3 font-2 = Font Awesome 5 Brands:pixelsize=12;3 font-3 = siji:pixelsize=12;3 diff --git a/system/.env b/system/.env index 6e475c2..eeedbfc 100644 --- a/system/.env +++ b/system/.env @@ -22,7 +22,10 @@ export HISTFILESIZE=2000 export VISUAL=vim export EDITOR="$VISUAL" export TERMINAL=termite -export QT_QPA_PLATFORMTHEME=qt5ct + +# QT +export T_QPA_PLATFORMTHEME=gtk2 +export QT_STYLE_OVERRIDE=gtk2 # Ibus export GTK_IM_MODULE=xim @@ -38,7 +41,6 @@ export STAGING_SHARED_MEMORY=1 export STAGING_RT_PRIORITY_SERVER=90 export WINEESYNC=1 export PBA_ENABLE=1 -#export LD_PRELOAD="libpthread.so.0 libGL.so.1" export __GL_THREADED_OPTIMIZATIONS=1 export __GL_SYNC_TO_VBLANK=0 export __GL_YIELD=NOTHING @@ -46,8 +48,11 @@ export __GL_YIELD=NOTHING # npm export npm_config_prefix="$HOME/.node_modules" +# Go +export GOPATH=$HOME/go + # Adding folders to the PATH variable -export PATH="$PATH:$HOME/bin:$HOME/.node_modules/bin" +export PATH="$PATH:$HOME/bin:$npm_config_prefix/bin:$GOPATH/bin" # Set bash prompt set_bash_prompt() { diff --git a/system/.gtkrc-2.0 b/system/.gtkrc-2.0 index ddd0bd2..aacc7d1 100644 --- a/system/.gtkrc-2.0 +++ b/system/.gtkrc-2.0 @@ -4,7 +4,7 @@ include "/home/severin/.gtkrc-2.0.mine" gtk-theme-name="Adapta-Nokto" gtk-icon-theme-name="Paper-Mono-Dark" -gtk-font-name="Roboto 11" +gtk-font-name="Noto Sans 11" gtk-cursor-theme-name="Paper" gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH diff --git a/system/.gtkrc-2.0.mine b/system/.gtkrc-2.0.mine index 37311ef..e31bb00 100644 --- a/system/.gtkrc-2.0.mine +++ b/system/.gtkrc-2.0.mine @@ -12,7 +12,7 @@ gtk-theme-name="Adapta-Nokto" gtk-icon-theme-name="Paper-Mono-Dark" -gtk-font-name="Roboto 11" +gtk-font-name="Noto Sans 11" gtk-cursor-theme-name="Paper" gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH diff --git a/system/.xsetup b/system/.xsetup index 3d4fac2..726f18e 100644 --- a/system/.xsetup +++ b/system/.xsetup @@ -20,9 +20,12 @@ xset s noblank setxkbmap -model pc105 -layout ch # Start redshift -redshift& +redshift & + +# Merge .Xresources on boot +xrdb -merge $HOME/.Xresources # Start ibus #ibus-daemon -drx -. "${HOME}/bin/resolution.sh" \ No newline at end of file +. "${HOME}/bin/resolution.sh" diff --git a/system/bin/screenlock.sh b/system/bin/screenlock.sh index 212a023..3cf2f7d 100755 --- a/system/bin/screenlock.sh +++ b/system/bin/screenlock.sh @@ -7,9 +7,9 @@ # Severin Kaderli # # DESCRIPTION: -# This script locks the screen using lightdm. This script is called +# This script locks the screen using i3lock-fancy. This script is called # using a custom i3 keybinding. # # USAGE: # ./screenlock.sh -dm-tool lock \ No newline at end of file +i3lock-fancy -f "Noto Sans" \ No newline at end of file