moved to another computer yay
This commit is contained in:
parent
f5e11cb169
commit
7ffb98ebbf
3 changed files with 31 additions and 43 deletions
|
@ -19,7 +19,10 @@ numlockx on &
|
||||||
###
|
###
|
||||||
# MONITORS
|
# MONITORS
|
||||||
###
|
###
|
||||||
if [ "`hostname`" = "beef-book" ]; then
|
if [ "`hostname`" = "setsuna" ]; then
|
||||||
|
bspc monitor "HDMI-A-1" -d 1 2 3 4 5 6 7
|
||||||
|
bspc monitor "DVI-D-0" -d 8 9
|
||||||
|
elif [ "`hostname`" = "beef-book" ]; then
|
||||||
if [ -n "`polybar -m | grep "DP-1"`" ]; then
|
if [ -n "`polybar -m | grep "DP-1"`" ]; then
|
||||||
# for docked desktop use: assign 2 workspaces to the second VGA monitor accordingly if it is connected
|
# for docked desktop use: assign 2 workspaces to the second VGA monitor accordingly if it is connected
|
||||||
if [ -n "`polybar -m | grep "VGA-0"`" ]; then
|
if [ -n "`polybar -m | grep "VGA-0"`" ]; then
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/dash
|
#!/bin/dash
|
||||||
|
|
||||||
|
if [ "`hostname`" = "freia" ]; then
|
||||||
choices="arandr\nLVDS_off\nLVDS_on\ndual"
|
choices="arandr\nLVDS_off\nLVDS_on\ndual"
|
||||||
|
|
||||||
chosen=$(echo "$choices" | dmenu -i)
|
chosen=$(echo "$choices" | dmenu -i)
|
||||||
|
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
|
@ -10,3 +10,22 @@ case "$chosen" in
|
||||||
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
|
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
|
||||||
dual) xrandr --output VGA-0 --mode 1024x768 --pos 1920x312 --rotate normal --output LVDS-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-5 --off --output LVDS-1-1 --off --output VGA-1-1 --off ;;
|
dual) xrandr --output VGA-0 --mode 1024x768 --pos 1920x312 --rotate normal --output LVDS-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-5 --off --output LVDS-1-1 --off --output VGA-1-1 --off ;;
|
||||||
esac
|
esac
|
||||||
|
elif [ "`hostname`" = "setsuna" ]; then
|
||||||
|
choices="arandr\nsingle (hdmi)\ndual (hdmi+dvi)"
|
||||||
|
chosen=$(echo "$choices" | dmenu -i)
|
||||||
|
case "$chosen" in
|
||||||
|
arandr) arandr ;;
|
||||||
|
"single (hdmi)") xrandr --output HDMI-A-1 --auto --output DVI-D-0 --off ;;
|
||||||
|
"dual (hdmi+dvi)") xrandr --output HDMI-A-1 --auto --output DVI-D-0 --auto --right-of HDMI-A-1 ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
choices="arandr"
|
||||||
|
chosen=$(echo "$choices" | dmenu -i)
|
||||||
|
|
||||||
|
case "$chosen" in
|
||||||
|
arandr) arandr ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
#choices="arandr\neDP_off\neDP_on\ndual"
|
||||||
|
#eDP_on) xrandr --output eDP --off & ;;
|
||||||
|
#eDP_off) xrandr --output eDP --auto ;;
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
(scroll-bar-mode -1)
|
|
||||||
(tool-bar-mode -1)
|
|
||||||
(tooltip-mode -1)
|
|
||||||
(set-fringe-mode 10)
|
|
||||||
(menu-bar-mode -1)
|
|
||||||
|
|
||||||
(setq frame-resize-pixelwise t) ;; fix for BSPWM
|
|
||||||
(setq visible-bell t)
|
|
||||||
|
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
|
||||||
("org" . "https://orgmode.org/elpa/")
|
|
||||||
("elpa" . "https://elpa.gnu.org/packages")))
|
|
||||||
(package-initialize)
|
|
||||||
(unless package-archive-contents
|
|
||||||
(package-refresh-contents))
|
|
||||||
|
|
||||||
(unless (package-installed-p 'use-package)
|
|
||||||
(package-install 'use-package))
|
|
||||||
|
|
||||||
(require 'use-package)
|
|
||||||
(setq use-package-always-ensure t)
|
|
||||||
|
|
||||||
(custom-set-variables
|
|
||||||
;; custom-set-variables was added by Custom.
|
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
|
||||||
;; Your init file should contain only one such instance.
|
|
||||||
;; If there is more than one, they won't work right.
|
|
||||||
'(package-selected-packages '(use-package)))
|
|
||||||
(custom-set-faces
|
|
||||||
;; custom-set-faces was added by Custom.
|
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
|
||||||
;; Your init file should contain only one such instance.
|
|
||||||
;; If there is more than one, they won't work right.
|
|
||||||
)
|
|
Loading…
Reference in a new issue