This kind of multi-purpose commit

This commit is contained in:
Geoffrey Frogeye 2017-09-17 18:42:53 +02:00
parent f1cb4233cb
commit b055c7fa83
7 changed files with 26 additions and 20 deletions

5
bashrc
View file

@ -4,10 +4,6 @@
# ENVIRONMENT VARIABLES # ENVIRONMENT VARIABLES
# Region preferences
export LANG=fr_FR.utf8
export TZ=/usr/share/zoneinfo/Europe/Paris
# Favourite commands # Favourite commands
export PAGER=less export PAGER=less
export EDITOR=vim export EDITOR=vim
@ -28,6 +24,7 @@ export XDG_CONFIG_HOME=$HOME/.config
export ARDUINO=/usr/share/arduino export ARDUINO=/usr/share/arduino
export ARDUINO_DIR=$ARDUINO export ARDUINO_DIR=$ARDUINO
export ARDMK_VENDOR=archlinux-arduino export ARDMK_VENDOR=archlinux-arduino
export PYTHONSTARTUP=$HOME/.config/pythonstartup.py
# ALIASES # ALIASES

View file

@ -46,25 +46,22 @@ bindsym $mod+dollar exec --no-startup-id ~/.config/i3/sshmenu root
# start program launcher # start program launcher
bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run
# Update var innformations
set $up_bar killall -USR1 i3status
# Start Applications # Start Applications
bindsym $mod+Return exec xterm bindsym $mod+Return exec xterm
bindsym $mod+p exec thunar bindsym $mod+p exec thunar
bindsym $mod+m exec qutebrowser --override-restore --backend=webengine bindsym $mod+m exec qutebrowser --override-restore --backend=webengine
# Volume control # Volume control
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute; exec $up_bar bindsym XF86AudioRaiseVolume exec pactl set-sink-mute @DEFAULT_SINK@ false; exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5%; exec $up_bar bindsym XF86AudioLowerVolume exec pactl set-sink-mute @DEFAULT_SINK@ false; exec pactl set-sink-volume @DEFAULT_SINK@ -5%
#bindsym XF86AudioLowerVolume exec amixer -q set Master 5- unmute; exec $up_bar bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ true
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5%; exec $up_bar bindsym $mod+F7 exec pactl suspend-sink @DEFAULT_SINK@ 1; exec pactl suspend-sink @DEFAULT_SINK@ 0
bindsym XF86AudioMute exec amixer -q set Master toggle; exec $up_bar # Re-synchronize bluetooth headset
bindsym $mod+F8 exec mpc prev bindsym $mod+F8 exec mpc prev
bindsym $mod+F9 exec mpc toggle bindsym $mod+F9 exec mpc toggle
bindsym $mod+F10 exec mpc next bindsym $mod+F10 exec mpc next
bindsym $mod+F11 exec xterm -e 'alsamixer' bindsym $mod+F11 exec xterm -e 'pacmixer'
bindsym $mod+F12 exec xterm -e 'alsamixer' bindsym $mod+F12 exec xterm -e 'pacmixer'
#Brightness control #Brightness control
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 bindsym XF86MonBrightnessDown exec xbacklight -dec 20

View file

@ -75,7 +75,8 @@ enable-ipc = true
[bar/primary] [bar/primary]
inherit = bar/base 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-position = right
tray-padding = 2 tray-padding = 2
@ -83,8 +84,7 @@ tray-transparent = false
[bar/secondary] [bar/secondary]
inherit = bar/base inherit = bar/base
modules-center = mpd modules-right = cpu memory temperature ethMore wlanMore filesystem xbacklight volume date
modules-right = ethMore wlanMore filesystem xbacklight volume date
[module/filesystem] [module/filesystem]

3
config/pythonstartup.py Normal file
View file

@ -0,0 +1,3 @@
import rlcompleter
import readline
readline.parse_and_bind("tab: complete")

View file

@ -831,7 +831,7 @@ geolocation = ask
# Allow websites to show notifications. # Allow websites to show notifications.
# Valid values: true, false, ask # Valid values: true, false, ask
# Default: ask # Default: ask
notifications = ask notifications = true
# media-capture (BoolAsk): # media-capture (BoolAsk):
# Allow websites to record audio/video. # Allow websites to record audio/video.

View file

@ -24,6 +24,10 @@ var argv = yargs
.alias('t', 'title') .alias('t', 'title')
.default('t', 'Sans titre') .default('t', 'Sans titre')
.describe('b', 'Border')
.alias('b', 'border')
.default('b', '2cm')
.demandOption(['o']) .demandOption(['o'])
.argv; .argv;
@ -33,7 +37,7 @@ options = {
"base": "file://" + process.cwd() + '/', "base": "file://" + process.cwd() + '/',
"format": "A4", "format": "A4",
"orientation": "portrait", "orientation": "portrait",
"border": "2cm", "border": argv.border,
"footer": { "footer": {
"height": "10mm", "height": "10mm",

View file

@ -177,9 +177,13 @@ fi
inst moreutils screen ncdu lsof htop proxytunnel pv curl wget sshfs netcat mosh bash-completion rsync inst moreutils screen ncdu lsof htop proxytunnel pv curl wget sshfs netcat mosh bash-completion rsync
if [ $ARCH == 1 ]; then if [ $ARCH == 1 ]; then
inst gopass inst gopass
altInst tldr-bash-git
else else
inst pass inst pass
wget -qO ~/.bin/ https://raw.githubusercontent.com/pepa65/tldr-bash-client/master/tldr
chmod +x ~/.bin/tldr
fi fi
tldr -u
if [[ $ARCH == 1 && $ADMIN == 1 ]]; then if [[ $ARCH == 1 && $ADMIN == 1 ]]; then
inst pkgfile inst pkgfile
sudo systemctl enable pkgfile-update.timer sudo systemctl enable pkgfile-update.timer
@ -302,10 +306,11 @@ if [ $EXTRA == 1 ]; then
# Extra GUI # Extra GUI
if [ $GUI == 1 ]; then if [ $GUI == 1 ]; then
inst vlc gimp mpd vimpc alsa-utils inst vlc gimp mpd vimpc
if [ $ARCH == 1 ]; then if [ $ARCH == 1 ]; then
inst simplescreenrecorder inst simplescreenrecorder
altInst pacmixer
fi fi
fi fi