dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 880c9e4477c7144b5f5c35e6c197c62d950597ed
parent b3929c2a9734c0bb691e66403edeca4bfa7aa5d8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 25 Nov 2020 09:13:59 +0100

Merge branch 'master' of src.adamsgaard.dk:dotfiles into master

Diffstat:
M.local/bin/screenrecord | 2+-
M.local/bin/surf-open.sh | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.local/bin/screenrecord b/.local/bin/screenrecord @@ -9,7 +9,7 @@ startrecording() { sndioctl -q input.level=1.0 - if test "$(xdpyinfo | awk '/dimensions/ {sub(/x.*/, "", $2); print $2}')" -gt 2000; then + if test "$(xdpyinfo | awk '/dimensions/ {sub(/.*x/, "", $2); print $2}')" -gt 1500; then xrandr --output "$screen" --mode 1920x1080 fi diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -14,7 +14,7 @@ if command -v surf-clean-cookies >/dev/null 2>&1; then fi screen_resolution() { - xdpyinfo | awk '/screen #0/ {getline; gsub(/x.*/, "", $2); print $2; exit}' + xdpyinfo | awk '/screen #0/ {getline; gsub(/.*x/, "", $2); print $2; exit}' } runtabbed() { @@ -24,7 +24,7 @@ runtabbed() { } opensurf() { zoomlevel="1.0" - if [ "$(screen_resolution)" -gt 3000 ]; then + if [ "$(screen_resolution)" -gt 1500 ]; then zoomlevel="2.5" fi nohup $prefix surf $SURFFLAGS -z "$zoomlevel" -e "$xid" \