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

View File

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

View File

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

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.
# Valid values: true, false, ask
# Default: ask
notifications = ask
notifications = true
# media-capture (BoolAsk):
# Allow websites to record audio/video.

View File

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

View File

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