Browse Source

Modify lemonbar script to work with Ubuntu

master
Taylor Bockman 9 years ago
parent
commit
78faa510d5
  1. BIN
      dotfiles/xmonad/xmonad-x86_64-linux
  2. 6
      dotfiles/xmonad/xmonad.hs
  3. BIN
      dotfiles/xmonad/xmonad.o
  4. 6
      scripts/lemonbar/final_bar.sh
  5. 1
      ubuntu/installer.sh

BIN
dotfiles/xmonad/xmonad-x86_64-linux

Binary file not shown.

6
dotfiles/xmonad/xmonad.hs

@ -252,9 +252,9 @@ main = do
,((0 , xF86XK_Sleep ), spawn "pm-suspend")
,((0 , xF86XK_MonBrightnessUp ), spawn "xbacklight -inc 10")
,((0 , xF86XK_MonBrightnessDown ), spawn "xbacklight -dec 10")
,((0 , xF86XK_AudioMute), spawn "amixer -q set Master toggle")
,((0 , xF86XK_AudioLowerVolume), spawn "amixer -q set Master 5%-")
,((0 , xF86XK_AudioRaiseVolume ), spawn "amixer -q set Master 5%+")
,((0 , xF86XK_AudioMute), spawn "amixer -D pulse -q set Master toggle")
,((0 , xF86XK_AudioLowerVolume), spawn "amixer -D pulse -q set Master 5%-")
,((0 , xF86XK_AudioRaiseVolume ), spawn "amixer -D pulse -q set Master 6%+")
]
`additionalMouseBindings`
[((myModMask, 6), \_ -> moveTo Next NonEmptyWS)

BIN
dotfiles/xmonad/xmonad.o

Binary file not shown.

6
scripts/lemonbar/final_bar.sh

@ -17,7 +17,11 @@ battery() {
}
volume() {
amixer get Master | grep -P -o '\[[0-9]+%\]'
# amixer get Master works fine on everything but
# Ubuntu. You need amixer -d pulse in Ubuntu.
amixer -D pulse get Master | grep -P -o '\[[0-9]+%\]'
}
cpuload() {

1
ubuntu/installer.sh

@ -21,6 +21,7 @@ sudo apt-get -qq -y install xinit
sudo apt-get -qq -y install wmname
sudo apt-get -qq -y install libxcb-xinerama0-dev
sudo apt-get -qq -y install libxcb-randr0-dev
sudo apt-get -qq -y install xbacklight
# Build and install lemonbar from source
echo "Installing lemonbar from source..."

Loading…
Cancel
Save