From 0ad11de796d2b5657757fd7b860bf1f4938af4c7 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 23 Jan 2024 16:48:32 -0500 Subject: Auto-set layout on workstation --- .config/startup/intern | 8 -------- .config/startup/workstation | 3 +++ .profile | 16 ++++++++-------- 3 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 .config/startup/intern diff --git a/.config/startup/intern b/.config/startup/intern deleted file mode 100644 index d6ae6bd..0000000 --- a/.config/startup/intern +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# Pipewire setup: -dbus-launch --sh-syntax --exit-with-session; pulseaudio --kill; pipewire & - -# Standard dual screen layout -$HOME/.screenlayout/office.sh & - diff --git a/.config/startup/workstation b/.config/startup/workstation index 413e79a..afbc776 100755 --- a/.config/startup/workstation +++ b/.config/startup/workstation @@ -6,5 +6,8 @@ gentoo-pipewire-launcher & # Autolock the screen after 5 minutes with xautolock (slock) xautolock -time 5 -locker slock & +# Configure monitor layout (and wallpaper) +"$XDG_CONFIG_HOME/screenlayout/workstation-singlemon" & + # Automatically start dropbox dropbox start & diff --git a/.profile b/.profile index c35dc08..c960b88 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,6 @@ # Path export SCRIPTS=$HOME/.local/bin -export PATH=$PATH$( find $SCRIPTS/ -type d -printf ":%p" ) +export PATH=$PATH$(find $SCRIPTS/ -type d -printf ":%p") export GOPATH=$HOME/.go export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$HOME/.cargo/bin @@ -25,11 +25,11 @@ export TEXMFHOME=$XDG_DATA_HOME/texmf export TEXSRC=$HOME/.local/src/sherbrooke-tex # Applications -export EDITOR=$(which nvim) -export READER=$(which zathura) -export TERMINAL=$(which alacritty) -export TERM=$(which alacritty) -export BROWSER=$(which firefox) +export EDITOR=/usr/bin/nvim +export READER=/usr/bin/zathura +export TERMINAL=/usr/bin/alacritty +export TERM=/usr/bin/alacritty +export BROWSER=/usr/bin/firefox # less/man colors export LESS=-R @@ -47,10 +47,10 @@ aliasgen # Ensure XDG_RUNTIME_DIR is set if test -z "$XDG_RUNTIME_DIR"; then - export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) + export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) fi # Start Desktop Environment if on the main TTY if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then - startx + startx fi -- cgit v1.2.3