emacs : follow symlinks / bspwm : selecting options using env

This commit is contained in:
2024-04-05 10:04:32 +09:00
parent 4a99c43304
commit f558807896
4 changed files with 26 additions and 8 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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