From f55880789611a4a6f3a94cd4b2d82099f4022436 Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Fri, 5 Apr 2024 10:04:32 +0900 Subject: [PATCH] emacs : follow symlinks / bspwm : selecting options using env --- .config/bspwm/bspwmrc | 21 +++++++++++++++------ .config/emacs/init.el | 2 ++ .config/emacs/lisp/init-general.el | 2 ++ .config/sxhkd/sxhkdrc | 9 +++++++-- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 892be7c..42d7dfb 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,5 +1,8 @@ #!/usr/bin/env bash -#xrandr --output DP-4 --primary --mode 2560x1440 --rotate normal --output HDMI-0 --rotate right --right-of DP-4 + +if [[ $JUPCID == "HOME-DESKTOP" ]]; then + xrandr --output DP-4 --primary --mode 2560x1440 --rotate normal --output HDMI-0 --rotate right --right-of DP-4 +fi killall bspc @@ -20,10 +23,12 @@ killall volumeicon && volumeicon & wmname LG3D export _JAVA_AWT_WM_NONREPARETING=1 -bspc monitor -d 1 2 3 4 5 -#bspc monitor DP-4 -d 1 2 3 4 5 -#bspc monitor HDMI-0 -d 6 7 8 9 0 - +if [[ $JUPCID == "HOME-DESKTOP" ]]; then + bspc monitor DP-4 -d 1 2 3 4 5 + bspc monitor HDMI-0 -d 6 7 8 9 0 +else + bspc monitor -d 1 2 3 4 5 6 7 8 9 0 +fi bspc config border_width 2 bspc config window_gap 10 @@ -67,5 +72,9 @@ bspc rule -a \* state=tiled #fi # TODO heres polybar -polybar panel-bspwm +if [[ $JUPCID == "HWDEV" ]]; then + polybar panel-bspwm --config=~/.config/polybar/config.ini +else + polybar panel-bspwm +fi #polybar panel-bspwm-2 diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 8b86da1..9e25f63 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -6,6 +6,8 @@ (setq auto-mode-case-fold nil) +(setq vc-follow-symlinks t) ;; always follow symlink + (unless (or (daemonp) noninteractive init-file-debug) ;; Prevent flashing of messages at startup (when (display-graphic-p) diff --git a/.config/emacs/lisp/init-general.el b/.config/emacs/lisp/init-general.el index 4e1ec7c..40ba8b9 100644 --- a/.config/emacs/lisp/init-general.el +++ b/.config/emacs/lisp/init-general.el @@ -8,6 +8,8 @@ (global-unset-key (kbd "C-j")) (global-unset-key (kbd "C-k")) (global-unset-key (kbd "S-SPC")) ;; input method / use only S-\ +(global-set-key (kbd "C-=") 'text-scale-increase) +(global-set-key (kbd "C--") 'text-scale-decrease) ;; When you begin a keybind, whichkey will show you all keybinds you can follow the first one with in order to form a full keywords. (use-package which-key diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index bbe1deb..1f178dc 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,7 +1,6 @@ #Config file for simple X hotkey daemon super+Return -# st alacritty #Apps and programs super+e @@ -23,6 +22,12 @@ super+t # close & kill super+shift+c bspc node -c +super+shift+q + killall picom & killall sxhkd & bspc quit +super+shift+e + rofi -mode drun -theme solarized -font "hack 20" -show combi +alt+Tab + rofi -mode window -theme solarized -font "hack 20" -show ##rofi things ##Launch apps @@ -94,7 +99,7 @@ super+shift+c # ## Toggle picom super+p - if [ "$(pgrep -c picom) -eq 0" ]; then; picom; else; killall picom; fi + if (pgrep -c picom); then; killall picom; else; picom; fi super+w ~/scripts/random_wallpaper.sh