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 /xdm-xfreq.rc | |
parent | 24b92304ee6ae5f369f021d58c8cdcd0ec6b582c (diff) | |
download | aur-700d9a9ae957304f42854c11a175e9e528322961.tar.gz |
Compute WIDTH and HEIGHT of screen
Diffstat (limited to 'xdm-xfreq.rc')
-rwxr-xr-x | xdm-xfreq.rc | 4 |
1 files changed, 3 insertions, 1 deletions
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" |