mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
add redshift
This commit is contained in:
parent
fdb315d437
commit
0f549f233d
20
pkg/de-p1st-redshift/PKGBUILD
Normal file
20
pkg/de-p1st-redshift/PKGBUILD
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||||
|
_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
|
||||||
|
}
|
12
pkg/de-p1st-redshift/redshift.desktop
Normal file
12
pkg/de-p1st-redshift/redshift.desktop
Normal file
@ -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
|
49
pkg/de-p1st-redshift/redshift.md
Normal file
49
pkg/de-p1st-redshift/redshift.md
Normal file
@ -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
|
||||||
|
```
|
@ -1,14 +1,15 @@
|
|||||||
## arg 1: the new package version
|
## arg 1: the new package version
|
||||||
post_install() {
|
post_install() {
|
||||||
# Show desktop icons on primary desktop,
|
holo apply
|
||||||
# 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
|
## arg 1: the new package version
|
||||||
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2
|
## arg 2: the old package version
|
||||||
|
post_upgrade() {
|
||||||
|
holo apply
|
||||||
}
|
}
|
||||||
|
|
||||||
## arg 1: the old package version
|
## arg 1: the old package version
|
||||||
post_remove() {
|
post_remove() {
|
||||||
# TODO: restore previous xfconf values
|
holo apply
|
||||||
true
|
}
|
||||||
}
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
_pkgname=xfce4
|
_pkgname=xfce4
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.3
|
pkgver=0.0.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="XFCE4 with configuration"
|
pkgdesc="XFCE4 with configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@ -41,6 +41,9 @@ depends+=(gvfs)
|
|||||||
# keyring/secrets
|
# keyring/secrets
|
||||||
# -> https://wiki.archlinux.org/index.php/GNOME/Keyring
|
# -> https://wiki.archlinux.org/index.php/GNOME/Keyring
|
||||||
depends+=(gnome-keyring libsecret)
|
depends+=(gnome-keyring libsecret)
|
||||||
|
#
|
||||||
|
# bluelight filter
|
||||||
|
depends+=(de-p1st-redshift)
|
||||||
|
|
||||||
# ============== display manager ==============
|
# ============== display manager ==============
|
||||||
depends+=(sddm)
|
depends+=(sddm)
|
||||||
@ -53,7 +56,7 @@ depends+=(network-manager-applet) # depends on networkmanager
|
|||||||
# gtk and qt theme
|
# gtk and qt theme
|
||||||
depends+=(de-p1st-theme)
|
depends+=(de-p1st-theme)
|
||||||
#
|
#
|
||||||
# x11 keyboard layouts (TODO: move this to xorg package)
|
# x11 keyboard layouts
|
||||||
depends+=(de-p1st-keyboard-x11)
|
depends+=(de-p1st-keyboard-x11)
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
<channel name="xfce4-desktop" version="1.0">
|
<channel name="xfce4-desktop" version="1.0">
|
||||||
<property name="desktop-icons" type="empty">
|
<property name="desktop-icons" type="empty">
|
||||||
|
<!-- Show desktop icons on primary desktop,
|
||||||
|
otherwise some of them might be invisible (as they are too far down the screen)
|
||||||
|
when using HiDPI-->
|
||||||
<property name="primary" type="bool" value="true"/>
|
<property name="primary" type="bool" value="true"/>
|
||||||
</property>
|
</property>
|
||||||
</channel>
|
</channel>
|
Loading…
Reference in New Issue
Block a user