diff options
author | CyrIng | 2015-12-04 19:40:03 +0100 |
---|---|---|
committer | CyrIng | 2015-12-04 19:40:03 +0100 |
commit | 700d9a9ae957304f42854c11a175e9e528322961 (patch) | |
tree | 1555c39d8dae9213beadf69a49d08522abb0e0b9 | |
parent | 24b92304ee6ae5f369f021d58c8cdcd0ec6b582c (diff) | |
download | aur-700d9a9ae957304f42854c11a175e9e528322961.tar.gz |
Compute WIDTH and HEIGHT of screen
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rwxr-xr-x | xdm-xfreq.rc | 4 |
3 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = xdm-xfreq pkgdesc = A customized XDM for XFreq - pkgver = 0.5 + pkgver = 0.6 pkgrel = 1 url = http://github.com/cyring/xdm-xfreq install = xdm-xfreq.install @@ -1,7 +1,7 @@ # Maintainer: CyrIng <xfreq[at]cyring[dot]fr> # Contributor: CyrIng <xfreq[at]cyring[dot]fr> pkgname=xdm-xfreq -pkgver=0.5 +pkgver=0.6 pkgrel=1 pkgdesc="A customized XDM for XFreq" arch=(any) diff --git a/xdm-xfreq.rc b/xdm-xfreq.rc index b235721025dc..359075822408 100755 --- a/xdm-xfreq.rc +++ b/xdm-xfreq.rc @@ -1,5 +1,7 @@ #!/bin/sh +read WIDTH HEIGHT <<< $(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $4}') + # Keyboard NumLock ON # XDM_XFREQ_KEYB_LED_PATH=numlockx # XDM_XFREQ_KEYB_LED_ARGS="" @@ -23,7 +25,7 @@ XDM_XFREQ_CLOCK_PID="/var/run/xdm-xfreq-clock.pid" # Buttons settings XDM_XFREQ_BUTTONS_PATH=xmessage -XDM_XFREQ_BUTTONS_ARGS="-geometry 2304x32+0-0" +XDM_XFREQ_BUTTONS_ARGS="-geometry $(( $WIDTH - 256 ))x32+0-0" XDM_XFREQ_BUTTONS_PID="/var/run/xdm-xfreq-buttons.pid" XDM_XFREQ_BUTTONS_MENU="-buttons \:\):99,PowerOff:11,Halt:12,Reboot:13,Sleep:14,Rescue:15" XDM_XFREQ_BUTTONS_PWROFF="-buttons PowerOff?:11,Cancel?:12 -default Cancel? -timeout 6" |