Add kitty terminal configuration

Update other stuff
This commit is contained in:
2019-05-04 21:03:07 +04:00
parent 5b2844a2f0
commit 19cc1b0528
249 changed files with 8937 additions and 98 deletions

View File

@@ -22,7 +22,6 @@
--ALTMETA=""
-- Terminal emulator.
XTERM="urxvt"
-- Some basic settings.
ioncore.set{

View File

@@ -379,7 +379,7 @@ defbindings("WMoveresMode", {
-- Main menu
defmenu("mainmenu", {
menuentry("Run...", "mod_query.query_exec(_)"),
menuentry("Terminal", "mod_query.exec_on_merr(_, XTERM or 'urxvt')"),
menuentry("Terminal", "mod_query.exec_on_merr(_, XTERM or 'terminal')"),
menuentry("Shrug", "mod_query.exec_on_merr(_, shrugger)"),
menuentry("Lock screen",
"notioncore.exec_on(_, 'locker')"),

View File

@@ -37,7 +37,7 @@ mod_statusbar.create{
-- right, respectively, and %systray is a placeholder for system tray
-- windows and icons.
--
template=" %battery %battery_remaining | %load | %mem_available | %filler | %taskwarrior | %pomodoro [ %timelogger ] %systray | %date ",
template=" %battery %battery_remaining | %load | %mem_available | %filler%taskwarrior | %pomodoro [ %timelogger ] %systray | %date ",
--template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray",
--template="[ %date || load: %05load_1min || mail: %02mail_new/%02mail_total ] %filler%systray",
}

113
.notion/look_base16.lua Normal file
View File

@@ -0,0 +1,113 @@
-- look_simpleblue.lua drawing engine configuration file for Notion.
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colour = "black",
highlight_colour = "black",
background_colour = "#1d2021",
foreground_colour = "#d5c4a1",
padding_pixels = 0,
highlight_pixels = 0,
shadow_pixels = 0,
border_style = "elevated",
font = "-*-Fixedsys Excelsior-regular-r-*-*-13-*-*-*-*-*-*",
text_align = "center",
})
de.defstyle("frame", {
shadow_colour = "black",
highlight_colour = "#1d2021",
padding_colour = "#1d2021",
background_colour = "black",
foreground_colour = "#1d2021",
padding_pixels = 0,
highlight_pixels = 0,
shadow_pixels = 0,
de.substyle("active", {
shadow_colour = "black",
highlight_colour = "black",
background_colour = "#665c54",
foreground_colour = "#1d2021",
}),
})
de.defstyle("tab", {
de.substyle("active-selected", {
shadow_colour = "black",
highlight_colour = "black",
background_colour = "#665c54",
foreground_colour = "#fbf1c7",
}),
--de.substyle("active-unselected", {
--shadow_colour = "black",
--highlight_colour = "black",
--background_colour = "#073642",
--foreground_colour = "#9f9f9f",
--}),
--de.substyle("inactive-selected", {
--shadow_colour = "black",
--highlight_colour = "black",
--background_colour = "#382C1B",
--foreground_colour = "#bfbfbf",
--}),
--de.substyle("inactive-unselected", {
--shadow_colour = "black",
--highlight_colour = "black",
--background_colour = "#073642",
--foreground_colour = "#9f9f9f",
--}),
padding_pixels = 1,
text_align = "left",
})
de.defstyle("input", {
shadow_colour = "black",
highlight_colour = "black",
background_colour = "#1d2021",
foreground_colour = "#fbf1c7",
padding_pixels = 1,
highlight_pixels = 0,
shadow_pixels = 0,
border_style = "elevated",
de.substyle("*-cursor", {
background_colour = "#fdf6e3",
foreground_colour = "#1d2021",
}),
de.substyle("*-selection", {
background_colour = "#83a598",
foreground_colour = "#1d2021",
}),
})
de.defstyle("input-menu", {
padding_pixels=0,
})
de.defstyle("stdisp", {
shadow_pixels = 0,
highlight_pixels = 0,
text_align = "left",
background_colour = "black",
foreground_colour = "#bdae93",
-- font = "-*-Fixedsys Excelsior-regular-r-*-*-13-*-*-*-*-*-*",
font = "-*-Iosevka Term Bold-regular-r-*-*-13-*-*-*-*-*-*",
de.substyle("important", {
background_colour = "black",
foreground_colour = "#b8bb26",
highlight_colour = "#1d2021",
}),
de.substyle("critical", {
background_colour = "black",
foreground_colour = "#fb4934",
highlight_colour = "#1d2021",
}),
})
-- dopath("lookcommon_clean")
gr.refresh()

11
.notion/statusd_task Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
CURRENT_TASK=$(/usr/bin/task active 2>&1 | head -n 4 | tail -n 1 | sed 's/\s\+/ /g')
if [[ $CURRENT_TASK == 'No matches.' ]]; then
echo ''
else
echo "Task: $CURRENT_TASK"
fi
exit 0

View File

@@ -1,5 +1,5 @@
local task_base_settings = {
update_interval = 30*1000, -- every minute
update_interval = 15*1000, -- every 15 seconds
}
local task_settings = task_base_settings
@@ -8,7 +8,7 @@ local task_timer
-- Read the active task
local function read_task_data ()
local f = assert(io.popen("/usr/bin/task statusd limit:1 | head -n 4 | tail -n 1 | sed 's/\s\+/ /g'"))
local f = assert(io.popen("~/.notion/statusd_task"))
local data = f:read("*all")
f:close()
return data
@@ -20,6 +20,7 @@ local function inform_task ()
local task = read_task_data()
statusd.inform("taskwarrior", task)
statusd.inform("taskwarrior_hint", "critical")
end

7
.notion/statusd_timeledger Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
CURRENT_TASK=$(cd ~/.work-ledger && ./bin/ledger bal -p today --depth 1 ^Work | sed 's/\s\+/ /g')
echo $CURRENT_TASK
exit 0