diff --git a/pkg/de-p1st-redshift/PKGBUILD b/pkg/de-p1st-redshift/PKGBUILD new file mode 100644 index 0000000..a02dfa8 --- /dev/null +++ b/pkg/de-p1st-redshift/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Daniel Langbein +_pkgname=redshift +_reponame=arch +pkgname="de-p1st-$_pkgname" +pkgver=0.0.1 +pkgrel=1 +pkgdesc="redshift with configuration" +arch=('any') +url="https://codeberg.org/privacy1st/${_reponame}" +license=('MIT') +depends=('redshift') +makedepends=('git') +source=("git+${url}.git") +sha256sums=('SKIP') + +package() { + cd "${_reponame}/pkg/${pkgname}" + + install -Dm0644 redshift.desktop "$pkgdir"/etc/skel/.config/autostart/redshift.desktop +} diff --git a/pkg/de-p1st-redshift/redshift.desktop b/pkg/de-p1st-redshift/redshift.desktop new file mode 100644 index 0000000..a6b1813 --- /dev/null +++ b/pkg/de-p1st-redshift/redshift.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=0.9.4 +Type=Application +Name=redshift +Comment=redshift +Exec=/usr/bin/redshift -t 4400:4400 -l 13:37 -r +OnlyShowIn=XFCE; +RunHook=0 +StartupNotify=false +Terminal=false +Hidden=false diff --git a/pkg/de-p1st-redshift/redshift.md b/pkg/de-p1st-redshift/redshift.md new file mode 100644 index 0000000..1343506 --- /dev/null +++ b/pkg/de-p1st-redshift/redshift.md @@ -0,0 +1,49 @@ +# redsihft + +``` +sudo pacman -S --needed redshift +``` + +* Session and Startup -> add entry + -> on Login execute `redshift -l 49.5:10.9` + (for Erlangen, Germany) + +## config + +[redshift repo](https://github.com/jonls/redshift) + +[redshift sample config](https://raw.githubusercontent.com/jonls/redshift/master/redshift.conf.sample) + +Config file: Linux/macOS: `~/.config/redshift/redshift.conf` +(if the environment variable `XDG_CONFIG_HOME` is undefined) +or `${XDG_CONFIG_HOME}/redshift/redshift.conf` (if `XDG_CONFIG_HOME` +is defined). + +``` +mkdir -p ~/.config/redshift + +cat >~/.config/redshift/redshift.conf <<'EOF' +[redshift] +temp-day=5000 +temp-night=3800 + +; Disable the smooth fade between temperatures when Redshift starts and stops. +; 0 will cause an immediate change between screen temperatures. +; 1 will gradually apply the new screen temperature over a couple of seconds. +fade=1 + +; Custom dawn/dusk intervals. +; Instead of using the solar elevation, the time intervals of dawn and dusk +; can be specified manually. The times must be specified as HH:MM in 24-hour +; format. +dawn-time=11:00-12:00 +dusk-time=15:00-16:00 +gamma=0.8 + +location-provider=manual +adjustment-method=randr +[manual] +lat=49.5 +lon=10.9 +EOF +``` diff --git a/pkg/de-p1st-xfce4-hidpi/.install b/pkg/de-p1st-xfce4-hidpi/.install index f34b029..b754ef5 100644 --- a/pkg/de-p1st-xfce4-hidpi/.install +++ b/pkg/de-p1st-xfce4-hidpi/.install @@ -1,14 +1,15 @@ ## arg 1: the new package version post_install() { - # Show desktop icons on primary desktop, - # otherwise some of them might be invisible (as they are too far down the screen) - xfconf-query --create -c xfce4-desktop -p /desktop-icons/primary -t 'bool' -s 'true' - # Double the scaling factor - xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2 + holo apply +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + holo apply } ## arg 1: the old package version post_remove() { - # TODO: restore previous xfconf values - true -} \ No newline at end of file + holo apply +} diff --git a/pkg/de-p1st-xfce4/PKGBUILD b/pkg/de-p1st-xfce4/PKGBUILD index ce92fe3..c3369cd 100644 --- a/pkg/de-p1st-xfce4/PKGBUILD +++ b/pkg/de-p1st-xfce4/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=xfce4 _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.3 +pkgver=0.0.4 pkgrel=1 pkgdesc="XFCE4 with configuration" arch=('any') @@ -41,6 +41,9 @@ depends+=(gvfs) # keyring/secrets # -> https://wiki.archlinux.org/index.php/GNOME/Keyring depends+=(gnome-keyring libsecret) +# +# bluelight filter +depends+=(de-p1st-redshift) # ============== display manager ============== depends+=(sddm) @@ -53,7 +56,7 @@ depends+=(network-manager-applet) # depends on networkmanager # gtk and qt theme depends+=(de-p1st-theme) # -# x11 keyboard layouts (TODO: move this to xorg package) +# x11 keyboard layouts depends+=(de-p1st-keyboard-x11) diff --git a/pkg/de-p1st-xfce4/xfce4-desktop.xml b/pkg/de-p1st-xfce4/xfce4-desktop.xml index f8d6064..946bf2f 100644 --- a/pkg/de-p1st-xfce4/xfce4-desktop.xml +++ b/pkg/de-p1st-xfce4/xfce4-desktop.xml @@ -2,6 +2,9 @@ + \ No newline at end of file