From 9d1ecf22d0f8b2718869d2a548b7d8151846d003 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 7 Dec 2015 21:54:40 +0100 Subject: [PATCH] SOMETIMES --- bashrc | 5 ++--- config/i3/config | 34 +++++++++++++++++++--------------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/bashrc b/bashrc index bc03e7d..d05fe57 100644 --- a/bashrc +++ b/bashrc @@ -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" diff --git a/config/i3/config b/config/i3/config index 1b5e344..a97fb5a 100644 --- a/config/i3/config +++ b/config/i3/config @@ -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