From 47d0c9b843925114f0ec9750913a1d190fa4d0d1 Mon Sep 17 00:00:00 2001 From: Maxime Wack Date: Mon, 13 Feb 2023 18:27:22 +0100 Subject: [PATCH] hnv-laptop --- .bspwm-session | 2 +- .config/bin/autorotate | 2 +- .config/bin/panel | 2 +- .config/bin/tray | 2 +- .config/bspwm/bspwmrc | 8 ++++---- .config/conky/conky.lua | 10 ++++++++++ .config/emacs/init.el | 6 ++++-- 7 files changed, 22 insertions(+), 10 deletions(-) diff --git a/.bspwm-session b/.bspwm-session index 7bcd07e..b1cc97b 100755 --- a/.bspwm-session +++ b/.bspwm-session @@ -41,7 +41,7 @@ done case $HOST in tablet|hegp-laptop) sxhkd ~/.config/sxhkd/music_home ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; home) sxhkd ~/.config/sxhkd/volume &;; - hegp) sxhkd ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; + hnv-laptop|hegp) sxhkd ~/.config/sxhkd/volume ~/.config/sxhkd/music &;; esac # Launch bspwm: diff --git a/.config/bin/autorotate b/.config/bin/autorotate index 4292eb5..7bcb215 100755 --- a/.config/bin/autorotate +++ b/.config/bin/autorotate @@ -13,7 +13,7 @@ accel_z=`find -L /sys/bus/iio/devices -maxdepth 2 -name in_accel_z_raw` HOST=`cat /etc/hostname` case "$HOST" in - tablet) + tablet|hnv-laptop) stylus="Wacom HID 4947 Pen stylus" touch="Wacom HID 4947 Finger touch" eraser="Wacom HID 4947 Pen eraser" diff --git a/.config/bin/panel b/.config/bin/panel index 6ed6c2c..8d65665 100755 --- a/.config/bin/panel +++ b/.config/bin/panel @@ -35,7 +35,7 @@ case $HOST in volume -sf 'VS%s' > "$PANEL_FIFO" & volume -sf 'VI%i' > "$PANEL_FIFO" & ;; - hegp-laptop|tablet) + hegp-laptop|tablet|hnv-laptop) width=1900 height=24 size=10 diff --git a/.config/bin/tray b/.config/bin/tray index d32d32e..c3cb549 100755 --- a/.config/bin/tray +++ b/.config/bin/tray @@ -1,7 +1,7 @@ #!/bin/zsh case $HOST in - hegp-laptop|tablet) width=1590;; + hegp-laptop|tablet|hnv-laptop) width=1590;; hegp) width=3500;; esac diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 3ff489a..1bbeb2d 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -23,7 +23,7 @@ echo 1 > /tmp/lastdesk # Monitors case $HOST in - hegp-laptop|tablet) + hegp-laptop|tablet|hnv-laptop) bspc monitor eDP1 -d    1 ;; 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: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:Music_playlist sticky=on state=floating rectangle=430x470+30+64 bspc rule -a kitty:Music_media sticky=on state=floating rectangle=430x476+30+574 @@ -107,12 +107,12 @@ panel & # Touchscreen case $HOST in 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 # Applications case $HOST in - hegp-laptop|tablet) + hegp-laptop|tablet|hnv-laptop) unclutter & telegram-desktop & slack & diff --git a/.config/conky/conky.lua b/.config/conky/conky.lua index 08a6e83..3ae7f16 100644 --- a/.config/conky/conky.lua +++ b/.config/conky/conky.lua @@ -20,6 +20,16 @@ if hostname == "tablet" then ntop = 10 hwmon = 7 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 screenWidth = 1920 screenHeight = 1080 diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 6ad46d8..dc43ea9 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -2403,7 +2403,8 @@ If SELECT is non-nil, select the target window." ("/Sent" . ?s) ("/Drafts" . ?d)))) ((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" mu4e-refile-folder "/Archives"))) @@ -2528,7 +2529,8 @@ ALL-EMAILS are all the unread emails" send-mail-function 'smtpmail-send-it) (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" user-mail-address "maximewack@free.fr" auth-sources '("~/.authinfo.gpg")