Switch to gnu stow and add emacs pdf-tools

This commit is contained in:
Marco Thomas
2022-01-24 09:23:32 +01:00
parent 8632359365
commit 888c9819e9
35 changed files with 714 additions and 87 deletions

27
scripts/laptop/monitor.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
mon=$1
# when using a laptop, i want to easily switch screens
if [ "$(hostname)" = "itomori" ]; then
if [ ${mon} == "external" ]; then
notify-send -i /usr/share/icons/Papirus/48x48/devices/computer.svg "Screen update" "Switching to external monitor..."
sleep 2
# set layout for external monitor
$HOME/.screenlayout/external.sh
# built in screen has higher dpi, so scale the bigger one
xrandr --output DP-1 --scale 1.4
xrandr --output DP-2 --scale 1.4
xrandr --output DP-3 --scale 1.4
xrandr --output DP-4 --scale 1.4
elif [ ${mon} == "single" ]; then
notify-send -i /usr/share/icons/Papirus/48x48/devices/computer.svg "Screen update" "Switching to single monitor..."
sleep 2
# set layout for built in display
xrandr --output eDP-1 --mode 2880x1800 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off
fi
fi
# reload wallpaper etc
$HOME/dots/scripts/reload_desktop.sh

View File

@@ -1,21 +0,0 @@
#!/bin/bash
mon=$1
if [ ${mon} == "dual" ]; then
notify-send -i /usr/share/icons/Papirus/48x48/devices/computer.svg "Screen update" "Switching to dual monitor..."
sleep 2
# set layout for dual monitor at home
xrandr --output eDP-1 --mode 2880x1800 --pos 4816x1474 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --primary --mode 3440x1440 --pos 0x0 --rotate normal --output DP-4 --off
# built in screen has higher dpi, so scale the bigger one
xrandr --output DP-3 --scale 1.4
elif [ ${mon} == "single" ]; then
notify-send -i /usr/share/icons/Papirus/48x48/devices/computer.svg "Screen update" "Switching to single monitor..."
sleep 2
# set layout for built in display
xrandr --output eDP-1 --mode 2880x1800 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off
fi
# reload wallpaper etc
$HOME/dots/scripts/reload_desktop.sh

View File

@@ -6,12 +6,12 @@ notify-send -i /usr/share/icons/Papirus/48x48/devices/computer-laptop.svg "Reloa
# bar
killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
$HOME/dots/scripts/polybar.sh
$HOME/dots/scripts/polybar/polybar.sh
# wallpaper
feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper.png
# for some reason xmodmap and xset settings reset
# for some reason xmodmap and xset settings reset sometimes
source $HOME/.profile
# send notification