aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/rc.lua153
-rw-r--r--.config/awesome/todo.lua47
-rw-r--r--.config/git/config1
-rw-r--r--.config/gtd/config.toml9
-rw-r--r--.config/shell/aliases.d/freebsd4
-rw-r--r--.config/shell/env3
-rw-r--r--.config/shell/profile10
-rw-r--r--.config/shell/sources7
8 files changed, 172 insertions, 62 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index a17014d..d934a6e 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -14,8 +14,7 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
--- Include modules
-local gtd_next_items = require("gtd_next_items")
+local todo = require("todo")
-- Error handling
-- Check if awesome encountered an error during startup and fell back to
@@ -124,7 +123,7 @@ mykeyboardlayout = awful.widget.keyboardlayout()
mytextclock = wibox.widget.textclock()
-- Add the GTD functionality
-gtd_next_items({}):attach(mytextclock)
+todo({}):attach(mytextclock)
-- Create a wibox for each screen and add it
local taglist_buttons = gears.table.join(
@@ -428,53 +427,115 @@ root.keys(globalkeys)
-- Rules
-- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = {
- -- All clients will match this rule.
- { rule = { },
- properties = { border_width = beautiful.border_width,
- border_color = beautiful.border_normal,
- focus = awful.client.focus.filter,
- raise = true,
- keys = clientkeys,
- buttons = clientbuttons,
- screen = awful.screen.preferred,
- placement = awful.placement.no_overlap+awful.placement.no_offscreen
- }
+ -- All clients will match this rule.
+ {
+ rule = { },
+ properties = {
+ border_width = beautiful.border_width,
+ border_color = beautiful.border_normal,
+ focus = awful.client.focus.filter,
+ raise = true,
+ keys = clientkeys,
+ buttons = clientbuttons,
+ screen = awful.screen.preferred,
+ placement = awful.placement.no_overlap+awful.placement.no_offscreen
+ }
+ },
+
+ -- Floating clients.
+
+ {
+ rule_any = {
+ instance = {
+ "DTA", -- Firefox addon DownThemAll.
+ "copyq", -- Includes session name in class.
+ },
+ class = {
+ "Arandr",
+ "Gpick",
+ "Kruler",
+ "MessageWin", -- kalarm.
+ "Sxiv",
+ "Wpa_gui",
+ "pinentry",
+ "veromix",
+ "xtightvncviewer"
+ },
+ name = {
+ "Event Tester", -- xev.
+ },
+ role = {
+ "AlarmWindow", -- Thunderbird's calendar.
+ "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
+ }
},
+ properties = {
+ floating = true
+ }
+ },
- -- Floating clients.
- { rule_any = {
- instance = {
- "DTA", -- Firefox addon DownThemAll.
- "copyq", -- Includes session name in class.
- },
- class = {
- "Arandr",
- "Gpick",
- "Kruler",
- "MessageWin", -- kalarm.
- "Sxiv",
- "Wpa_gui",
- "pinentry",
- "veromix",
- "xtightvncviewer"},
-
- name = {
- "Event Tester", -- xev.
- },
- role = {
- "AlarmWindow", -- Thunderbird's calendar.
- "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
- }
- }, properties = { floating = true }},
-
- -- Add titlebars to normal clients and dialogs
- { rule_any = {type = { "normal", "dialog" }
- }, properties = { titlebars_enabled = true }
+ -- Add titlebars to normal clients and dialogs
+
+ {
+ rule_any = {
+ type = {
+ "normal",
+ "dialog"
+ }
},
+ properties = {
+ titlebars_enabled = true
+ }
+ },
+
+ -- Application-specific rules
+
+ -- www-client/chromium
+ {
+ rule_any = {
+ class = {
+ "chromium-browser-chromium",
+ "Chromium-browser-chromium",
+ }
+ },
+ properties = {
+ tag = sharedtaglist[3]
+ },
+ },
+
+ -- www-client/firefox
+ {
+ rule_any = {
+ class = {
+ "Navigator",
+ "Firefox Developer Edition"
+ }
+ },
+ properties = {
+ tag = sharedtaglist[3]
+ },
+ },
+
+ -- media-video/mpv
+ {
+ rule_any = {
+ class = {
+ "gl",
+ "mpv",
+ }
+ },
+ properties = {
+ tag = sharedtaglist[5]
+ },
+ },
+
+ { properties = { tag = sharedtaglist[4] }, rule_any = { class = { "claws-mail", "Claws-mail" } } },
+ { properties = { tag = sharedtaglist[5] }, rule_any = { name = { "Blizzard Battle.net" } } },
+ { properties = { tag = sharedtaglist[5] }, rule_any = { name = { "World of Warcraft" } } },
- -- Set Firefox to always map on the tag named "2" on screen 1.
- -- { rule = { class = "Firefox" },
- -- properties = { screen = 1, tag = "2" } },
+ -- Set Firefox to always map on the tag named "2" on screen 1.
+ -- { rule = { class = "Firefox" },
+ -- properties = { screen = 1, tag = "2" } },
}
-- }}}
diff --git a/.config/awesome/todo.lua b/.config/awesome/todo.lua
new file mode 100644
index 0000000..83cf2d8
--- /dev/null
+++ b/.config/awesome/todo.lua
@@ -0,0 +1,47 @@
+local capi = {
+ mouse = mouse,
+ screen = screen,
+}
+local naughty = require("naughty")
+
+------------------------------------------
+-- todo.txt popup widget
+------------------------------------------
+
+local todo = {}
+
+function todo:new(args)
+ return setmetatable({}, {__index = self})
+end
+
+function todo:show()
+ local f = assert(io.open("/home/tyil/documents/todo.txt", "rb"))
+ local content = f:read("*all"):gsub("%s+$", "")
+ f:close()
+
+ self.notification = naughty.notify({
+ title = "Todo",
+ text = content,
+ timeout = 0,
+ hover_timeout = 0.5,
+ screen = capi.mouse.screen,
+ position = self.position,
+ })
+end
+
+function todo:hide()
+ if self.notification then
+ naughty.destroy(self.notification)
+ self.notification = nil
+ self.num_lines = 0
+ end
+end
+
+function todo:attach(widget)
+ widget:connect_signal('mouse::enter', function() self:show() end)
+ widget:connect_signal('mouse::leave', function() self:hide() end)
+end
+
+return setmetatable(todo, {
+ __call = todo.new,
+})
diff --git a/.config/git/config b/.config/git/config
index 1f4dd13..0f811e4 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -1,6 +1,7 @@
[alias]
a = add
b = branch
+ bc = branch-cleanup
c = commit
ca = commit --amend --reset-author
co = checkout
diff --git a/.config/gtd/config.toml b/.config/gtd/config.toml
index cb9d5af..7ec125a 100644
--- a/.config/gtd/config.toml
+++ b/.config/gtd/config.toml
@@ -1,7 +1,2 @@
-[gtd]
-context = "work"
-
-[database]
-type = "fs"
-directory = "/home/tyil/documents/gtd"
-#directory = "/home/tyil/.local/tmp/gtd"
+[data]
+file = "/home/tyil/documents/todo.txt"
diff --git a/.config/shell/aliases.d/freebsd b/.config/shell/aliases.d/freebsd
new file mode 100644
index 0000000..d9b7bb4
--- /dev/null
+++ b/.config/shell/aliases.d/freebsd
@@ -0,0 +1,4 @@
+#! /usr/bin/env sh
+
+alias l="ls -GIhl"
+alias ll="ls -Gahl"
diff --git a/.config/shell/env b/.config/shell/env
index 61b91b9..f614d7b 100644
--- a/.config/shell/env
+++ b/.config/shell/env
@@ -2,9 +2,6 @@
# Author: Patrick Spek <p.spek@tyil.nl>
# License: BSD 3-clause license
-# Force terminal type
-export TERM=screen-256color
-
# Set locale
export LANG="en_US.UTF-8"
export LESSCHARSET="utf-8"
diff --git a/.config/shell/profile b/.config/shell/profile
index f0ba63d..1811f1e 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -1,7 +1,7 @@
#! /usr/bin/env sh
-if command -v lonestar > /dev/null 2>&1
-then
- [ "${DEBUG_DOTFILES}" ] && echo "Initializing LoneStar"
- eval "$(lonestar init)"
-fi
+#if command -v lonestar > /dev/null 2>&1
+#then
+# [ "${DEBUG_DOTFILES}" ] && echo "Initializing LoneStar"
+# eval "$(lonestar init)"
+#fi
diff --git a/.config/shell/sources b/.config/shell/sources
index c4acb5e..5573d62 100644
--- a/.config/shell/sources
+++ b/.config/shell/sources
@@ -18,7 +18,9 @@ PATH="${PATH}:${HOME}/.scripts/generic"
PATH="${PATH}:${HOME}/.config/shell/wrappers.d"
# Language specific package manager bin dirs
-PATH="${PATH}:${HOME}/.perl6/bin"
+PATH="${PATH}:${HOME}/.local/share/perl6/site/bin"
+PATH="${PATH}:${HOME}/.local/share/perl6/vendor/bin"
+PATH="${PATH}:${HOME}/.local/share/perl6"
PATH="${PATH}:${HOME}/.cabal/bin"
# System bin dirs
@@ -103,3 +105,6 @@ if [ -f "${HOME}/.config/shell/motd" ]; then
# shellcheck disable=SC1090
. "${HOME}/.config/shell/motd"
fi
+
+# clear terminal
+[ "$DEBUG_DOTFILES" ] || clear