nanorc and color scheme update
This commit is contained in:
parent
5d8b01834f
commit
e065a8d86f
60 changed files with 1976 additions and 11 deletions
|
@ -3,15 +3,15 @@ local HOME = os.getenv("HOME")
|
|||
return {
|
||||
terminal = HOME .. "/.local/bin/wezterm",
|
||||
terminal_separator = "start",
|
||||
editor = "nvim",
|
||||
editor = "nano",
|
||||
screenshot = HOME .. "/.local/bin/screenie",
|
||||
modkey = "Mod4",
|
||||
theme = "tokyo_night",
|
||||
theme = "amora_focus",
|
||||
font = "Terminus 8",
|
||||
gap = 4,
|
||||
border_width = 1,
|
||||
icon_theme = "Chicago95-tux",
|
||||
wallpaper = HOME .. "/Pictures/pixelart_night_stars_clouds_trees_cozy.png",
|
||||
wallpaper = HOME .. "/Pictures/starrynight.png",
|
||||
layouts = {
|
||||
"fair",
|
||||
"fair.horizontal",
|
||||
|
|
|
@ -75,6 +75,9 @@ local modkey = config.modkey or "Mod4"
|
|||
local altkey = config.altkey or "Mod1"
|
||||
|
||||
cyclefocus.move_mouse_pointer = false
|
||||
cyclefocus.cycle_filters = {
|
||||
function(c, source_c) return true end,
|
||||
}
|
||||
|
||||
-- Themes define colours, icons, font and wallpapers.
|
||||
do
|
||||
|
@ -246,7 +249,7 @@ local function set_wallpaper(s)
|
|||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
gears.wallpaper.maximized(wallpaper, s, false)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -330,6 +333,8 @@ local function makeBarIcon(icon)
|
|||
end
|
||||
|
||||
-- Widgets
|
||||
local clock_icon = makeBarIcon("clock")
|
||||
local uclock = wibox.widget.textclock(markup(beautiful.widget_clock or beautiful.wibar_fg, "(UTC: %H) "), 1, "UTC")
|
||||
local clock = wibox.widget.textclock(markup(beautiful.widget_clock or beautiful.wibar_fg, "%H:%M:%S"), 1)
|
||||
local calendar = lain.widget.cal({
|
||||
attach_to = {clock},
|
||||
|
@ -375,18 +380,21 @@ local volume_buttons = awful.util.table.join(
|
|||
volume.widget:buttons(volume_buttons)
|
||||
volume_icon:buttons(volume_buttons)--]]
|
||||
|
||||
local memory_icon = makeBarIcon("memory")
|
||||
local memory = lain.widget.mem({
|
||||
settings = function()
|
||||
widget:set_markup(markup(beautiful.widget_memory or beautiful.wibar_fg, mem_now.used .. " MB, " .. mem_now.swapused .. " MB"))
|
||||
end
|
||||
})
|
||||
|
||||
local cpu_icon = makeBarIcon("cpu")
|
||||
local cpu = lain.widget.cpu({
|
||||
settings = function()
|
||||
widget:set_markup(markup(beautiful.widget_cpu or beautiful.wibar_fg, cpu_now.usage .. "%"))
|
||||
end
|
||||
})
|
||||
|
||||
local cpu_temp_icon = makeBarIcon("cpu_temp")
|
||||
local cpu_temp = wibox.widget.textbox()
|
||||
awful.widget.watch(
|
||||
'bash -c "cat /sys/class/hwmon/hwmon1/temp1_input"',
|
||||
|
@ -397,6 +405,7 @@ awful.widget.watch(
|
|||
cpu_temp
|
||||
)
|
||||
|
||||
local gpu_icon = makeBarIcon("gpu")
|
||||
local gpu = wibox.widget.textbox()
|
||||
awful.widget.watch(
|
||||
'bash -c "radeontop -d - -l 1"',
|
||||
|
@ -410,6 +419,7 @@ awful.widget.watch(
|
|||
gpu
|
||||
)
|
||||
|
||||
local gpu_temp_icon = makeBarIcon("gpu_temp")
|
||||
local gpu_temp = wibox.widget.textbox()
|
||||
awful.widget.watch(
|
||||
'bash -c "cat /sys/class/hwmon/hwmon0/temp1_input"',
|
||||
|
@ -626,7 +636,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
music_wrapper,
|
||||
{
|
||||
{
|
||||
makeBarIcon("cpu"),
|
||||
cpu_icon,
|
||||
cpu.widget,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
|
@ -638,7 +648,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},
|
||||
{
|
||||
{
|
||||
makeBarIcon("cpu_temp"),
|
||||
cpu_temp_icon,
|
||||
cpu_temp,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
|
@ -650,7 +660,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},
|
||||
{
|
||||
{
|
||||
makeBarIcon("gpu"),
|
||||
gpu_icon,
|
||||
gpu,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
|
@ -662,7 +672,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},
|
||||
{
|
||||
{
|
||||
makeBarIcon("gpu_temp"),
|
||||
gpu_temp_icon,
|
||||
gpu_temp,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
|
@ -674,7 +684,7 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},
|
||||
{
|
||||
{
|
||||
makeBarIcon("memory"),
|
||||
memory_icon,
|
||||
memory.widget,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
|
@ -723,7 +733,8 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
},--]]
|
||||
{
|
||||
{
|
||||
makeBarIcon("clock"),
|
||||
clock_icon,
|
||||
uclock,
|
||||
clock,
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
},
|
||||
|
@ -755,6 +766,8 @@ root.buttons(gears.table.join(
|
|||
-- }}}
|
||||
|
||||
-- {{{ Key bindings
|
||||
|
||||
|
||||
globalkeys = gears.table.join(
|
||||
-- awesome
|
||||
awful.key(
|
||||
|
@ -841,7 +854,24 @@ globalkeys = gears.table.join(
|
|||
awful.key(
|
||||
{}, "Print",
|
||||
function()
|
||||
awful.spawn(screenshot)
|
||||
awful.spawn.with_line_callback("screenie-min", {
|
||||
stdout = function(path)
|
||||
awful.menu({
|
||||
{
|
||||
"Upload Image",
|
||||
function()
|
||||
awful.spawn('elixiremanager.sh "' .. path .. '"')
|
||||
end,
|
||||
},
|
||||
{
|
||||
"Copy Image",
|
||||
function()
|
||||
awful.spawn('xclip -selection clipboard -target image/png "' .. path .. '"')
|
||||
end,
|
||||
}
|
||||
}):show()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
{
|
||||
description = "run screenshot tool",
|
||||
|
|
146
linux/.config/awesome/themes/amora_focus.lua
Executable file
146
linux/.config/awesome/themes/amora_focus.lua
Executable file
|
@ -0,0 +1,146 @@
|
|||
---------------------------
|
||||
-- Default awesome theme --
|
||||
---------------------------
|
||||
|
||||
local theme_assets = require("beautiful.theme_assets")
|
||||
local xresources = require("beautiful.xresources")
|
||||
local dpi = xresources.apply_dpi
|
||||
|
||||
local gfs = require("gears.filesystem")
|
||||
local themes_path = gfs.get_themes_dir()
|
||||
|
||||
local colors = {
|
||||
background = "#1a1a1a",
|
||||
foreground = "#dedbeb",
|
||||
secondary = "#171717",
|
||||
tertiary = "#141414",
|
||||
accent = "#634e75",
|
||||
|
||||
color0 = "#2d2d2d",
|
||||
color1 = "#e83f80",
|
||||
color2 = "#a2baa8",
|
||||
color3 = "#eacac0",
|
||||
color4 = "#9985d1",
|
||||
color5 = "#e68ac1",
|
||||
color6 = "#aabae7",
|
||||
color7 = "#dedbeb",
|
||||
|
||||
color8 = "#383838",
|
||||
color9 = "#f55d8f",
|
||||
color10 = "#bfd1c3",
|
||||
color11 = "#f0ddd8",
|
||||
color12 = "#b4a4de",
|
||||
color13 = "#edabd2",
|
||||
color14 = "#c4d1f5",
|
||||
color15 = "#edebf7",
|
||||
}
|
||||
|
||||
local theme = dofile(themes_path .. "default/theme.lua")
|
||||
|
||||
theme.__colors = colors
|
||||
|
||||
theme.bg_normal = colors.secondary
|
||||
theme.bg_focus = colors.background
|
||||
theme.bg_urgent = colors.color0
|
||||
theme.bg_minimize = colors.tertiary
|
||||
theme.bg_systray = colors.background
|
||||
|
||||
theme.fg_normal = colors.color7
|
||||
theme.fg_focus = colors.foreground
|
||||
theme.fg_urgent = colors.color1
|
||||
theme.fg_minimize = colors.color0
|
||||
|
||||
theme.border_normal = theme.bg_normal
|
||||
theme.border_focus = colors.accent
|
||||
theme.border_marked = colors.color2
|
||||
|
||||
-- There are other variable sets
|
||||
-- overriding the default one when
|
||||
-- defined, the sets are:
|
||||
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
|
||||
-- tasklist_[bg|fg]_[focus|urgent]
|
||||
-- titlebar_[bg|fg]_[normal|focus]
|
||||
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
|
||||
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
|
||||
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
|
||||
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
|
||||
-- Example:
|
||||
--theme.taglist_bg_focus = "#ff0000"
|
||||
|
||||
theme.taglist_bg_focus = colors.background
|
||||
theme.taglist_bg_urgent = theme.taglist_bg_focus
|
||||
theme.taglist_bg_occupied = theme.taglist_bg_focus
|
||||
theme.taglist_bg_empty = theme.taglist_bg_focus
|
||||
theme.taglist_bg_volatile = theme.taglist_bg_focus
|
||||
|
||||
theme.taglist_fg_focus = colors.color5
|
||||
theme.taglist_fg_urgent = colors.color1
|
||||
theme.taglist_fg_occupied = colors.color2
|
||||
theme.taglist_fg_empty = colors.foreground
|
||||
theme.taglist_fg_volatile = colors.color3
|
||||
|
||||
theme.tasklist_fg_focus = colors.color5
|
||||
theme.tasklist_fg_urgent = colors.color1
|
||||
|
||||
theme.wibar_bg = colors.background
|
||||
theme.wibar_fg = colors.foreground
|
||||
|
||||
theme.layout_fg = colors.foreground
|
||||
|
||||
-- bar items
|
||||
theme.widget_clock = colors.color6
|
||||
theme.widget_volume = colors.color4
|
||||
theme.widget_volume_muted = colors.color9
|
||||
theme.widget_cpu = colors.color10
|
||||
theme.widget_gpu = colors.color14
|
||||
theme.widget_memory = colors.color11
|
||||
theme.widget_music = colors.color13
|
||||
theme.widget_packages = colors.color4
|
||||
theme.widget_net_up = colors.color1
|
||||
theme.widget_net_down = colors.color2
|
||||
|
||||
-- Generate taglist squares:
|
||||
--[[local taglist_square_size = dpi(4)
|
||||
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)
|
||||
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
|
||||
taglist_square_size, theme.fg_normal
|
||||
)--]]
|
||||
theme.taglist_squares_sel = nil
|
||||
theme.taglist_squares_unsel = nil
|
||||
|
||||
-- Variables set for theming notifications:
|
||||
-- notification_font
|
||||
-- notification_[bg|fg]
|
||||
-- notification_[width|height|margin]
|
||||
-- notification_[border_color|border_width|shape|opacity]
|
||||
|
||||
theme.notification_bg = colors.background
|
||||
theme.notification_fg = colors.foreground
|
||||
theme.notification_border_color = colors.color5
|
||||
|
||||
-- Variables set for theming the menu:
|
||||
-- menu_[bg|fg]_[normal|focus]
|
||||
-- menu_[border_color|border_width]
|
||||
theme.menu_bg_normal = colors.background
|
||||
theme.menu_bg_focus = colors.accent
|
||||
|
||||
theme.menu_fg_normal = colors.foreground
|
||||
theme.menu_fg_focus = "#ffffff"
|
||||
|
||||
theme.menu_border_color = colors.background
|
||||
|
||||
-- Generate Awesome icon:
|
||||
theme.awesome_icon = theme_assets.awesome_icon(
|
||||
16, colors.background, colors.accent
|
||||
)
|
||||
|
||||
-- You can add as many variables as
|
||||
-- you wish and access them by using
|
||||
-- beautiful.variable in your rc.lua
|
||||
--theme.bg_widget = "#cc0000"
|
||||
|
||||
return theme
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
Loading…
Add table
Add a link
Reference in a new issue