diff --git a/bashrc b/bashrc index 1abcdeb..4a0fadb 100644 --- a/bashrc +++ b/bashrc @@ -4,10 +4,6 @@ # ENVIRONMENT VARIABLES -# Region preferences -export LANG=fr_FR.utf8 -export TZ=/usr/share/zoneinfo/Europe/Paris - # Favourite commands export PAGER=less export EDITOR=vim @@ -28,6 +24,7 @@ export XDG_CONFIG_HOME=$HOME/.config export ARDUINO=/usr/share/arduino export ARDUINO_DIR=$ARDUINO export ARDMK_VENDOR=archlinux-arduino +export PYTHONSTARTUP=$HOME/.config/pythonstartup.py # ALIASES diff --git a/config/i3/config b/config/i3/config index 00565de..281f907 100644 --- a/config/i3/config +++ b/config/i3/config @@ -46,25 +46,22 @@ bindsym $mod+dollar exec --no-startup-id ~/.config/i3/sshmenu root # start program launcher bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run -# Update var innformations -set $up_bar killall -USR1 i3status - # Start Applications bindsym $mod+Return exec xterm bindsym $mod+p exec thunar bindsym $mod+m exec qutebrowser --override-restore --backend=webengine # Volume control -#bindsym XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute; exec $up_bar -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5%; exec $up_bar -#bindsym XF86AudioLowerVolume exec amixer -q set Master 5- unmute; exec $up_bar -bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5%; exec $up_bar -bindsym XF86AudioMute exec amixer -q set Master toggle; exec $up_bar +bindsym XF86AudioRaiseVolume exec pactl set-sink-mute @DEFAULT_SINK@ false; exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-mute @DEFAULT_SINK@ false; exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ true +bindsym $mod+F7 exec pactl suspend-sink @DEFAULT_SINK@ 1; exec pactl suspend-sink @DEFAULT_SINK@ 0 +# Re-synchronize bluetooth headset bindsym $mod+F8 exec mpc prev bindsym $mod+F9 exec mpc toggle bindsym $mod+F10 exec mpc next -bindsym $mod+F11 exec xterm -e 'alsamixer' -bindsym $mod+F12 exec xterm -e 'alsamixer' +bindsym $mod+F11 exec xterm -e 'pacmixer' +bindsym $mod+F12 exec xterm -e 'pacmixer' #Brightness control bindsym XF86MonBrightnessDown exec xbacklight -dec 20 diff --git a/config/polybar/config b/config/polybar/config index 6758e66..9ffb31a 100644 --- a/config/polybar/config +++ b/config/polybar/config @@ -75,7 +75,8 @@ enable-ipc = true [bar/primary] inherit = bar/base -modules-right = cpu memory temperature eth wlan xbacklight volume battery date +modules-center = mpd +modules-right = eth wlan xbacklight volume battery date tray-position = right tray-padding = 2 @@ -83,8 +84,7 @@ tray-transparent = false [bar/secondary] inherit = bar/base -modules-center = mpd -modules-right = ethMore wlanMore filesystem xbacklight volume date +modules-right = cpu memory temperature ethMore wlanMore filesystem xbacklight volume date [module/filesystem] diff --git a/config/pythonstartup.py b/config/pythonstartup.py new file mode 100644 index 0000000..cc23251 --- /dev/null +++ b/config/pythonstartup.py @@ -0,0 +1,3 @@ +import rlcompleter +import readline +readline.parse_and_bind("tab: complete") diff --git a/config/qutebrowser/qutebrowser.conf b/config/qutebrowser/qutebrowser.conf index 56a6c2f..3300234 100644 --- a/config/qutebrowser/qutebrowser.conf +++ b/config/qutebrowser/qutebrowser.conf @@ -831,7 +831,7 @@ geolocation = ask # Allow websites to show notifications. # Valid values: true, false, ask # Default: ask -notifications = ask +notifications = true # media-capture (BoolAsk): # Allow websites to record audio/video. diff --git a/scripts/html2pdf b/scripts/html2pdf index 8095bd4..9a82d29 100755 --- a/scripts/html2pdf +++ b/scripts/html2pdf @@ -24,6 +24,10 @@ var argv = yargs .alias('t', 'title') .default('t', 'Sans titre') + .describe('b', 'Border') + .alias('b', 'border') + .default('b', '2cm') + .demandOption(['o']) .argv; @@ -33,7 +37,7 @@ options = { "base": "file://" + process.cwd() + '/', "format": "A4", "orientation": "portrait", - "border": "2cm", + "border": argv.border, "footer": { "height": "10mm", diff --git a/scripts/install-prefs b/scripts/install-prefs index b811d6d..d087dba 100755 --- a/scripts/install-prefs +++ b/scripts/install-prefs @@ -177,9 +177,13 @@ fi inst moreutils screen ncdu lsof htop proxytunnel pv curl wget sshfs netcat mosh bash-completion rsync if [ $ARCH == 1 ]; then inst gopass + altInst tldr-bash-git else inst pass + wget -qO ~/.bin/ https://raw.githubusercontent.com/pepa65/tldr-bash-client/master/tldr + chmod +x ~/.bin/tldr fi +tldr -u if [[ $ARCH == 1 && $ADMIN == 1 ]]; then inst pkgfile sudo systemctl enable pkgfile-update.timer @@ -302,10 +306,11 @@ if [ $EXTRA == 1 ]; then # Extra GUI if [ $GUI == 1 ]; then - inst vlc gimp mpd vimpc alsa-utils + inst vlc gimp mpd vimpc if [ $ARCH == 1 ]; then inst simplescreenrecorder + altInst pacmixer fi fi