From 7ffb98ebbf2b36741125dcdbf289b80a62418f74 Mon Sep 17 00:00:00 2001 From: vibikim Date: Sat, 10 Apr 2021 18:25:23 +0300 Subject: [PATCH] moved to another computer yay --- bspwm/bspwmrc | 5 ++++- bspwm/display.sh | 35 +++++++++++++++++++++++++++-------- emacs/init.el | 34 ---------------------------------- 3 files changed, 31 insertions(+), 43 deletions(-) delete mode 100644 emacs/init.el diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 6ca99f8..e831c67 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -19,7 +19,10 @@ numlockx on & ### # 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 # 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 diff --git a/bspwm/display.sh b/bspwm/display.sh index cdc6dd3..c76f55b 100755 --- a/bspwm/display.sh +++ b/bspwm/display.sh @@ -1,12 +1,31 @@ #!/bin/dash -choices="arandr\nLVDS_off\nLVDS_on\ndual" +if [ "`hostname`" = "freia" ]; then + choices="arandr\nLVDS_off\nLVDS_on\ndual" + chosen=$(echo "$choices" | dmenu -i) -chosen=$(echo "$choices" | dmenu -i) + case "$chosen" in + arandr) arandr ;; + LVDS_off) xrandr --output LVDS-1-1 --off & ;; + 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 ;; + 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 ;; - LVDS_off) xrandr --output LVDS-1-1 --off & ;; - 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 ;; -esac + 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 ;; diff --git a/emacs/init.el b/emacs/init.el deleted file mode 100644 index 0d3bbcd..0000000 --- a/emacs/init.el +++ /dev/null @@ -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. - )