summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2021-01-04 09:16:43 +0100
committerMarc Vertes <mvertes@free.fr>2021-01-04 09:16:43 +0100
commitb44d13927d1296c6d4eecbf42448372948e74ad8 (patch)
treef5fab8146e8e088ba55b85a0ae3ee24fe66906d1
parent3bb7e9d0b1d7bc406bd2361f7484d4484eb483b1 (diff)
update
-rw-r--r--.bashrc9
-rw-r--r--.config/i3/config1
-rw-r--r--.i3status.conf3
-rw-r--r--.profile6
-rw-r--r--.tmux.conf3
-rw-r--r--.vim/spell/fr.utf-8.add1
-rw-r--r--.vimrc1
-rw-r--r--.xinitrc1
-rwxr-xr-x.xsession24
-rwxr-xr-xbin/hdmi9
-rwxr-xr-xbin/vr2
11 files changed, 53 insertions, 7 deletions
diff --git a/.bashrc b/.bashrc
index a78d064..2f6a357 100644
--- a/.bashrc
+++ b/.bashrc
@@ -80,6 +80,15 @@ alias wai='~/go/src/github.co/traefik/whoami/whoami'
# yaegi debug
export YAEGI_DOT_CMD='dotty -'
+mosht() { mosh "$@" -- tmux new -A; }
+export -f mosht
+
+ssht() { ssh -t "$@" -- tmux new -A; }
+export -f ssht
+
+mpvx() { mpv --vo=sixel --profile=sw-fast --really-quiet "$@"; }
+export -f mpvx
+
tfk() { ~/go/src/github.com/traefik/traefik/traefik "$@"; }
export -f tfk
diff --git a/.config/i3/config b/.config/i3/config
index 9ef0672..48c461c 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -65,6 +65,7 @@ for_window [title="Gestionnaire de tâches – Chromium"] floating enable
for_window [instance="DOTTY"] floating enable
for_window [class="discord"] floating enable
for_window [class="Display"] floating enable
+for_window [class="Feedreader"] floating enable
for_window [class="feh"] floating enable
for_window [class="firefox"] floating enable
for_window [class="Geeqie"] floating enable
diff --git a/.i3status.conf b/.i3status.conf
index b3af3a3..229dfc1 100644
--- a/.i3status.conf
+++ b/.i3status.conf
@@ -92,7 +92,8 @@ memory {
cpu_temperature 0 {
format = "🌡%degrees °C"
- path = "/sys/class/hwmon/hwmon0/temp1_input"
+ #path = "/sys/class/hwmon/hwmon0/temp1_input"
+ path = "/sys/class/hwmon/hwmon6/temp1_input"
}
tztime local {
diff --git a/.profile b/.profile
index cb09e87..acb8299 100644
--- a/.profile
+++ b/.profile
@@ -5,6 +5,6 @@ PATH=~/bin:$PATH:~/go/bin
[ "${SHELL##*/}" = bash ] && . ~/.bashrc
# Last action: auto start X11 when logged on first console
-case $HOSTNAME in
-([sS]wift|yoda) [ "$(tty)" != /dev/tty1 ] || exec startx ;;
-esac
+#case $HOSTNAME in
+#([sS]wift|yoda) [ "$(tty)" != /dev/tty1 ] || exec startx ;;
+#esac
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..8d624a0
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,3 @@
+set-option -g prefix ²
+unbind-key C-b
+bind-key ² send-prefix
diff --git a/.vim/spell/fr.utf-8.add b/.vim/spell/fr.utf-8.add
new file mode 100644
index 0000000..8bd6403
--- /dev/null
+++ b/.vim/spell/fr.utf-8.add
@@ -0,0 +1 @@
+Flo
diff --git a/.vimrc b/.vimrc
index 58841c0..84c082d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -12,6 +12,7 @@ let g:vimki_lower = "a-zàçéèêếëîïñôöùûü"
autocmd filetype vimki syntax on
autocmd filetype vimki set autowrite
autocmd filetype vimki setlocal spell spelllang=fr
+autocmd filetype vimki nmap <leader>z :FZF ~/Wiki<CR>
" vim-go plugin
let g:go_def_mode = "gopls"
diff --git a/.xinitrc b/.xinitrc
index c0b8589..f982ca7 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -10,6 +10,7 @@ xinput --set-prop 'SYNA7DAB:00 06CB:CD40 Touchpad' 'libinput Natural Scrolling E
# Better use /etc/X11/xorg.conf.d/10-keyboard.conf to handle hot plugged keyboards
#setxkbmap fr
#xk
+hdmi
xrdb ~/.Xresources
#xsetroot -solid rgb:3/4/5
diff --git a/.xsession b/.xsession
new file mode 100755
index 0000000..f982ca7
--- /dev/null
+++ b/.xsession
@@ -0,0 +1,24 @@
+#!/bin/sh
+# start pulseaudio on crux only. Should be handled by systemd on arch
+#pulseaudio --start --exit-idle-time=-1 --log-target=syslog &
+
+# enable tapping and natural scrolling on touchpad
+# see xinput --list[-props] for ids
+xinput --set-prop 'SYNA7DAB:00 06CB:CD40 Touchpad' 'libinput Tapping Enabled' 1
+xinput --set-prop 'SYNA7DAB:00 06CB:CD40 Touchpad' 'libinput Natural Scrolling Enabled' 1
+
+# Better use /etc/X11/xorg.conf.d/10-keyboard.conf to handle hot plugged keyboards
+#setxkbmap fr
+#xk
+hdmi
+
+xrdb ~/.Xresources
+#xsetroot -solid rgb:3/4/5
+xsetroot -solid rgb:1/3/4
+#feh --bg-fill ~/Downloads/Alaska_Range.jpg
+#conky
+#slock
+
+# Start window manager
+#exec fvwm
+exec i3
diff --git a/bin/hdmi b/bin/hdmi
index 0b04531..d6f206a 100755
--- a/bin/hdmi
+++ b/bin/hdmi
@@ -1,12 +1,15 @@
#!/bin/sh
# Toggle auxiliary HDMI screen on/off when connected/disconnected.
-opt="--auto --left-of eDP-1"
+opt="--auto --left-of eDP1"
#opt="--auto --right-of eDP-1"
#opt="--auto --above eDP-1"
# Also add the following rule to /etc/udev/rules.d/hdmi.rules
# KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi"
-xrandr | grep -q 'HDMI-1 connected' || opt="--off"
-xrandr --output HDMI-1 $opt
+# wait for the screen to settle
+sleep 3
+
+xrandr | grep -q 'HDMI1 connected' || opt="--off"
+xrandr --output HDMI1 $opt
diff --git a/bin/vr b/bin/vr
new file mode 100755
index 0000000..189d83e
--- /dev/null
+++ b/bin/vr
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chromium --user-data-dir=/home/marc/vr --silent-debugger-extension-api