SOMETIMES

This commit is contained in:
Geoffrey Frogeye 2015-12-07 21:54:40 +01:00
parent ef4a6282d6
commit 9d1ecf22d0
2 changed files with 21 additions and 18 deletions

5
bashrc
View file

@ -15,6 +15,8 @@ else
col=33;
fi
export USER=$(whoami)
export HOSTNAME=$(cat /etc/hostname)
PS1="\[\e[0;37m\][\[\e[0;${col}m\]\u\[\e[0;37m\]@\[\e[0;34m\]${HOSTNAME//geoffrey-/} \[\e[0;36m\]\W\[\e[0;37m\]]\$\[\e[1;97m\] "
trap 'echo -ne "\e[0m"' DEBUG
@ -111,6 +113,3 @@ function dafont {
}
alias nw="sudo systemctl restart NetworkManager"
alias ise="screen -d -m /opt/Xilinx/12.4/ISE_DS/ISE/bin/lin64/ise"
alias nex="djtgcfg -d Nexys2 prog -i 0 -f"

View file

@ -52,8 +52,10 @@ bindsym $mod+p exec thunar
bindsym $mod+m exec firefox --new-windows
# Volume control
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute; exec $up_bar
bindsym XF86AudioLowerVolume exec amixer -q set Master 5- unmute; exec $up_bar
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute; exec $up_bar
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +10%; exec $up_bar
#bindsym XF86AudioLowerVolume exec amixer -q set Master 5- unmute; exec $up_bar
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -10%; exec $up_bar
bindsym XF86AudioMute exec amixer -q set Master toggle; exec $up_bar
bindsym $mod+F11 exec xterm -e 'alsamixer'
bindsym $mod+F12 exec xterm -e 'alsamixer'
@ -273,6 +275,8 @@ mode "Resize" {
bindsym $mod+r mode "Resize"
set $background exec --no-startup-id feh --bg-scale $HOME/.config/i3/bg.jpg
bindsym $mod+Shift+a $background
set $mode_screen_select [V] VGA1 [H] HDMI1
mode "$mode_screen_select" {
bindsym v mode "$mode_screen_VGA1"
@ -286,12 +290,12 @@ bindsym $mod+t mode "$mode_screen_select"
set $mode_screen_VGA1 VGA [R] Right [L] Left [U] Up [D] Down [C] Copy [O] Off
mode "$mode_screen_VGA1" {
bindsym r exec xrandr --output VGA1 --auto --right-of LVDS1
bindsym l exec xrandr --output VGA1 --auto --left-of LVDS1
bindsym u exec xrandr --output VGA1 --auto --above LVDS1
bindsym d exec xrandr --output VGA1 --auto --below LVDS1
bindsym c exec xrandr --output VGA1 --auto --same-as LVDS1
bindsym o exec xrandr --output VGA1 --auto --off
bindsym r exec xrandr --output VGA1 --auto --right-of LVDS1; $background
bindsym l exec xrandr --output VGA1 --auto --left-of LVDS1; $background
bindsym u exec xrandr --output VGA1 --auto --above LVDS1; $background
bindsym d exec xrandr --output VGA1 --auto --below LVDS1; $background
bindsym c exec xrandr --output VGA1 --auto --same-as LVDS1; $background
bindsym o exec xrandr --output VGA1 --auto --off; $background
# back to normal: Enter or Escape
bindsym Return mode "default"
@ -300,12 +304,12 @@ mode "$mode_screen_VGA1" {
set $mode_screen_HDMI1 HDMI [R] Right [L] Left [U] Up [D] Down [C] Copy [O] Off
mode "$mode_screen_HDMI1" {
bindsym r exec xrandr --output HDMI1 --auto --right-of LVDS1
bindsym l exec xrandr --output HDMI1 --auto --left-of LVDS1
bindsym u exec xrandr --output HDMI1 --auto --above LVDS1
bindsym d exec xrandr --output HDMI1 --auto --below LVDS1
bindsym c exec xrandr --output HDMI1 --auto --same-as LVDS1
bindsym o exec xrandr --output HDMI1 --auto --off
bindsym r exec xrandr --output HDMI1 --auto --right-of LVDS1; $background
bindsym l exec xrandr --output HDMI1 --auto --left-of LVDS1; $background
bindsym u exec xrandr --output HDMI1 --auto --above LVDS1; $background
bindsym d exec xrandr --output HDMI1 --auto --below LVDS1; $background
bindsym c exec xrandr --output HDMI1 --auto --same-as LVDS1; $background
bindsym o exec xrandr --output HDMI1 --auto --off; $background
# back to normal: Enter or Escape
bindsym Return mode "default"
@ -338,10 +342,10 @@ bindsym $mod+F5 exec --no-startup-id xautolock -enable
# Autostart applications
$background
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id gnome-keyring-daemon
exec --no-startup-id numlockx on
exec --no-startup-id feh --bg-scale $HOME/.config/i3/bg.jpg
#exec --no-startup-id nm-applet
#exec --no-startup-id compton -b
exec --no-startup-id conky -c $HOME/.conky/status