diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/awesome/rc.lua | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index c7d88e4..b5b13ad 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -46,9 +46,15 @@ local hostname = io.popen("uname -n"):read() -- awful.spawn.with_shell("xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --output HDMI-2 --primary --mode 1920x1080 --pos 1920x0") -- awful.spawn.with_shell("xrandr --output eDP-1 --mode 1920x1080 --pos 0x360 --output HDMI-2 --primary --mode 3440x1440 --pos 1920x0") -- awful.spawn.with_shell("xrandr --output HDMI-A-0 --mode 1920x1080 --rotate right --output DisplayPort-0 --mode 3440x1440 --pos 1080x0") -- vertical -awful.spawn.with_shell("xrandr --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --output DisplayPort-0 --primary --mode 3440x1440 --pos 1920x0") -awful.spawn.with_shell("xinput --set-prop \"SYN1B7E:01 06CB:2970 Touchpad\" \"Synaptics Two-Finger Scrolling\" 1 1") +if "obp" == hostname then + awful.spawn.with_shell("xrandr --output eDP --primary --mode 1920x1200 --pos 0x240 --rotate normal --output HDMI-A-0 --mode 3440x1440 --pos 1920x0 --rotate normal") +else + awful.spawn.with_shell("xrandr --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --output DisplayPort-0 --primary --mode 3440x1440 --pos 1920x0") +end +if "titanroam" then + awful.spawn.with_shell("xinput --set-prop \"SYN1B7E:01 06CB:2970 Touchpad\" \"Synaptics Two-Finger Scrolling\" 1 1") +end -- {{{ Variable definitions -- Themes define colours, icons, font and wallpapers. @@ -613,12 +619,15 @@ local function run_once(cmd) awful.spawn.with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")") end -run_once("nextcloud") run_once("light-locker") run_once("redshift-gtk") -run_once("udisksctl mount -b /dev/disk/by-label/ext_backup") run_once("nm-applet") -run_once("aw-qt") + +if ("obp" ~= hostname) then + run_once("nextcloud") + run_once("udisksctl mount -b /dev/disk/by-label/ext_backup") + run_once("aw-qt") +end -- Autostart script for keymaps awful.spawn.with_shell("setxkbmap -I~/.config/xkb/ oscar -option caps:escape -print | xkbcomp -I$HOME/.config/xkb/ - $DISPLAY") |