aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-10 11:05:44 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-10 11:10:17 +0200
commit8d5839f2a160915712e6561705ed17f6aee1f43f (patch)
tree498aa2628d123e9022a2df85eba753ab3b239a8b /config
parentb6b852e8bf5faaadfe3dde9896aa0e06140fc6c8 (diff)
downloaddotfiles-8d5839f2a160915712e6561705ed17f6aee1f43f.tar.gz
dotfiles-8d5839f2a160915712e6561705ed17f6aee1f43f.tar.bz2
dotfiles-8d5839f2a160915712e6561705ed17f6aee1f43f.zip
Awesome Host configuration for screen and start programs
Diffstat (limited to 'config')
-rw-r--r--config/awesome/rc.lua19
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")