Commits

Peter Ward  committed e8ae3d9

things

  • Participants
  • Parent commits 6347780

Comments (0)

Files changed (7)

File .config/awesome/bindings.lua

     awful.key({ modkey, "Control" }, "l",     function () awful.tag.incncol(-1)         end),
     awful.key({ modkey,           }, "space", function () awful.layout.inc(layouts,  1) end),
     awful.key({ modkey, "Shift"   }, "space", function () awful.layout.inc(layouts, -1) end),
+    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("pactl -- set-sink-volume 1 -5%") end),
+    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("pactl -- set-sink-volume 1 +5%") end),
+    awful.key({ modkey, "Shift" }, "l", function () awful.util.spawn("gnome-screensaver-command -a") end),
 
     -- Prompt
     awful.key({ modkey },            "r",     function () mypromptbox[mouse.screen]:run() end),

File .config/awesome/rules.lua

                      buttons = clientbuttons } },
 
 --    { rule = { class = "nautilus" }, properties = { tags = all } },
+    { rule = { class = "scorer.py" }, properties = { tag = tags[1][1] } },
     { rule = { class = "Presenter" }, properties = { screen = 2 } },
     {
         rule = { type = "desktop" },

File .config/awesome/themes/default/theme.lua

 theme.titlebar_maximized_button_focus_active = awful.util.getdir("config") .. "/themes/default/titlebar/maximized-active.png"
 
 -- You can use your own command to set your wallpaper
-theme.wallpaper_cmd = { "true" }
+theme.wallpaper_cmd = { "update-background" }
 
 -- You can use your own layout icons like this:
 theme.layout_fairh = awful.util.getdir("config") .. "/themes/default/layouts/fairhw.png"

File .config/gnome-session/sessions/awesome-gnome.session

 [GNOME Session]
 Name=awesome-gnome
-RequiredComponents=gnome-settings-daemon;
+RequiredComponents=awesome;gnome-settings-daemon;
 RequiredProviders=windowmanager;
-DefaultProvider-windowmanager=awesome
-DefaultProvider-notifications=notification-daemon
 FallbackSession=gnome-fallback
 DesktopName=GNOME
     cmd = meld-merge $BASE $LOCAL $REMOTE $MERGED
 [alias]
 	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
+[push]
+	default = simple

File .vim/behaviour.vim

 
 " Slime
 let g:slime_target = "tmux"
+
+" Create parent directories on save.
+function s:MkNonExDir(file, buf)
+    if empty(getbufvar(a:buf, '&buftype')) && a:file!~#'\v^\w+\:\/'
+        let dir=fnamemodify(a:file, ':h')
+        if !isdirectory(dir)
+            call mkdir(dir, 'p')
+        endif
+    endif
+endfunction
+augroup BWCCreateDir
+    autocmd!
+    autocmd BufWritePre * :call s:MkNonExDir(expand('<afile>'), +expand('<abuf>'))
+augroup END

File .vim/local.vim

-set runtimepath+=/usr/share/lilypond/2.16.0/vim/
+set runtimepath+=/usr/share/lilypond/2.16.2/vim/
 let g:ackprg="ack-grep -H --nocolor --nogroup --column"