Browse Source

hnv-laptop

master
Maxime Wack 1 year ago
parent
commit
47d0c9b843
7 changed files with 22 additions and 10 deletions
  1. +1
    -1
      .bspwm-session
  2. +1
    -1
      .config/bin/autorotate
  3. +1
    -1
      .config/bin/panel
  4. +1
    -1
      .config/bin/tray
  5. +4
    -4
      .config/bspwm/bspwmrc
  6. +10
    -0
      .config/conky/conky.lua
  7. +4
    -2
      .config/emacs/init.el

+ 1
- 1
.bspwm-session View File

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


+ 1
- 1
.config/bin/autorotate View File

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


+ 1
- 1
.config/bin/panel View File

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


+ 1
- 1
.config/bin/tray View File

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



+ 4
- 4
.config/bspwm/bspwmrc View File

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


+ 10
- 0
.config/conky/conky.lua View File

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


+ 4
- 2
.config/emacs/init.el View File

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


Loading…
Cancel
Save