diff options
Diffstat (limited to 'config/awesome/rc.lua')
-rw-r--r-- | config/awesome/rc.lua | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 08a5794..f085979 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -44,14 +44,21 @@ local hostname = io.popen("uname -n"):read() -- Setup laptop screen -- awful.spawn.with_shell("nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1") -- load the gpu performance profile saved in home -- 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("xinput --set-prop \"SYN1B7E:01 06CB:2970 Touchpad\" \"Synaptics Two-Finger Scrolling\" 1 1") +-- 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 +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. -beautiful.init(gears.filesystem.get_themes_dir() .. "zenburn/theme.lua") - +beautiful.init(string.format("%s/.config/awesome/%s.lua", os.getenv("HOME"), "zenburn-theme")) -- This is used later as the default software to run local tools = { terminal = "alacritty", @@ -63,7 +70,7 @@ local tools = { video = "vlc", pass = "passmenu", rofi_run = "rofi -show combi", - habit = "/home/titan/dev/helpful_scripts/guile/habit.scm", + habit = string.format("%s/dev/dotfiles/bin/habit", os.getenv("HOME")), } -- Default modkey. @@ -80,7 +87,7 @@ awful.layout.layouts = { -- awful.layout.suit.tile.left, -- awful.layout.suit.tile.bottom, -- awful.layout.suit.tile.top, - -- awful.layout.suit.fair.horizontal, + awful.layout.suit.fair.horizontal, awful.layout.suit.spiral, -- awful.layout.suit.spiral.dwindle, -- awful.layout.suit.max, @@ -155,7 +162,7 @@ local tasklist_buttons = gears.table.join( local function set_wallpaper(s) local wallpaper = awful.util.getdir("config") .. "brown-hair-brunette-green-eyes.jpg" - gears.wallpaper.maximized(wallpaper, s, true) + gears.wallpaper.maximized(wallpaper, s, false) end -- Re-set wallpaper when a screen's geometry changes (e.g. different resolution) @@ -611,12 +618,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") |