From 3cc86ecb61f1b0bf4906179bd4830acde35a3a4a Mon Sep 17 00:00:00 2001 From: Abhay Rana Date: Sat, 9 Jan 2016 15:57:50 +0530 Subject: [PATCH] Lots of minor updates - Adds office monitor config - scm_breeze and rvm config - nitrogen updates - Trying to setup jack - Fontsize for urxvt --- files/audio/.darkice.cfg | 35 ++++++++++++--------- files/bash/.bashrc | 14 ++++++--- files/bash/.profile | 4 +-- files/cmus/.cmus/rc | 2 +- files/display/.config/nitrogen/bg-saved.cfg | 17 +--------- files/display/.config/nitrogen/nitrogen.cfg | 8 ++--- files/display/.screenlayout/office.sh | 2 ++ files/x11/.Xresources | 2 +- 8 files changed, 39 insertions(+), 45 deletions(-) create mode 100755 files/display/.screenlayout/office.sh diff --git a/files/audio/.darkice.cfg b/files/audio/.darkice.cfg index 00677a5..42e00ac 100644 --- a/files/audio/.darkice.cfg +++ b/files/audio/.darkice.cfg @@ -8,29 +8,34 @@ rtprio = 3 # scheduling priority for the realtime threads # this section describes the audio input that will be streamed [input] -device = pulse # OSS DSP soundcard device for the audio input -sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100 -bitsPerSample = 16 # bits per sample. try 16 -channel = 2 # channels. 1 = mono, 2 = stereo +# OSS DSP soundcard device for the audio input +device = /dev/snd/controlC1 +# sample rate in Hz. try 11025, 22050 or 44100 +sampleRate = 44100 +# bits per sample +bitsPerSample = 16 +channel = 2 # this section describes a streaming connection to an IceCast2 server # there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7] # these can be mixed with [icecast-x] and [shoutcast-x] sections [icecast2-0] -bitrateMode = cbr # average bit rate +bitrateMode = vbr # average bit rate format = mp3 # format of the stream: ogg vorbis bitrate = 320 # bitrate of the stream sent to the server +quality = 0.8 +# We push to localhost:8000, but that is not available outside directly server = 127.0.0.1 - # host name of the server -port = 8000 # port of the IceCast2 server, usually 8000 -password = nautilus_music # source password to the IceCast2 server -mountPoint = listen.mp3 # mount point of this stream on the IceCast2 server +port = 8000 +# source password to the IceCast2 server +# The password is public, but admin panel is inaccessible +password = nautilus_music +# mount point of this stream on the IceCast2 server +mountPoint = listen.mp3 +# name of the stream name = Music from Nautilus - # name of the stream description = Live broadcast of what nemo is listening to - # description of the stream url = http://me.captnemo.in - # URL related to the stream -genre = music # genre of the stream -public = no # advertise this stream? -localDumpFile = dump.mp3 # local dump file \ No newline at end of file +genre = music +public = no +localDumpFile = dump.mp3 \ No newline at end of file diff --git a/files/bash/.bashrc b/files/bash/.bashrc index 15de791..96dbd98 100644 --- a/files/bash/.bashrc +++ b/files/bash/.bashrc @@ -332,15 +332,14 @@ export THEOS_DEVICE_PORT=22 #PERL_MM_OPT="INSTALL_BASE=/home/nemo/perl5"; export PERL_MM_OPT; #eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) -#Ruby version manager +# Ruby version manager, must be loaded before +# scm_breeze source "$HOME/.rvm/scripts/rvm" -#SCM Breeze -[ -s "/home/nemo/.scm_breeze/scm_breeze.sh" ] && source "/home/nemo/.scm_breeze/scm_breeze.sh" - # karn https://github.com/prydonius/karn if which karn > /dev/null; then eval "$(karn init)"; fi +# Disable beeps xset -b # function make-completion-wrapper () { @@ -365,5 +364,10 @@ xset -b # Overrides the display provided by imagemagick function display() { `cd ~/.screenlayout && sh $1.sh` + # Write the current layout + echo $1 > ~/.screenlayout/current nitrogen --restore -} \ No newline at end of file +} + +#SCM Breeze +[ -s "/home/nemo/.scm_breeze/scm_breeze.sh" ] && source "/home/nemo/.scm_breeze/scm_breeze.sh" \ No newline at end of file diff --git a/files/bash/.profile b/files/bash/.profile index b636984..e2374ce 100644 --- a/files/bash/.profile +++ b/files/bash/.profile @@ -16,6 +16,4 @@ if [ -n "$BASH_VERSION" ]; then fi fi -export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/nemo/bin:/sbin:/home/nemo/projects/scripts/:/home/nemo/.nvm/v0.10.22/bin" - -export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting +export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/nemo/bin:/sbin:/home/nemo/projects/scripts/:/home/nemo/.nvm/v5.0.1/bin" diff --git a/files/cmus/.cmus/rc b/files/cmus/.cmus/rc index d45b4b8..f7c6cb9 100644 --- a/files/cmus/.cmus/rc +++ b/files/cmus/.cmus/rc @@ -31,4 +31,4 @@ bind -f common mouse_scroll_up win-up set lib_sort=albumartist album discnumber tracknumber title filename set status_display_program=~/projects/scripts/cmus-current-track.sh -set output_plugin=pulse +set output_plugin=alsa diff --git a/files/display/.config/nitrogen/bg-saved.cfg b/files/display/.config/nitrogen/bg-saved.cfg index 859a637..ec18137 100644 --- a/files/display/.config/nitrogen/bg-saved.cfg +++ b/files/display/.config/nitrogen/bg-saved.cfg @@ -1,24 +1,9 @@ -[:0.0] -file=/home/nemo/projects/personal/avatars/wallpaper/1920x1080.jpg -mode=4 -bgcolor=#000000 - -[:1.0] -file=/home/nemo/projects/personal/avatars/wallpaper/1920x1080.jpg -mode=4 -bgcolor=#000000 - -[:2.0] -file=/home/nemo/projects/personal/avatars/wallpaper/1920x1080.jpg -mode=4 -bgcolor=#000000 - [xin_0] file=/home/nemo/projects/personal/avatars/wallpaper/1920x1080.jpg mode=4 bgcolor=#000000 [xin_1] -file=/home/nemo/Pictures/korra-1600x900.jpg +file=/home/nemo/Pictures/korra-rotated.jpg mode=4 bgcolor=#000000 diff --git a/files/display/.config/nitrogen/nitrogen.cfg b/files/display/.config/nitrogen/nitrogen.cfg index 9cd569c..6c05432 100644 --- a/files/display/.config/nitrogen/nitrogen.cfg +++ b/files/display/.config/nitrogen/nitrogen.cfg @@ -1,8 +1,8 @@ [geometry] -posx=539 -posy=10 -sizex=523 -sizey=860 +posx=1080 +posy=840 +sizex=1920 +sizey=1062 [nitrogen] view=icon diff --git a/files/display/.screenlayout/office.sh b/files/display/.screenlayout/office.sh new file mode 100755 index 0000000..99ebc27 --- /dev/null +++ b/files/display/.screenlayout/office.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 1080x840 --rotate normal --output DP1 --mode 1920x1080 --pos 0x0 --rotate left --output HDMI2 --off --output HDMI1 --off --output VGA1 --off diff --git a/files/x11/.Xresources b/files/x11/.Xresources index 77ed477..79f1dd9 100644 --- a/files/x11/.Xresources +++ b/files/x11/.Xresources @@ -58,5 +58,5 @@ Xft.rgba: rgb Xft.hinting: true Xft.hintstyle: hintslight -URxvt.font: xft:Sauce Code Powerline:size=8:pixelsize=9,style=Light +URxvt.font: xft:Sauce Code Powerline:size=10:pixelsize=10,style=Light URxvt.scrollBar: false