[display] Office layout now includes monitor on right

- Check for layout wallpaper before setting it
- Ignores the bg-saved.cfg file in git
This commit is contained in:
Abhay Rana 2016-01-25 16:59:02 +05:30
parent e4be7ff15d
commit e0540a4410
5 changed files with 10 additions and 7 deletions

View File

@ -366,7 +366,9 @@ function display() {
`cd ~/.screenlayout && sh $1.sh`
# Write the current layout
echo $1 > ~/.screenlayout/current
(cd ~/Pictures && cp "$1.jpg" "./xin_1.jpg")
if [[ -e "~/Pictures/$1.jpg" ]]; then
(cd ~/Pictures && cp "$1.jpg" "./xin_1.jpg")
fi
nitrogen --restore
}

View File

@ -9,6 +9,6 @@ mode=4
bgcolor=#000000
[xin_1]
file=/home/nemo/Pictures/xin_1.jpg
file=/home/nemo/Pictures/korra-1920x1080.jpg
mode=4
bgcolor=#000000

View File

@ -1,8 +1,8 @@
[geometry]
posx=1080
posy=840
sizex=1920
sizey=1062
posx=965
posy=626
sizex=945
sizey=1040
[nitrogen]
view=icon

1
files/display/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.config/nitrogen/bg-saved.cfg

View File

@ -1,2 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 1080x840 --rotate normal --output DP1 --mode 1920x1080 --pos 0x0 --rotate left --output HDMI2 --off --output HDMI1 --off --output VGA1 --off
xrandr --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 0x432 --rotate normal --output DP1 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI2 --off --output HDMI1 --off --output VGA1 --off