@@ -41,7 +41,7 @@ done | |||||
case $HOST in | case $HOST in | ||||
tablet|hegp-laptop) sxhkd ~/.config/sxhkd/music_home ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; | tablet|hegp-laptop) sxhkd ~/.config/sxhkd/music_home ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; | ||||
home) sxhkd ~/.config/sxhkd/volume &;; | home) sxhkd ~/.config/sxhkd/volume &;; | ||||
hegp) sxhkd ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; | |||||
hnv-laptop|hegp) sxhkd ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; | |||||
esac | esac | ||||
# Launch bspwm: | # Launch bspwm: | ||||
@@ -13,7 +13,7 @@ accel_z=`find -L /sys/bus/iio/devices -maxdepth 2 -name in_accel_z_raw` | |||||
HOST=`cat /etc/hostname` | HOST=`cat /etc/hostname` | ||||
case "$HOST" in | case "$HOST" in | ||||
tablet) | |||||
tablet|hnv-laptop) | |||||
stylus="Wacom HID 4947 Pen stylus" | stylus="Wacom HID 4947 Pen stylus" | ||||
touch="Wacom HID 4947 Finger touch" | touch="Wacom HID 4947 Finger touch" | ||||
eraser="Wacom HID 4947 Pen eraser" | eraser="Wacom HID 4947 Pen eraser" | ||||
@@ -35,7 +35,7 @@ case $HOST in | |||||
volume -sf 'VS%s' > "$PANEL_FIFO" & | volume -sf 'VS%s' > "$PANEL_FIFO" & | ||||
volume -sf 'VI%i' > "$PANEL_FIFO" & | volume -sf 'VI%i' > "$PANEL_FIFO" & | ||||
;; | ;; | ||||
hegp-laptop|tablet) | |||||
hegp-laptop|tablet|hnv-laptop) | |||||
width=1900 | width=1900 | ||||
height=24 | height=24 | ||||
size=10 | size=10 | ||||
@@ -1,7 +1,7 @@ | |||||
#!/bin/zsh | #!/bin/zsh | ||||
case $HOST in | case $HOST in | ||||
hegp-laptop|tablet) width=1590;; | |||||
hegp-laptop|tablet|hnv-laptop) width=1590;; | |||||
hegp) width=3500;; | hegp) width=3500;; | ||||
esac | esac | ||||
@@ -23,7 +23,7 @@ echo 1 > /tmp/lastdesk | |||||
# Monitors | # Monitors | ||||
case $HOST in | case $HOST in | ||||
hegp-laptop|tablet) | |||||
hegp-laptop|tablet|hnv-laptop) | |||||
bspc monitor eDP1 -d 1 | bspc monitor eDP1 -d 1 | ||||
;; | ;; | ||||
home) | home) | ||||
@@ -67,7 +67,7 @@ case $HOST in | |||||
bspc rule -a kitty:Music_media sticky=on state=floating rectangle=500x700+30+804 | bspc rule -a kitty:Music_media sticky=on state=floating rectangle=500x700+30+804 | ||||
bspc rule -a kitty:castero sticky=on state=floating rectangle=2630x900+510+574 | bspc rule -a kitty:castero sticky=on state=floating rectangle=2630x900+510+574 | ||||
;; | ;; | ||||
tablet|hegp-laptop) | |||||
tablet|hegp-laptop|hnv-laptop) | |||||
bspc rule -a kitty:Ranger sticky=on state=floating rectangle=1820x900+0+0 center=on | bspc rule -a kitty:Ranger sticky=on state=floating rectangle=1820x900+0+0 center=on | ||||
bspc rule -a kitty:Music_playlist sticky=on state=floating rectangle=430x470+30+64 | bspc rule -a kitty:Music_playlist sticky=on state=floating rectangle=430x470+30+64 | ||||
bspc rule -a kitty:Music_media sticky=on state=floating rectangle=430x476+30+574 | bspc rule -a kitty:Music_media sticky=on state=floating rectangle=430x476+30+574 | ||||
@@ -107,12 +107,12 @@ panel & | |||||
# Touchscreen | # Touchscreen | ||||
case $HOST in | case $HOST in | ||||
hegp-laptop) xsetwacom set "Wacom HID 48CA Pen stylus" "Button" "2" "button +3" ;; | hegp-laptop) xsetwacom set "Wacom HID 48CA Pen stylus" "Button" "2" "button +3" ;; | ||||
tablet) xsetwacom set "Wacom HID 48E4 Pen stylus" "Button" "2" "button +3" ;; | |||||
tablet|hnv-laptop) xsetwacom set "Wacom HID 48E4 Pen stylus" "Button" "2" "button +3" ;; | |||||
esac | esac | ||||
# Applications | # Applications | ||||
case $HOST in | case $HOST in | ||||
hegp-laptop|tablet) | |||||
hegp-laptop|tablet|hnv-laptop) | |||||
unclutter & | unclutter & | ||||
telegram-desktop & | telegram-desktop & | ||||
slack & | slack & | ||||
@@ -20,6 +20,16 @@ if hostname == "tablet" then | |||||
ntop = 10 | ntop = 10 | ||||
hwmon = 7 | hwmon = 7 | ||||
sensor = 1 | sensor = 1 | ||||
elseif hostname == "hnv-laptop" then | |||||
screenWidth = 1920 | |||||
screenHeight = 1080 | |||||
nbCPU = 8 | |||||
FSs = {"/", "/var", "/home"} | |||||
ladapter = "eth0" | |||||
wadapter = "wlp58s0" | |||||
ntop = 10 | |||||
hwmon = 7 | |||||
sensor = 1 | |||||
elseif hostname == "home" then | elseif hostname == "home" then | ||||
screenWidth = 1920 | screenWidth = 1920 | ||||
screenHeight = 1080 | screenHeight = 1080 | ||||
@@ -2403,7 +2403,8 @@ If SELECT is non-nil, select the target window." | |||||
("/Sent" . ?s) | ("/Sent" . ?s) | ||||
("/Drafts" . ?d)))) | ("/Drafts" . ?d)))) | ||||
((or (equal (system-name) "tablet") | ((or (equal (system-name) "tablet") | ||||
(equal (system-name) "hegp-laptop")) | |||||
(equal (system-name) "hegp-laptop") | |||||
(equal (system-name) "hnv-laptop")) | |||||
(setq mu4e-get-mail-command "mbsync free" | (setq mu4e-get-mail-command "mbsync free" | ||||
mu4e-refile-folder "/Archives"))) | mu4e-refile-folder "/Archives"))) | ||||
@@ -2528,7 +2529,8 @@ ALL-EMAILS are all the unread emails" | |||||
send-mail-function 'smtpmail-send-it) | send-mail-function 'smtpmail-send-it) | ||||
(cond ((or (equal (system-name) "tablet") ; smtp accounts | (cond ((or (equal (system-name) "tablet") ; smtp accounts | ||||
(equal (system-name) "hegp-laptop")) | |||||
(equal (system-name) "hegp-laptop") | |||||
(equal (system-name) "hnv-laptop")) | |||||
(setq smtpmail-smtp-server "smtp.free.fr" | (setq smtpmail-smtp-server "smtp.free.fr" | ||||
user-mail-address "maximewack@free.fr" | user-mail-address "maximewack@free.fr" | ||||
auth-sources '("~/.authinfo.gpg") | auth-sources '("~/.authinfo.gpg") | ||||