Clean up configs, remove bashrc conflicting with bash
27
home/.bashrc
@ -1,27 +0,0 @@
|
|||||||
# If not running interactively, don't do anything
|
|
||||||
[[ $- != *i* ]] && return
|
|
||||||
|
|
||||||
export PATH=$HOME/bin:$PATH
|
|
||||||
export HISTCONTROL=ignoreboth:erasedups
|
|
||||||
|
|
||||||
PS1='[\u@\h \W]\$ '
|
|
||||||
|
|
||||||
#list
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias la='ls -a'
|
|
||||||
alias ll='ls -la'
|
|
||||||
alias l='ls'
|
|
||||||
|
|
||||||
alias merge="xrdb -merge ~/.Xresources"
|
|
||||||
alias pmsyu="sudo pacman -Syu --color=auto"
|
|
||||||
alias pacman='sudo pacman --color auto'
|
|
||||||
alias update='sudo pacman -Syu'
|
|
||||||
alias upmirrors='sudo reflector --score 100 --fastest 25 --sort rate --save /etc/pacman.d/mirrorlist --verbose'
|
|
||||||
|
|
||||||
shopt -s autocd # change to named directory
|
|
||||||
shopt -s cdspell # autocorrects cd misspellings
|
|
||||||
shopt -s cmdhist # save multi-line commands in history as single line
|
|
||||||
shopt -s histappend # do not overwrite history
|
|
||||||
shopt -s expand_aliases # expand aliases
|
|
||||||
|
|
||||||
neofetch
|
|
126
home/.config/awesome/freedesktop/desktop.lua
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
local wibox = wibox
|
||||||
|
local widget = widget
|
||||||
|
local screen = screen
|
||||||
|
local image = image
|
||||||
|
local button = button
|
||||||
|
local table = table
|
||||||
|
local ipairs = ipairs
|
||||||
|
local awful = require("awful")
|
||||||
|
local utils = require("freedesktop.utils")
|
||||||
|
|
||||||
|
module("freedesktop.desktop")
|
||||||
|
|
||||||
|
local current_pos = {}
|
||||||
|
local iconsize = { width = 48, height = 48 }
|
||||||
|
local labelsize = { width = 130, height = 20 }
|
||||||
|
local margin = { x = 20, y = 20 }
|
||||||
|
|
||||||
|
function add_icon(settings)
|
||||||
|
|
||||||
|
local s = settings.screen
|
||||||
|
|
||||||
|
if not current_pos[s] then
|
||||||
|
current_pos[s] = { x = (screen[s].geometry.width - iconsize.width - margin.x), y = 40 }
|
||||||
|
end
|
||||||
|
|
||||||
|
local totheight = (settings.icon and iconsize.height or 0) + (settings.label and labelsize.height or 0)
|
||||||
|
if totheight == 0 then return end
|
||||||
|
|
||||||
|
if current_pos[s].y + totheight > screen[s].geometry.height - 40 then
|
||||||
|
current_pos[s].x = current_pos[s].x - labelsize.width - iconsize.width - margin.x
|
||||||
|
current_pos[s].y = 40
|
||||||
|
end
|
||||||
|
|
||||||
|
if (settings.icon) then
|
||||||
|
icon = awful.widget.button({ image = settings.icon })
|
||||||
|
local newbuttons = icon:buttons()
|
||||||
|
table.insert(newbuttons, button({}, 1, nil, settings.click));
|
||||||
|
icon:buttons(newbuttons)
|
||||||
|
|
||||||
|
icon_container = wibox({ position = "floating", screen = s, bg = "#00000000" })
|
||||||
|
icon_container.widgets = { icon }
|
||||||
|
icon_container:geometry({
|
||||||
|
width = iconsize.width,
|
||||||
|
height = iconsize.height,
|
||||||
|
y = current_pos[s].y,
|
||||||
|
x = current_pos[s].x
|
||||||
|
})
|
||||||
|
icon_container.screen = s
|
||||||
|
|
||||||
|
current_pos[s].y = current_pos[s].y + iconsize.height + 5
|
||||||
|
end
|
||||||
|
|
||||||
|
if (settings.label) then
|
||||||
|
caption = widget({ type="textbox", align="right", width=labelsize.width })
|
||||||
|
caption.ellipsize = "middle"
|
||||||
|
caption.text = settings.label
|
||||||
|
caption:buttons({
|
||||||
|
button({ }, 1, settings.click)
|
||||||
|
})
|
||||||
|
|
||||||
|
caption_container = wibox({ position = "floating", screen = s, bg = "#00000000" })
|
||||||
|
caption_container.widgets = { caption }
|
||||||
|
caption_container:geometry({
|
||||||
|
width = labelsize.width,
|
||||||
|
height = labelsize.height,
|
||||||
|
y = current_pos[s].y,
|
||||||
|
x = current_pos[s].x - labelsize.width + iconsize.width
|
||||||
|
})
|
||||||
|
caption_container.screen = s
|
||||||
|
end
|
||||||
|
|
||||||
|
current_pos[s].y = current_pos[s].y + labelsize.height + margin.y
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Adds subdirs and files icons to the desktop
|
||||||
|
-- @param dir The directory to parse, (default is ~/Desktop)
|
||||||
|
-- @param showlabels Shows icon captions (default is false)
|
||||||
|
function add_applications_icons(arg)
|
||||||
|
for i, program in ipairs(utils.parse_desktop_files({
|
||||||
|
dir = arg.dir or '~/Desktop/',
|
||||||
|
icon_sizes = {
|
||||||
|
iconsize.width .. "x" .. iconsize.height,
|
||||||
|
"128x128", "96x96", "72x72", "64x64", "48x48",
|
||||||
|
"36x36", "32x32", "24x24", "22x22", "16x6"
|
||||||
|
}
|
||||||
|
})) do
|
||||||
|
if program.show then
|
||||||
|
add_icon({
|
||||||
|
label = arg.showlabels and program.Name or nil,
|
||||||
|
icon = program.icon_path,
|
||||||
|
screen = arg.screen,
|
||||||
|
click = function () awful.util.spawn(program.cmdline) end
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Adds subdirs and files icons to the desktop
|
||||||
|
-- @param dir The directory to parse
|
||||||
|
-- @param showlabels Shows icon captions
|
||||||
|
-- @param open_with The program to use to open clicked files and dirs (i.e. xdg_open, thunar, etc.)
|
||||||
|
function add_dirs_and_files_icons(arg)
|
||||||
|
arg.open_with = arg.open_width or 'thunar'
|
||||||
|
for i, file in ipairs(utils.parse_dirs_and_files({
|
||||||
|
dir = arg.dir or '~/Desktop/',
|
||||||
|
icon_sizes = {
|
||||||
|
iconsize.width .. "x" .. iconsize.height,
|
||||||
|
"128x128", "96x96", "72x72", "64x64", "48x48",
|
||||||
|
"36x36", "32x32", "24x24", "22x22", "16x6"
|
||||||
|
}
|
||||||
|
})) do
|
||||||
|
if file.show then
|
||||||
|
add_icon({
|
||||||
|
label = arg.showlabels and file.filename or nil,
|
||||||
|
icon = file.icon,
|
||||||
|
screen = arg.screen,
|
||||||
|
click = function () awful.util.spawn(arg.open_with .. ' ' .. file.path) end
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function add_desktop_icons(args)
|
||||||
|
add_applications_icons(args)
|
||||||
|
add_dirs_and_files_icons(args)
|
||||||
|
end
|
97
home/.config/awesome/freedesktop/menu.lua
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
-- Grab environment
|
||||||
|
local utils = require("freedesktop.utils")
|
||||||
|
local io = io
|
||||||
|
local string = string
|
||||||
|
local table = table
|
||||||
|
local os = os
|
||||||
|
local ipairs = ipairs
|
||||||
|
local pairs = pairs
|
||||||
|
|
||||||
|
module("freedesktop.menu")
|
||||||
|
|
||||||
|
all_menu_dirs = {
|
||||||
|
'/usr/share/applications/',
|
||||||
|
'/usr/local/share/applications/',
|
||||||
|
'~/.local/share/applications/'
|
||||||
|
}
|
||||||
|
|
||||||
|
show_generic_name = false
|
||||||
|
|
||||||
|
--- Create menus for applications
|
||||||
|
-- @param menu_dirs A list of application directories (optional).
|
||||||
|
-- @return A prepared menu w/ categories
|
||||||
|
function new(arg)
|
||||||
|
-- the categories and their synonyms where shamelessly copied from lxpanel
|
||||||
|
-- source code.
|
||||||
|
local programs = {}
|
||||||
|
local config = arg or {}
|
||||||
|
|
||||||
|
programs['AudioVideo'] = {}
|
||||||
|
programs['Development'] = {}
|
||||||
|
programs['Education'] = {}
|
||||||
|
programs['Game'] = {}
|
||||||
|
programs['Graphics'] = {}
|
||||||
|
programs['Network'] = {}
|
||||||
|
programs['Office'] = {}
|
||||||
|
programs['Settings'] = {}
|
||||||
|
programs['System'] = {}
|
||||||
|
programs['Utility'] = {}
|
||||||
|
programs['Other'] = {}
|
||||||
|
|
||||||
|
for i, dir in ipairs(config.menu_dirs or all_menu_dirs) do
|
||||||
|
local entries = utils.parse_desktop_files({dir = dir})
|
||||||
|
for j, program in ipairs(entries) do
|
||||||
|
-- check whether to include in the menu
|
||||||
|
if program.show and program.Name and program.cmdline then
|
||||||
|
if show_generic_name and program.GenericName then
|
||||||
|
program.Name = program.Name .. ' (' .. program.GenericName .. ')'
|
||||||
|
end
|
||||||
|
local target_category = nil
|
||||||
|
if program.categories then
|
||||||
|
for _, category in ipairs(program.categories) do
|
||||||
|
if programs[category] then
|
||||||
|
target_category = category
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if not target_category then
|
||||||
|
target_category = 'Other'
|
||||||
|
end
|
||||||
|
if target_category then
|
||||||
|
table.insert(programs[target_category], { program.Name, program.cmdline, program.icon_path })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- sort each submenu alphabetically case insensitive
|
||||||
|
for k, v in pairs(programs) do
|
||||||
|
table.sort(v, function(a, b) return a[1]:lower() < b[1]:lower() end)
|
||||||
|
end
|
||||||
|
|
||||||
|
local menu = {
|
||||||
|
{ "Accessories", programs["Utility"], utils.lookup_icon({ icon = 'applications-accessories.png' }) },
|
||||||
|
{ "Development", programs["Development"], utils.lookup_icon({ icon = 'applications-development.png' }) },
|
||||||
|
{ "Education", programs["Education"], utils.lookup_icon({ icon = 'applications-science.png' }) },
|
||||||
|
{ "Games", programs["Game"], utils.lookup_icon({ icon = 'applications-games.png' }) },
|
||||||
|
{ "Graphics", programs["Graphics"], utils.lookup_icon({ icon = 'applications-graphics.png' }) },
|
||||||
|
{ "Internet", programs["Network"], utils.lookup_icon({ icon = 'applications-internet.png' }) },
|
||||||
|
{ "Multimedia", programs["AudioVideo"], utils.lookup_icon({ icon = 'applications-multimedia.png' }) },
|
||||||
|
{ "Office", programs["Office"], utils.lookup_icon({ icon = 'applications-office.png' }) },
|
||||||
|
{ "Other", programs["Other"], utils.lookup_icon({ icon = 'applications-other.png' }) },
|
||||||
|
{ "Settings", programs["Settings"], utils.lookup_icon({ icon = 'preferences-desktop.png' }) },
|
||||||
|
{ "System Tools", programs["System"], utils.lookup_icon({ icon = 'applications-system.png' }) },
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Removing empty entries from menu
|
||||||
|
local cleanedMenu = {}
|
||||||
|
for index, item in ipairs(menu) do
|
||||||
|
itemTester = item[2]
|
||||||
|
if itemTester[1] then
|
||||||
|
table.insert(cleanedMenu, item)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return cleanedMenu
|
||||||
|
end
|
255
home/.config/awesome/freedesktop/utils.lua
Normal file
@ -0,0 +1,255 @@
|
|||||||
|
-- Grab environment
|
||||||
|
|
||||||
|
local io = io
|
||||||
|
local os = os
|
||||||
|
local table = table
|
||||||
|
local type = type
|
||||||
|
local ipairs = ipairs
|
||||||
|
local pairs = pairs
|
||||||
|
|
||||||
|
module("freedesktop.utils")
|
||||||
|
|
||||||
|
terminal = 'xterm'
|
||||||
|
|
||||||
|
icon_theme = nil
|
||||||
|
|
||||||
|
all_icon_sizes = {
|
||||||
|
'128x128',
|
||||||
|
'96x96',
|
||||||
|
'72x72',
|
||||||
|
'64x64',
|
||||||
|
'48x48',
|
||||||
|
'36x36',
|
||||||
|
'32x32',
|
||||||
|
'24x24',
|
||||||
|
'22x22',
|
||||||
|
'16x16'
|
||||||
|
}
|
||||||
|
all_icon_types = {
|
||||||
|
'apps',
|
||||||
|
'actions',
|
||||||
|
'devices',
|
||||||
|
'places',
|
||||||
|
'categories',
|
||||||
|
'status',
|
||||||
|
'mimetypes'
|
||||||
|
}
|
||||||
|
all_icon_paths = { os.getenv("HOME") .. '/.icons/', '/usr/share/icons/' }
|
||||||
|
|
||||||
|
icon_sizes = {}
|
||||||
|
|
||||||
|
local mime_types = {}
|
||||||
|
|
||||||
|
function get_lines(...)
|
||||||
|
local f = io.popen(...)
|
||||||
|
return function () -- iterator
|
||||||
|
local data = f:read()
|
||||||
|
if data == nil then f:close() end
|
||||||
|
return data
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function file_exists(filename)
|
||||||
|
local file = io.open(filename, 'r')
|
||||||
|
local result = (file ~= nil)
|
||||||
|
if result then
|
||||||
|
file:close()
|
||||||
|
end
|
||||||
|
return result
|
||||||
|
end
|
||||||
|
|
||||||
|
function lookup_icon(arg)
|
||||||
|
if arg.icon:sub(1, 1) == '/' and (arg.icon:find('.+%.png') or arg.icon:find('.+%.xpm')) then
|
||||||
|
-- icons with absolute path and supported (AFAICT) formats
|
||||||
|
return arg.icon
|
||||||
|
else
|
||||||
|
local icon_path = {}
|
||||||
|
local icon_themes = {}
|
||||||
|
local icon_theme_paths = {}
|
||||||
|
if icon_theme and type(icon_theme) == 'table' then
|
||||||
|
icon_themes = icon_theme
|
||||||
|
elseif icon_theme then
|
||||||
|
icon_themes = { icon_theme }
|
||||||
|
end
|
||||||
|
for i, theme in ipairs(icon_themes) do
|
||||||
|
for j, path in ipairs(all_icon_paths) do
|
||||||
|
table.insert(icon_theme_paths, path .. theme .. '/')
|
||||||
|
end
|
||||||
|
-- TODO also look in parent icon themes, as in freedesktop.org specification
|
||||||
|
end
|
||||||
|
table.insert(icon_theme_paths, '/usr/share/icons/hicolor/') -- fallback theme cf spec
|
||||||
|
|
||||||
|
local isizes = icon_sizes
|
||||||
|
for i, sz in ipairs(all_icon_sizes) do
|
||||||
|
table.insert(isizes, sz)
|
||||||
|
end
|
||||||
|
|
||||||
|
for i, icon_theme_directory in ipairs(icon_theme_paths) do
|
||||||
|
for j, size in ipairs(arg.icon_sizes or isizes) do
|
||||||
|
for k, icon_type in ipairs(all_icon_types) do
|
||||||
|
table.insert(icon_path, icon_theme_directory .. size .. '/' .. icon_type .. '/')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- lowest priority fallbacks
|
||||||
|
table.insert(icon_path, '/usr/share/pixmaps/')
|
||||||
|
table.insert(icon_path, '/usr/share/icons/')
|
||||||
|
table.insert(icon_path, '/usr/share/app-install/icons/')
|
||||||
|
|
||||||
|
for i, directory in ipairs(icon_path) do
|
||||||
|
if (arg.icon:find('.+%.png') or arg.icon:find('.+%.xpm')) and file_exists(directory .. arg.icon) then
|
||||||
|
return directory .. arg.icon
|
||||||
|
elseif file_exists(directory .. arg.icon .. '.png') then
|
||||||
|
return directory .. arg.icon .. '.png'
|
||||||
|
elseif file_exists(directory .. arg.icon .. '.xpm') then
|
||||||
|
return directory .. arg.icon .. '.xpm'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function lookup_file_icon(arg)
|
||||||
|
load_mime_types()
|
||||||
|
|
||||||
|
local extension = arg.filename:match('%a+$')
|
||||||
|
local mime = mime_types[extension] or ''
|
||||||
|
local mime_family = mime:match('^%a+') or ''
|
||||||
|
|
||||||
|
-- possible icons in a typical gnome theme (i.e. Tango icons)
|
||||||
|
local possible_filenames = {
|
||||||
|
mime,
|
||||||
|
'gnome-mime-' .. mime,
|
||||||
|
mime_family,
|
||||||
|
'gnome-mime-' .. mime_family,
|
||||||
|
extension
|
||||||
|
}
|
||||||
|
|
||||||
|
for i, filename in ipairs(possible_filenames) do
|
||||||
|
local icon = lookup_icon({icon = filename, icon_sizes = (arg.icon_sizes or all_icon_sizes)})
|
||||||
|
if icon then
|
||||||
|
return icon
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- If we don't find ad icon, then pretend is a plain text file
|
||||||
|
return lookup_icon({ icon = 'txt', icon_sizes = arg.icon_sizes or all_icon_sizes })
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Load system MIME types
|
||||||
|
-- @return A table with file extension <--> MIME type mapping
|
||||||
|
function load_mime_types()
|
||||||
|
if #mime_types == 0 then
|
||||||
|
for line in io.lines('/etc/mime.types') do
|
||||||
|
if not line:find('^#') then
|
||||||
|
local parsed = {}
|
||||||
|
for w in line:gmatch('[^%s]+') do
|
||||||
|
table.insert(parsed, w)
|
||||||
|
end
|
||||||
|
if #parsed > 1 then
|
||||||
|
for i = 2, #parsed do
|
||||||
|
mime_types[parsed[i]] = parsed[1]:gsub('/', '-')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Parse a .desktop file
|
||||||
|
-- @param file The .desktop file
|
||||||
|
-- @param requested_icon_sizes A list of icon sizes (optional). If this list is given, it will be used as a priority list for icon sizes when looking up for icons. If you want large icons, for example, you can put '128x128' as the first item in the list.
|
||||||
|
-- @return A table with file entries.
|
||||||
|
function parse_desktop_file(arg)
|
||||||
|
local program = { show = true, file = arg.file }
|
||||||
|
for line in io.lines(arg.file) do
|
||||||
|
for key, value in line:gmatch("(%w+)=(.+)") do
|
||||||
|
program[key] = value
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Don't show the program if NoDisplay is true
|
||||||
|
-- Only show the program if there is not OnlyShowIn attribute
|
||||||
|
-- or if it's equal to 'awesome'
|
||||||
|
if program.NoDisplay == "true" or program.OnlyShowIn ~= nil and program.OnlyShowIn ~= "awesome" then
|
||||||
|
program.show = false
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Look up for a icon.
|
||||||
|
if program.Icon then
|
||||||
|
program.icon_path = lookup_icon({ icon = program.Icon, icon_sizes = (arg.icon_sizes or all_icon_sizes) })
|
||||||
|
if program.icon_path ~= nil and not file_exists(program.icon_path) then
|
||||||
|
program.icon_path = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Split categories into a table.
|
||||||
|
if program.Categories then
|
||||||
|
program.categories = {}
|
||||||
|
for category in program.Categories:gmatch('[^;]+') do
|
||||||
|
table.insert(program.categories, category)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if program.Exec then
|
||||||
|
local cmdline = program.Exec:gsub('%%c', program.Name)
|
||||||
|
cmdline = cmdline:gsub('%%[fmuFMU]', '')
|
||||||
|
cmdline = cmdline:gsub('%%k', program.file)
|
||||||
|
if program.icon_path then
|
||||||
|
cmdline = cmdline:gsub('%%i', '--icon ' .. program.icon_path)
|
||||||
|
else
|
||||||
|
cmdline = cmdline:gsub('%%i', '')
|
||||||
|
end
|
||||||
|
if program.Terminal == "true" then
|
||||||
|
cmdline = terminal .. ' -e ' .. cmdline
|
||||||
|
end
|
||||||
|
program.cmdline = cmdline
|
||||||
|
end
|
||||||
|
|
||||||
|
return program
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Parse a directory with .desktop files
|
||||||
|
-- @param dir The directory.
|
||||||
|
-- @param icons_size, The icons sizes, optional.
|
||||||
|
-- @return A table with all .desktop entries.
|
||||||
|
function parse_desktop_files(arg)
|
||||||
|
local programs = {}
|
||||||
|
local files = get_lines('find '.. arg.dir ..' -name "*.desktop" 2>/dev/null')
|
||||||
|
for file in files do
|
||||||
|
arg.file = file
|
||||||
|
table.insert(programs, parse_desktop_file(arg))
|
||||||
|
end
|
||||||
|
return programs
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Parse a directory files and subdirs
|
||||||
|
-- @param dir The directory.
|
||||||
|
-- @param icons_size, The icons sizes, optional.
|
||||||
|
-- @return A table with all .desktop entries.
|
||||||
|
function parse_dirs_and_files(arg)
|
||||||
|
local files = {}
|
||||||
|
local paths = get_lines('find '..arg.dir..' -maxdepth 1 -type d')
|
||||||
|
for path in paths do
|
||||||
|
if path:match("[^/]+$") then
|
||||||
|
local file = {}
|
||||||
|
file.filename = path:match("[^/]+$")
|
||||||
|
file.path = path
|
||||||
|
file.show = true
|
||||||
|
file.icon = lookup_icon({ icon = "folder", icon_sizes = (arg.icon_sizes or all_icon_sizes) })
|
||||||
|
table.insert(files, file)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local paths = get_lines('find '..arg.dir..' -maxdepth 1 -type f')
|
||||||
|
for path in paths do
|
||||||
|
if not path:find("%.desktop$") then
|
||||||
|
local file = {}
|
||||||
|
file.filename = path:match("[^/]+$")
|
||||||
|
file.path = path
|
||||||
|
file.show = true
|
||||||
|
file.icon = lookup_file_icon({ filename = file.filename, icon_sizes = (arg.icon_sizes or all_icon_sizes) })
|
||||||
|
table.insert(files, file)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return files
|
||||||
|
end
|
||||||
|
|
568
home/.config/awesome/rc.lua
Normal file
@ -0,0 +1,568 @@
|
|||||||
|
--Configure home path so you dont have too
|
||||||
|
home_path = os.getenv('HOME') .. '/'
|
||||||
|
|
||||||
|
-- Standard awesome library
|
||||||
|
local gears = require("gears")
|
||||||
|
local awful = require("awful")
|
||||||
|
awful.rules = require("awful.rules")
|
||||||
|
require("awful.autofocus")
|
||||||
|
-- Widget and layout library
|
||||||
|
local wibox = require("wibox")
|
||||||
|
-- Theme handling library
|
||||||
|
local beautiful = require("beautiful")
|
||||||
|
beautiful.init( awful.util.getdir("config") .. "/themes/default/theme.lua" )
|
||||||
|
|
||||||
|
-- Notification library
|
||||||
|
local naughty = require("naughty")
|
||||||
|
local menubar = require("menubar")
|
||||||
|
--FreeDesktop
|
||||||
|
require('freedesktop.utils')
|
||||||
|
require('freedesktop.menu')
|
||||||
|
freedesktop.utils.icon_theme = 'gnome'
|
||||||
|
--Vicious + Widgets
|
||||||
|
vicious = require("vicious")
|
||||||
|
local wi = require("wi")
|
||||||
|
|
||||||
|
-- {{{ Error handling
|
||||||
|
-- Check if awesome encountered an error during startup and fell back to
|
||||||
|
-- another config (This code will only ever execute for the fallback config)
|
||||||
|
if awesome.startup_errors then
|
||||||
|
naughty.notify({ preset = naughty.config.presets.critical,
|
||||||
|
title = "Oops, there were errors during startup!",
|
||||||
|
text = awesome.startup_errors })
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Handle runtime errors after startup
|
||||||
|
do
|
||||||
|
local in_error = false
|
||||||
|
awesome.connect_signal("debug::error", function (err)
|
||||||
|
-- Make sure we don't go into an endless error loop
|
||||||
|
if in_error then return end
|
||||||
|
in_error = true
|
||||||
|
|
||||||
|
naughty.notify({ preset = naughty.config.presets.critical,
|
||||||
|
title = "Oops, an error happened!",
|
||||||
|
text = err })
|
||||||
|
in_error = false
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- This is used later as the default terminal and editor to run.
|
||||||
|
terminal = "termite"
|
||||||
|
editor = os.getenv("EDITOR") or "vim"
|
||||||
|
editor_cmd = terminal .. " -e " .. editor
|
||||||
|
rmenu = "rofi-gorice"
|
||||||
|
browser = "al-open -web"
|
||||||
|
filemgr = "exo-open --launch FileManager"
|
||||||
|
txteditor = "al-open -edit"
|
||||||
|
volumeup = "pamixer -i 2"
|
||||||
|
volumedown = "pamixer -d 2"
|
||||||
|
volumemute = "pamixer -t"
|
||||||
|
art = "gimp"
|
||||||
|
|
||||||
|
-- Default modkey.
|
||||||
|
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||||
|
-- If you do not like this or do not have such a key,
|
||||||
|
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
|
||||||
|
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||||
|
modkey = "Mod4"
|
||||||
|
|
||||||
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
|
local layouts =
|
||||||
|
{
|
||||||
|
awful.layout.suit.floating,
|
||||||
|
awful.layout.suit.tile,
|
||||||
|
awful.layout.suit.tile.left,
|
||||||
|
awful.layout.suit.tile.bottom,
|
||||||
|
awful.layout.suit.tile.top,
|
||||||
|
awful.layout.suit.fair,
|
||||||
|
awful.layout.suit.fair.horizontal,
|
||||||
|
awful.layout.suit.spiral,
|
||||||
|
awful.layout.suit.spiral.dwindle,
|
||||||
|
awful.layout.suit.max,
|
||||||
|
awful.layout.suit.max.fullscreen,
|
||||||
|
awful.layout.suit.magnifier
|
||||||
|
}
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Naughty presets
|
||||||
|
naughty.config.defaults.timeout = 5
|
||||||
|
naughty.config.defaults.screen = 1
|
||||||
|
naughty.config.defaults.position = "top_right"
|
||||||
|
naughty.config.defaults.margin = 8
|
||||||
|
naughty.config.defaults.gap = 1
|
||||||
|
naughty.config.defaults.ontop = true
|
||||||
|
naughty.config.defaults.font = "terminus 5"
|
||||||
|
naughty.config.defaults.icon = nil
|
||||||
|
naughty.config.defaults.icon_size = 256
|
||||||
|
naughty.config.defaults.fg = beautiful.fg_tooltip
|
||||||
|
naughty.config.defaults.bg = beautiful.bg_tooltip
|
||||||
|
naughty.config.defaults.border_color = beautiful.border_tooltip
|
||||||
|
naughty.config.defaults.border_width = 2
|
||||||
|
naughty.config.defaults.hover_timeout = nil
|
||||||
|
-- -- }}}
|
||||||
|
|
||||||
|
-- {{{ Wallpaper
|
||||||
|
if beautiful.wallpaper then
|
||||||
|
for s = 1, screen.count() do
|
||||||
|
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Tags
|
||||||
|
-- Define a tag table which hold all screen tags.
|
||||||
|
tags = {
|
||||||
|
names = {
|
||||||
|
'☭:1',
|
||||||
|
'⚡:2',
|
||||||
|
'♨:3',
|
||||||
|
'☠:4',
|
||||||
|
'☃:5',
|
||||||
|
'⌥:6',
|
||||||
|
'⌘:7',
|
||||||
|
'✇:8',
|
||||||
|
'✣:9',
|
||||||
|
},
|
||||||
|
layout = {
|
||||||
|
layouts[5], -- 1:1
|
||||||
|
layouts[10], -- 2:2
|
||||||
|
layouts[10], -- 3:3
|
||||||
|
layouts[12], -- 4:4
|
||||||
|
layouts[2], -- 5:5
|
||||||
|
layouts[10], -- 6:6
|
||||||
|
layouts[10], -- 7:7
|
||||||
|
layouts[2], -- 8:8
|
||||||
|
layouts[10], -- 9:9
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for s = 1, screen.count() do
|
||||||
|
-- Each screen has its own tag table.
|
||||||
|
tags[s] = awful.tag(tags.names, s, tags.layout)
|
||||||
|
end
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- Wallpaper Changer Based On
|
||||||
|
-- menu icon menu pdq 07-02-2012
|
||||||
|
local wallmenu = {}
|
||||||
|
local function wall_load(wall)
|
||||||
|
local f = io.popen('ln -sfn ' .. home_path .. '.config/awesome/wallpapers/' .. wall .. ' ' .. home_path .. '.config/awesome/themes/default/bg.png')
|
||||||
|
awesome.restart()
|
||||||
|
end
|
||||||
|
local function wall_menu()
|
||||||
|
local f = io.popen('ls -1 ' .. home_path .. '.config/awesome/wallpapers/')
|
||||||
|
for l in f:lines() do
|
||||||
|
local item = { l, function () wall_load(l) end }
|
||||||
|
table.insert(wallmenu, item)
|
||||||
|
end
|
||||||
|
f:close()
|
||||||
|
end
|
||||||
|
wall_menu()
|
||||||
|
|
||||||
|
-- Widgets
|
||||||
|
|
||||||
|
spacer = wibox.widget.textbox()
|
||||||
|
spacer:set_text(' | ')
|
||||||
|
|
||||||
|
--Weather Widget
|
||||||
|
weather = wibox.widget.textbox()
|
||||||
|
vicious.register(weather, vicious.widgets.weather, "Weather: ${city}. Sky: ${sky}. Temp: ${tempc}c Humid: ${humid}%. Wind: ${windkmh} KM/h", 1200, "YMML")
|
||||||
|
|
||||||
|
--Battery Widget
|
||||||
|
batt = wibox.widget.textbox()
|
||||||
|
vicious.register(batt, vicious.widgets.bat, "Batt: $2% Rem: $3", 61, "BAT1")
|
||||||
|
|
||||||
|
|
||||||
|
-- {{{ Menu
|
||||||
|
-- Create a laucher widget and a main menu
|
||||||
|
|
||||||
|
menu_items = freedesktop.menu.new()
|
||||||
|
myawesomemenu = {
|
||||||
|
{ "manual", terminal .. " -e man awesome", freedesktop.utils.lookup_icon({ icon = 'help' }) },
|
||||||
|
{ "edit config", editor_cmd .. " " .. awesome.conffile, freedesktop.utils.lookup_icon({ icon = 'package_settings' }) },
|
||||||
|
{ "restart", awesome.restart, freedesktop.utils.lookup_icon({ icon = 'system-shutdown' }) },
|
||||||
|
{ "quit", awesome.quit, freedesktop.utils.lookup_icon({ icon = 'system-shutdown' }) }
|
||||||
|
}
|
||||||
|
|
||||||
|
table.insert(menu_items, { "Awesome", myawesomemenu, beautiful.awesome_icon })
|
||||||
|
table.insert(menu_items, { "Wallpaper", wallmenu, freedesktop.utils.lookup_icon({ icon = 'gnome-settings-background' })})
|
||||||
|
|
||||||
|
mymainmenu = awful.menu({ items = menu_items, width = 150 })
|
||||||
|
|
||||||
|
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
|
||||||
|
menu = mymainmenu })
|
||||||
|
|
||||||
|
-- Menubar configuration
|
||||||
|
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Wibox
|
||||||
|
-- Create a textclock widget
|
||||||
|
mytextclock = awful.widget.textclock()
|
||||||
|
|
||||||
|
-- Create a wibox for each screen and add it
|
||||||
|
mywibox = {}
|
||||||
|
myinfowibox = {}
|
||||||
|
mypromptbox = {}
|
||||||
|
mylayoutbox = {}
|
||||||
|
mytaglist = {}
|
||||||
|
mytaglist.buttons = awful.util.table.join(
|
||||||
|
awful.button({ }, 1, awful.tag.viewonly),
|
||||||
|
awful.button({ modkey }, 1, awful.client.movetotag),
|
||||||
|
awful.button({ }, 3, awful.tag.viewtoggle),
|
||||||
|
awful.button({ modkey }, 3, awful.client.toggletag),
|
||||||
|
awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end),
|
||||||
|
awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end)
|
||||||
|
)
|
||||||
|
mytasklist = {}
|
||||||
|
mytasklist.buttons = awful.util.table.join(
|
||||||
|
awful.button({ }, 1, function (c)
|
||||||
|
if c == client.focus then
|
||||||
|
c.minimized = true
|
||||||
|
else
|
||||||
|
-- Without this, the following
|
||||||
|
-- :isvisible() makes no sense
|
||||||
|
c.minimized = false
|
||||||
|
if not c:isvisible() then
|
||||||
|
awful.tag.viewonly(c:tags()[1])
|
||||||
|
end
|
||||||
|
-- This will also un-minimize
|
||||||
|
-- the client, if needed
|
||||||
|
client.focus = c
|
||||||
|
c:raise()
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.button({ }, 3, function ()
|
||||||
|
if instance then
|
||||||
|
instance:hide()
|
||||||
|
instance = nil
|
||||||
|
else
|
||||||
|
instance = awful.menu.clients({ width=250 })
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.button({ }, 4, function ()
|
||||||
|
awful.client.focus.byidx(1)
|
||||||
|
if client.focus then client.focus:raise() end
|
||||||
|
end),
|
||||||
|
awful.button({ }, 5, function ()
|
||||||
|
awful.client.focus.byidx(-1)
|
||||||
|
if client.focus then client.focus:raise() end
|
||||||
|
end))
|
||||||
|
|
||||||
|
for s = 1, screen.count() do
|
||||||
|
-- Create a promptbox for each screen
|
||||||
|
mypromptbox[s] = awful.widget.prompt()
|
||||||
|
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
|
||||||
|
-- We need one layoutbox per screen.
|
||||||
|
mylayoutbox[s] = awful.widget.layoutbox(s)
|
||||||
|
mylayoutbox[s]:buttons(awful.util.table.join(
|
||||||
|
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
|
||||||
|
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
|
||||||
|
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
|
||||||
|
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
|
||||||
|
-- Create a taglist widget
|
||||||
|
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
|
||||||
|
|
||||||
|
-- Create a tasklist widget
|
||||||
|
mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
|
||||||
|
|
||||||
|
-- Create the wibox
|
||||||
|
mywibox[s] = awful.wibox({ position = "top", screen = s })
|
||||||
|
|
||||||
|
-- Widgets that are aligned to the left
|
||||||
|
local left_layout = wibox.layout.fixed.horizontal()
|
||||||
|
left_layout:add(mylauncher)
|
||||||
|
left_layout:add(mytaglist[s])
|
||||||
|
left_layout:add(mypromptbox[s])
|
||||||
|
|
||||||
|
-- Widgets that are aligned to the right
|
||||||
|
local right_layout = wibox.layout.fixed.horizontal()
|
||||||
|
if s == 1 then right_layout:add(wibox.widget.systray()) end
|
||||||
|
right_layout:add(spacer)
|
||||||
|
right_layout:add(mailicon)
|
||||||
|
right_layout:add(mailwidget)
|
||||||
|
right_layout:add(spacer)
|
||||||
|
right_layout:add(baticon)
|
||||||
|
right_layout:add(batpct)
|
||||||
|
right_layout:add(spacer)
|
||||||
|
right_layout:add(pacicon)
|
||||||
|
right_layout:add(pacwidget)
|
||||||
|
right_layout:add(spacer)
|
||||||
|
right_layout:add(volicon)
|
||||||
|
right_layout:add(volpct)
|
||||||
|
right_layout:add(volspace)
|
||||||
|
right_layout:add(spacer)
|
||||||
|
right_layout:add(mytextclock)
|
||||||
|
right_layout:add(mylayoutbox[s])
|
||||||
|
|
||||||
|
-- Now bring it all together (with the tasklist in the middle)
|
||||||
|
local layout = wibox.layout.align.horizontal()
|
||||||
|
layout:set_left(left_layout)
|
||||||
|
layout:set_middle(mytasklist[s])
|
||||||
|
layout:set_right(right_layout)
|
||||||
|
|
||||||
|
mywibox[s]:set_widget(layout)
|
||||||
|
|
||||||
|
-- Create the bottom wibox
|
||||||
|
myinfowibox[s] = awful.wibox({ position = "bottom", screen = s })
|
||||||
|
-- Widgets that are aligned to the bottom
|
||||||
|
local bottom_layout = wibox.layout.fixed.horizontal()
|
||||||
|
bottom_layout:add(cpuicon)
|
||||||
|
bottom_layout:add(cpu)
|
||||||
|
bottom_layout:add(spacer)
|
||||||
|
bottom_layout:add(memicon)
|
||||||
|
bottom_layout:add(mem)
|
||||||
|
bottom_layout:add(spacer)
|
||||||
|
bottom_layout:add(wifiicon)
|
||||||
|
bottom_layout:add(wifi)
|
||||||
|
bottom_layout:add(spacer)
|
||||||
|
bottom_layout:add(weather)
|
||||||
|
bottom_layout:add(spacer)
|
||||||
|
|
||||||
|
-- Now bring it all together
|
||||||
|
--local layout = wibox.layout.align.horizontal()
|
||||||
|
--layout:set_bottom(bottom_layout)
|
||||||
|
|
||||||
|
myinfowibox[s]:set_widget(bottom_layout)
|
||||||
|
|
||||||
|
end
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Mouse bindings
|
||||||
|
root.buttons(awful.util.table.join(
|
||||||
|
awful.button({ }, 3, function () mymainmenu:toggle() end),
|
||||||
|
awful.button({ }, 4, awful.tag.viewnext),
|
||||||
|
awful.button({ }, 5, awful.tag.viewprev)
|
||||||
|
))
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Key bindings
|
||||||
|
globalkeys = awful.util.table.join(
|
||||||
|
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
|
||||||
|
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
|
||||||
|
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "j",
|
||||||
|
function ()
|
||||||
|
awful.client.focus.byidx( 1)
|
||||||
|
if client.focus then client.focus:raise() end
|
||||||
|
end),
|
||||||
|
awful.key({ modkey, }, "k",
|
||||||
|
function ()
|
||||||
|
awful.client.focus.byidx(-1)
|
||||||
|
if client.focus then client.focus:raise() end
|
||||||
|
end),
|
||||||
|
awful.key({ }, "Print", function () awful.util.spawn("upload_screens scr") end),
|
||||||
|
|
||||||
|
-- Layout manipulation
|
||||||
|
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
|
||||||
|
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
|
||||||
|
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
|
||||||
|
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
|
||||||
|
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
|
||||||
|
awful.key({ modkey, }, "Tab",
|
||||||
|
function ()
|
||||||
|
awful.client.focus.history.previous()
|
||||||
|
if client.focus then
|
||||||
|
client.focus:raise()
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
|
||||||
|
-- Standard program
|
||||||
|
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
|
||||||
|
awful.key({ modkey, "Control" }, "r", awesome.restart),
|
||||||
|
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
|
||||||
|
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
|
||||||
|
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
|
||||||
|
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
|
||||||
|
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
|
||||||
|
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({ modkey, }, "w", function () awful.util.spawn("luakit") end, "Start Luakit Web Browser"),
|
||||||
|
|
||||||
|
awful.key({ modkey, "Control" }, "n", awful.client.restore),
|
||||||
|
|
||||||
|
-- Prompt
|
||||||
|
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
||||||
|
|
||||||
|
awful.key({ modkey }, "x",
|
||||||
|
function ()
|
||||||
|
awful.prompt.run({ prompt = "Run Lua code: " },
|
||||||
|
mypromptbox[mouse.screen].widget,
|
||||||
|
awful.util.eval, nil,
|
||||||
|
awful.util.getdir("cache") .. "/history_eval")
|
||||||
|
end),
|
||||||
|
-- Menubar
|
||||||
|
awful.key({ modkey }, "p", function() menubar.show() end)
|
||||||
|
)
|
||||||
|
|
||||||
|
clientkeys = awful.util.table.join(
|
||||||
|
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
|
||||||
|
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
|
||||||
|
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
|
||||||
|
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
|
||||||
|
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
|
||||||
|
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
|
||||||
|
awful.key({ modkey, }, "n",
|
||||||
|
function (c)
|
||||||
|
-- The client currently has the input focus, so it cannot be
|
||||||
|
-- minimized, since minimized clients can't have the focus.
|
||||||
|
c.minimized = true
|
||||||
|
end),
|
||||||
|
awful.key({ modkey, }, "m",
|
||||||
|
function (c)
|
||||||
|
c.maximized_horizontal = not c.maximized_horizontal
|
||||||
|
c.maximized_vertical = not c.maximized_vertical
|
||||||
|
end)
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Compute the maximum number of digit we need, limited to 9
|
||||||
|
keynumber = 0
|
||||||
|
for s = 1, screen.count() do
|
||||||
|
keynumber = math.min(9, math.max(#tags[s], keynumber))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Bind all key numbers to tags.
|
||||||
|
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
||||||
|
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||||
|
for i = 1, keynumber do
|
||||||
|
globalkeys = awful.util.table.join(globalkeys,
|
||||||
|
awful.key({ modkey }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
local screen = mouse.screen
|
||||||
|
if tags[screen][i] then
|
||||||
|
awful.tag.viewonly(tags[screen][i])
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.key({ modkey, "Control" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
local screen = mouse.screen
|
||||||
|
if tags[screen][i] then
|
||||||
|
awful.tag.viewtoggle(tags[screen][i])
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.key({ modkey, "Shift" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
if client.focus and tags[client.focus.screen][i] then
|
||||||
|
awful.client.movetotag(tags[client.focus.screen][i])
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
|
||||||
|
function ()
|
||||||
|
if client.focus and tags[client.focus.screen][i] then
|
||||||
|
awful.client.toggletag(tags[client.focus.screen][i])
|
||||||
|
end
|
||||||
|
end))
|
||||||
|
end
|
||||||
|
|
||||||
|
clientbuttons = awful.util.table.join(
|
||||||
|
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
|
||||||
|
awful.button({ modkey }, 1, awful.mouse.client.move),
|
||||||
|
awful.button({ modkey }, 3, awful.mouse.client.resize))
|
||||||
|
|
||||||
|
-- Set keys
|
||||||
|
root.keys(globalkeys)
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Rules
|
||||||
|
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,
|
||||||
|
keys = clientkeys,
|
||||||
|
buttons = clientbuttons } },
|
||||||
|
{ rule = { class = "MPlayer" },
|
||||||
|
properties = { floating = true } },
|
||||||
|
{ rule = { class = "pinentry" },
|
||||||
|
properties = { floating = true } },
|
||||||
|
{ rule = { class = "gimp" },
|
||||||
|
properties = { floating = true } },
|
||||||
|
{ rule = { class = "Chromium" },
|
||||||
|
properties = { tag = tags[1][3] } },
|
||||||
|
{ rule = { class = "Vlc" },
|
||||||
|
properties = { tag = tags[1][6] } },
|
||||||
|
{ rule = { class = "VirtualBox" },
|
||||||
|
properties = { tag = tags[1][5] } },
|
||||||
|
{ rule = { class = "Gns3" },
|
||||||
|
properties = { tag = tags[1][5] } },
|
||||||
|
{ rule = { class = "Bitcoin-qt" },
|
||||||
|
properties = { tag = tags[1][9] } },
|
||||||
|
{ rule = { class = "luakit" },
|
||||||
|
properties = { tag = tags[1][2] } },
|
||||||
|
-- Set Firefox to always map on tags number 2 of screen 1.
|
||||||
|
-- { rule = { class = "Firefox" },
|
||||||
|
-- properties = { tag = tags[1][2] } },
|
||||||
|
}
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Signals
|
||||||
|
-- Signal function to execute when a new client appears.
|
||||||
|
client.connect_signal("manage", function (c, startup)
|
||||||
|
-- Enable sloppy focus
|
||||||
|
c:connect_signal("mouse::enter", function(c)
|
||||||
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
|
and awful.client.focus.filter(c) then
|
||||||
|
client.focus = c
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
if not startup then
|
||||||
|
-- Set the windows at the slave,
|
||||||
|
-- i.e. put it at the end of others instead of setting it master.
|
||||||
|
-- awful.client.setslave(c)
|
||||||
|
|
||||||
|
-- Put windows in a smart way, only if they does not set an initial position.
|
||||||
|
if not c.size_hints.user_position and not c.size_hints.program_position then
|
||||||
|
awful.placement.no_overlap(c)
|
||||||
|
awful.placement.no_offscreen(c)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local titlebars_enabled = false
|
||||||
|
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||||
|
-- Widgets that are aligned to the left
|
||||||
|
local left_layout = wibox.layout.fixed.horizontal()
|
||||||
|
left_layout:add(awful.titlebar.widget.iconwidget(c))
|
||||||
|
|
||||||
|
-- Widgets that are aligned to the right
|
||||||
|
local right_layout = wibox.layout.fixed.horizontal()
|
||||||
|
right_layout:add(awful.titlebar.widget.floatingbutton(c))
|
||||||
|
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
|
||||||
|
right_layout:add(awful.titlebar.widget.stickybutton(c))
|
||||||
|
right_layout:add(awful.titlebar.widget.ontopbutton(c))
|
||||||
|
right_layout:add(awful.titlebar.widget.closebutton(c))
|
||||||
|
|
||||||
|
-- The title goes in the middle
|
||||||
|
local title = awful.titlebar.widget.titlewidget(c)
|
||||||
|
title:buttons(awful.util.table.join(
|
||||||
|
awful.button({ }, 1, function()
|
||||||
|
client.focus = c
|
||||||
|
c:raise()
|
||||||
|
awful.mouse.client.move(c)
|
||||||
|
end),
|
||||||
|
awful.button({ }, 3, function()
|
||||||
|
client.focus = c
|
||||||
|
c:raise()
|
||||||
|
awful.mouse.client.resize(c)
|
||||||
|
end)
|
||||||
|
))
|
||||||
|
|
||||||
|
-- Now bring it all together
|
||||||
|
local layout = wibox.layout.align.horizontal()
|
||||||
|
layout:set_left(left_layout)
|
||||||
|
layout:set_right(right_layout)
|
||||||
|
layout:set_middle(title)
|
||||||
|
|
||||||
|
awful.titlebar(c):set_widget(layout)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||||
|
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||||
|
-- }}}
|
3
home/.config/awesome/themes/default/README
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Background images:
|
||||||
|
Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||||
|
Licensed under CC-BY-SA-3.0
|
BIN
home/.config/awesome/themes/default/bacground.png
Normal file
After Width: | Height: | Size: 432 KiB |
BIN
home/.config/awesome/themes/default/background.png
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
home/.config/awesome/themes/default/background.png.back
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
home/.config/awesome/themes/default/background_white.png
Normal file
After Width: | Height: | Size: 265 KiB |
BIN
home/.config/awesome/themes/default/icon/Arch.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
home/.config/awesome/themes/default/icon/awesome16.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
home/.config/awesome/themes/default/layouts/dwindle.png
Normal file
After Width: | Height: | Size: 967 B |
BIN
home/.config/awesome/themes/default/layouts/dwindlew.png
Normal file
After Width: | Height: | Size: 997 B |
BIN
home/.config/awesome/themes/default/layouts/fairh.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
home/.config/awesome/themes/default/layouts/fairhw.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
home/.config/awesome/themes/default/layouts/fairv.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
home/.config/awesome/themes/default/layouts/fairvw.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
home/.config/awesome/themes/default/layouts/floating.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
home/.config/awesome/themes/default/layouts/floatingw.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
home/.config/awesome/themes/default/layouts/fullscreen.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
home/.config/awesome/themes/default/layouts/fullscreenw.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
home/.config/awesome/themes/default/layouts/magnifier.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
home/.config/awesome/themes/default/layouts/magnifierw.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
home/.config/awesome/themes/default/layouts/max.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
home/.config/awesome/themes/default/layouts/maxw.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
home/.config/awesome/themes/default/layouts/spiral.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
home/.config/awesome/themes/default/layouts/spiralw.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
home/.config/awesome/themes/default/layouts/tile.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
home/.config/awesome/themes/default/layouts/tilebottom.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
home/.config/awesome/themes/default/layouts/tilebottomw.png
Normal file
After Width: | Height: | Size: 216 B |
BIN
home/.config/awesome/themes/default/layouts/tileleft.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
home/.config/awesome/themes/default/layouts/tileleftw.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
home/.config/awesome/themes/default/layouts/tiletop.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
home/.config/awesome/themes/default/layouts/tiletopw.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
home/.config/awesome/themes/default/layouts/tilew.png
Normal file
After Width: | Height: | Size: 168 B |
BIN
home/.config/awesome/themes/default/submenu.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
home/.config/awesome/themes/default/taglist/squarefw.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
home/.config/awesome/themes/default/taglist/squarew.png
Normal file
After Width: | Height: | Size: 193 B |
BIN
home/.config/awesome/themes/default/tasklist/floating.png
Normal file
After Width: | Height: | Size: 345 B |
BIN
home/.config/awesome/themes/default/tasklist/floatingw.png
Normal file
After Width: | Height: | Size: 334 B |
145
home/.config/awesome/themes/default/theme.lua
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
---------------------------
|
||||||
|
-- Default SETKEH theme --
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
local awful = require("awful")
|
||||||
|
|
||||||
|
--Configure home path so you dont have too
|
||||||
|
home_path = os.getenv('HOME') .. '/'
|
||||||
|
|
||||||
|
theme = {}
|
||||||
|
theme.wallpaper = awful.util.getdir("config") .. "/themes/default/bg.png"
|
||||||
|
theme.font = "terminus 8"
|
||||||
|
|
||||||
|
theme.bg_normal = "#222222"
|
||||||
|
theme.bg_focus = "#535d6c"
|
||||||
|
theme.bg_urgent = "#ff0000"
|
||||||
|
theme.bg_minimize = "#444444"
|
||||||
|
theme.bg_tooltip = "#d6d6d6"
|
||||||
|
theme.bg_em = "#5a5a5a"
|
||||||
|
theme.bg_systray = theme.bg_normal
|
||||||
|
|
||||||
|
theme.fg_normal = "#aaaaaa"
|
||||||
|
theme.fg_focus = "#ffffff"
|
||||||
|
theme.fg_urgent = "#ffffff"
|
||||||
|
theme.fg_minimize = "#ffffff"
|
||||||
|
theme.fg_tooltip = "#1a1a1a"
|
||||||
|
theme.fg_em = "#d6d6d6"
|
||||||
|
|
||||||
|
theme.border_width = "1"
|
||||||
|
theme.border_normal = "#000000"
|
||||||
|
theme.border_focus = "#535d6c"
|
||||||
|
theme.border_marked = "#91231c"
|
||||||
|
theme.fg_widget_value = "#aaaaaa"
|
||||||
|
theme.fg_widget_clock = "#aaaaaa"
|
||||||
|
theme.fg_widget_value_important = "#aaaaaa"
|
||||||
|
theme.fg_widget = "#908884"
|
||||||
|
theme.fg_center_widget = "#636363"
|
||||||
|
theme.fg_end_widget = "#1a1a1a"
|
||||||
|
theme.bg_widget = "#2a2a2a"
|
||||||
|
theme.border_widget = "#3F3F3F"
|
||||||
|
|
||||||
|
-- There are other variable sets
|
||||||
|
-- overriding the default one when
|
||||||
|
-- defined, the sets are:
|
||||||
|
-- [taglist|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]
|
||||||
|
-- Example:
|
||||||
|
--theme.taglist_bg_focus = "#ff0000"
|
||||||
|
|
||||||
|
-- Display the taglist squares
|
||||||
|
theme.taglist_squares_sel = home_path .. '.config/awesome/themes/default/taglist/squarefw.png'
|
||||||
|
theme.taglist_squares_unsel = home_path .. '.config/awesome/themes/default/taglist/squarew.png'
|
||||||
|
|
||||||
|
theme.tasklist_floating_icon = home_path .. '.config/awesome/themes/default/tasklist/floatingw.png'
|
||||||
|
|
||||||
|
-- Variables set for theming the menu:
|
||||||
|
-- menu_[bg|fg]_[normal|focus]
|
||||||
|
-- menu_[border_color|border_width]
|
||||||
|
theme.menu_submenu_icon = home_path .. '.config/awesome/themes/default/submenu.png'
|
||||||
|
theme.menu_height = "15"
|
||||||
|
theme.menu_width = "100"
|
||||||
|
|
||||||
|
-- You can add as many variables as
|
||||||
|
-- you wish and access them by using
|
||||||
|
-- beautiful.variable in your rc.lua
|
||||||
|
--theme.bg_widget = "#cc0000"
|
||||||
|
|
||||||
|
-- Define the image to load
|
||||||
|
theme.titlebar_close_button_normal = home_path .. '.config/awesome/themes/default/titlebar/close_normal.png'
|
||||||
|
theme.titlebar_close_button_focus = home_path .. '.config/awesome/themes/default/titlebar/close_focus.png'
|
||||||
|
|
||||||
|
theme.titlebar_ontop_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/ontop_normal_inactive.png'
|
||||||
|
theme.titlebar_ontop_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/ontop_focus_inactive.png'
|
||||||
|
theme.titlebar_ontop_button_normal_active = home_path .. '/home/setkeh/.config/awesome/themes/default/titlebar/ontop_normal_active.png'
|
||||||
|
theme.titlebar_ontop_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/ontop_focus_active.png'
|
||||||
|
|
||||||
|
theme.titlebar_sticky_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/sticky_normal_inactive.png'
|
||||||
|
theme.titlebar_sticky_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/sticky_focus_inactive.png'
|
||||||
|
theme.titlebar_sticky_button_normal_active = home_path .. '.config/awesome/themes/default/titlebar/sticky_normal_active.png'
|
||||||
|
theme.titlebar_sticky_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/sticky_focus_active.png'
|
||||||
|
|
||||||
|
theme.titlebar_floating_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/floating_normal_inactive.png'
|
||||||
|
theme.titlebar_floating_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/floating_focus_inactive.png'
|
||||||
|
theme.titlebar_floating_button_normal_active = home_path .. '.config/awesome/themes/default/titlebar/floating_normal_active.png'
|
||||||
|
theme.titlebar_floating_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/floating_focus_active.png'
|
||||||
|
|
||||||
|
theme.titlebar_maximized_button_normal_inactive = home_path .. '.config/awesome/themes/default/titlebar/maximized_normal_inactive.png'
|
||||||
|
theme.titlebar_maximized_button_focus_inactive = home_path .. '.config/awesome/themes/default/titlebar/maximized_focus_inactive.png'
|
||||||
|
theme.titlebar_maximized_button_normal_active = home_path .. '.config/awesome/themes/default/titlebar/maximized_normal_active.png'
|
||||||
|
theme.titlebar_maximized_button_focus_active = home_path .. '.config/awesome/themes/default/titlebar/maximized_focus_active.png'
|
||||||
|
|
||||||
|
-- You can use your own layout icons like this:
|
||||||
|
theme.layout_fairh = home_path .. '.config/awesome/themes/default/layouts/fairhw.png'
|
||||||
|
theme.layout_fairv = home_path .. '.config/awesome/themes/default/layouts/fairvw.png'
|
||||||
|
theme.layout_floating = home_path .. '.config/awesome/themes/default/layouts/floatingw.png'
|
||||||
|
theme.layout_magnifier = home_path .. '.config/awesome/themes/default/layouts/magnifierw.png'
|
||||||
|
theme.layout_max = home_path .. '.config/awesome/themes/default/layouts/maxw.png'
|
||||||
|
theme.layout_fullscreen = home_path .. '.config/awesome/themes/default/layouts/fullscreenw.png'
|
||||||
|
theme.layout_tilebottom = home_path .. '.config/awesome/themes/default/layouts/tilebottomw.png'
|
||||||
|
theme.layout_tileleft = home_path .. '.config/awesome/themes/default/layouts/tileleftw.png'
|
||||||
|
theme.layout_tile = home_path .. '.config/awesome/themes/default/layouts/tilew.png'
|
||||||
|
theme.layout_tiletop = home_path .. '.config/awesome/themes/default/layouts/tiletopw.png'
|
||||||
|
theme.layout_spiral = home_path .. '.config/awesome/themes/default/layouts/spiralw.png'
|
||||||
|
theme.layout_dwindle = home_path .. '.config/awesome/themes/default/layouts/dwindlew.png'
|
||||||
|
|
||||||
|
theme.awesome_icon = home_path .. '.config/awesome/themes/default/icon/awesome16.png'
|
||||||
|
theme.arch_icon = home_path .. '.config/awesome/themes/default/icon/Arch.png'
|
||||||
|
|
||||||
|
-- {{{ Widgets
|
||||||
|
theme.widget_disk = awful.util.getdir("config") .. "/themes/default/widgets/disk.png"
|
||||||
|
theme.widget_cpu = awful.util.getdir("config") .. "/themes/default/widgets/cpu.png"
|
||||||
|
theme.widget_ac = awful.util.getdir("config") .. "/themes/default/widgets/ac.png"
|
||||||
|
theme.widget_acblink = awful.util.getdir("config") .. "/themes/default/widgets/acblink.png"
|
||||||
|
theme.widget_blank = awful.util.getdir("config") .. "/themes/default/widgets/blank.png"
|
||||||
|
theme.widget_batfull = awful.util.getdir("config") .. "/themes/default/widgets/batfull.png"
|
||||||
|
theme.widget_batmed = awful.util.getdir("config") .. "/themes/default/widgets/batmed.png"
|
||||||
|
theme.widget_batlow = awful.util.getdir("config") .. "/themes/default/widgets/batlow.png"
|
||||||
|
theme.widget_batempty = awful.util.getdir("config") .. "/themes/default/widgets/batempty.png"
|
||||||
|
theme.widget_vol = awful.util.getdir("config") .. "/themes/default/widgets/vol.png"
|
||||||
|
theme.widget_mute = awful.util.getdir("config") .. "/themes/default/widgets/mute.png"
|
||||||
|
theme.widget_pac = awful.util.getdir("config") .. "/themes/default/widgets/pac.png"
|
||||||
|
theme.widget_pacnew = awful.util.getdir("config") .. "/themes/default/widgets/pacnew.png"
|
||||||
|
theme.widget_mail = awful.util.getdir("config") .. "/themes/default/widgets/mail.png"
|
||||||
|
theme.widget_mailnew = awful.util.getdir("config") .. "/themes/default/widgets/mailnew.png"
|
||||||
|
theme.widget_temp = awful.util.getdir("config") .. "/themes/default/widgets/temp.png"
|
||||||
|
theme.widget_tempwarn = awful.util.getdir("config") .. "/themes/default/widgets/tempwarm.png"
|
||||||
|
theme.widget_temphot = awful.util.getdir("config") .. "/themes/default/widgets/temphot.png"
|
||||||
|
theme.widget_wifi = awful.util.getdir("config") .. "/themes/default/widgets/wifi.png"
|
||||||
|
theme.widget_nowifi = awful.util.getdir("config") .. "/themes/default/widgets/nowifi.png"
|
||||||
|
theme.widget_mpd = awful.util.getdir("config") .. "/themes/default/widgets/mpd.png"
|
||||||
|
theme.widget_play = awful.util.getdir("config") .. "/themes/default/widgets/play.png"
|
||||||
|
theme.widget_pause = awful.util.getdir("config") .. "/themes/default/widgets/pause.png"
|
||||||
|
theme.widget_ram = awful.util.getdir("config") .. "/themes/default/widgets/ram.png"
|
||||||
|
theme.widget_mem = awful.util.getdir("config") .. "/themes/default/tp/ram.png"
|
||||||
|
theme.widget_swap = awful.util.getdir("config") .. "/themes/default/tp/swap.png"
|
||||||
|
theme.widget_fs = awful.util.getdir("config") .. "/themes/default/tp/fs_01.png"
|
||||||
|
theme.widget_fs2 = awful.util.getdir("config") .. "/themes/default/tp/fs_02.png"
|
||||||
|
theme.widget_up = awful.util.getdir("config") .. "/themes/default/tp/up.png"
|
||||||
|
theme.widget_down = awful.util.getdir("config") .. "/themes/default/tp/down.png"
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
return theme
|
||||||
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
100
home/.config/awesome/themes/default/theme.lua~
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
---------------------------
|
||||||
|
-- Default awesome theme --
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
theme = {}
|
||||||
|
|
||||||
|
#theme.font = "sans 8"
|
||||||
|
theme.font = "terminus 8"
|
||||||
|
|
||||||
|
theme.bg_normal = "#222222"
|
||||||
|
theme.bg_focus = "#535d6c"
|
||||||
|
theme.bg_urgent = "#ff0000"
|
||||||
|
theme.bg_minimize = "#444444"
|
||||||
|
|
||||||
|
theme.fg_normal = "#aaaaaa"
|
||||||
|
theme.fg_focus = "#ffffff"
|
||||||
|
theme.fg_urgent = "#ffffff"
|
||||||
|
theme.fg_minimize = "#ffffff"
|
||||||
|
|
||||||
|
theme.border_width = "1"
|
||||||
|
theme.border_normal = "#000000"
|
||||||
|
theme.border_focus = "#535d6c"
|
||||||
|
theme.border_marked = "#91231c"
|
||||||
|
|
||||||
|
-- There are other variable sets
|
||||||
|
-- overriding the default one when
|
||||||
|
-- defined, the sets are:
|
||||||
|
-- [taglist|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]
|
||||||
|
-- Example:
|
||||||
|
--theme.taglist_bg_focus = "#ff0000"
|
||||||
|
|
||||||
|
-- Display the taglist squares
|
||||||
|
theme.taglist_squares_sel = "/home/setkeh/.config/awesome/themes/default/taglist/squarefw.png"
|
||||||
|
theme.taglist_squares_unsel = "/home/setkeh/.config/awesome/themes/default/taglist/squarew.png"
|
||||||
|
|
||||||
|
theme.tasklist_floating_icon = "/home/setkeh/.config/awesome/themes/default/tasklist/floatingw.png"
|
||||||
|
|
||||||
|
-- Variables set for theming the menu:
|
||||||
|
-- menu_[bg|fg]_[normal|focus]
|
||||||
|
-- menu_[border_color|border_width]
|
||||||
|
theme.menu_submenu_icon = "/home/setkeh/.config/awesome/themes/default/submenu.png"
|
||||||
|
theme.menu_height = "15"
|
||||||
|
theme.menu_width = "100"
|
||||||
|
|
||||||
|
-- You can add as many variables as
|
||||||
|
-- you wish and access them by using
|
||||||
|
-- beautiful.variable in your rc.lua
|
||||||
|
--theme.bg_widget = "#cc0000"
|
||||||
|
|
||||||
|
-- Define the image to load
|
||||||
|
theme.titlebar_close_button_normal = "/home/setkeh/.config/awesome/themes/default/titlebar/close_normal.png"
|
||||||
|
theme.titlebar_close_button_focus = "/home/setkeh/.config/awesome/themes/default/titlebar/close_focus.png"
|
||||||
|
|
||||||
|
theme.titlebar_ontop_button_normal_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/ontop_normal_inactive.png"
|
||||||
|
theme.titlebar_ontop_button_focus_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/ontop_focus_inactive.png"
|
||||||
|
theme.titlebar_ontop_button_normal_active = "/home/setkeh/.config/awesome/themes/default/titlebar/ontop_normal_active.png"
|
||||||
|
theme.titlebar_ontop_button_focus_active = "/home/setkeh/.config/awesome/themes/default/titlebar/ontop_focus_active.png"
|
||||||
|
|
||||||
|
theme.titlebar_sticky_button_normal_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/sticky_normal_inactive.png"
|
||||||
|
theme.titlebar_sticky_button_focus_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/sticky_focus_inactive.png"
|
||||||
|
theme.titlebar_sticky_button_normal_active = "/home/setkeh/.config/awesome/themes/default/titlebar/sticky_normal_active.png"
|
||||||
|
theme.titlebar_sticky_button_focus_active = "/home/setkeh/.config/awesome/themes/default/titlebar/sticky_focus_active.png"
|
||||||
|
|
||||||
|
theme.titlebar_floating_button_normal_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/floating_normal_inactive.png"
|
||||||
|
theme.titlebar_floating_button_focus_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/floating_focus_inactive.png"
|
||||||
|
theme.titlebar_floating_button_normal_active = "/home/setkeh/.config/awesome/themes/default/titlebar/floating_normal_active.png"
|
||||||
|
theme.titlebar_floating_button_focus_active = "/home/setkeh/.config/awesome/themes/default/titlebar/floating_focus_active.png"
|
||||||
|
|
||||||
|
theme.titlebar_maximized_button_normal_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/maximized_normal_inactive.png"
|
||||||
|
theme.titlebar_maximized_button_focus_inactive = "/home/setkeh/.config/awesome/themes/default/titlebar/maximized_focus_inactive.png"
|
||||||
|
theme.titlebar_maximized_button_normal_active = "/home/setkeh/.config/awesome/themes/default/titlebar/maximized_normal_active.png"
|
||||||
|
theme.titlebar_maximized_button_focus_active = "/home/setkeh/.config/awesome/themes/default/titlebar/maximized_focus_active.png"
|
||||||
|
|
||||||
|
-- You can use your own command to set your wallpaper
|
||||||
|
theme.wallpaper_cmd = { "awsetbg /home/setkeh/.config/awesome/themes/default/prettyff5.png" }
|
||||||
|
--theme.wallpaper_cmd = { "awsetbg /home/setkeh/.config/awesome/themes/default/Sultry.jpg" }
|
||||||
|
--theme.wallpaper_cmd = { "awsetbg /home/setkeh/.config/awesome/themes/default/x.jpg" }
|
||||||
|
|
||||||
|
-- You can use your own layout icons like this:
|
||||||
|
theme.layout_fairh = "/home/setkeh/.config/awesome/themes/default/layouts/fairhw.png"
|
||||||
|
theme.layout_fairv = "/home/setkeh/.config/awesome/themes/default/layouts/fairvw.png"
|
||||||
|
theme.layout_floating = "/home/setkeh/.config/awesome/themes/default/layouts/floatingw.png"
|
||||||
|
theme.layout_magnifier = "/home/setkeh/.config/awesome/themes/default/layouts/magnifierw.png"
|
||||||
|
theme.layout_max = "/home/setkeh/.config/awesome/themes/default/layouts/maxw.png"
|
||||||
|
theme.layout_fullscreen = "/home/setkeh/.config/awesome/themes/default/layouts/fullscreenw.png"
|
||||||
|
theme.layout_tilebottom = "/home/setkeh/.config/awesome/themes/default/layouts/tilebottomw.png"
|
||||||
|
theme.layout_tileleft = "/home/setkeh/.config/awesome/themes/default/layouts/tileleftw.png"
|
||||||
|
theme.layout_tile = "/home/setkeh/.config/awesome/themes/default/layouts/tilew.png"
|
||||||
|
theme.layout_tiletop = "/home/setkeh/.config/awesome/themes/default/layouts/tiletopw.png"
|
||||||
|
theme.layout_spiral = "/home/setkeh/.config/awesome/themes/default/layouts/spiralw.png"
|
||||||
|
theme.layout_dwindle = "/home/setkeh/.config/awesome/themes/default/layouts/dwindlew.png"
|
||||||
|
|
||||||
|
theme.awesome_icon = "/home/setkeh/.config/awesome/themes/default/icon/awesome16.png"
|
||||||
|
theme.arch_icon = "/home/setkeh/.config/awesome/themes/default/icon/Arch.png"
|
||||||
|
|
||||||
|
return theme
|
||||||
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
BIN
home/.config/awesome/themes/default/titlebar/close_focus.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
home/.config/awesome/themes/default/titlebar/close_normal.png
Normal file
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 598 B |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 876 B |
After Width: | Height: | Size: 614 B |
After Width: | Height: | Size: 1013 B |
After Width: | Height: | Size: 829 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 816 B |
After Width: | Height: | Size: 774 B |
After Width: | Height: | Size: 758 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 756 B |
After Width: | Height: | Size: 833 B |
After Width: | Height: | Size: 663 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 677 B |
BIN
home/.config/awesome/themes/default/widgets/ac.png
Normal file
After Width: | Height: | Size: 986 B |
BIN
home/.config/awesome/themes/default/widgets/acblink.png
Normal file
After Width: | Height: | Size: 820 B |
BIN
home/.config/awesome/themes/default/widgets/bat.png
Normal file
After Width: | Height: | Size: 740 B |
BIN
home/.config/awesome/themes/default/widgets/batempty.png
Normal file
After Width: | Height: | Size: 866 B |
BIN
home/.config/awesome/themes/default/widgets/batfull.png
Normal file
After Width: | Height: | Size: 932 B |
BIN
home/.config/awesome/themes/default/widgets/batlow.png
Normal file
After Width: | Height: | Size: 917 B |
BIN
home/.config/awesome/themes/default/widgets/batmed.png
Normal file
After Width: | Height: | Size: 932 B |
BIN
home/.config/awesome/themes/default/widgets/blank.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
home/.config/awesome/themes/default/widgets/cpu.png
Normal file
After Width: | Height: | Size: 601 B |
BIN
home/.config/awesome/themes/default/widgets/crit.png
Normal file
After Width: | Height: | Size: 727 B |
BIN
home/.config/awesome/themes/default/widgets/disk.png
Normal file
After Width: | Height: | Size: 897 B |
BIN
home/.config/awesome/themes/default/widgets/down.png
Normal file
After Width: | Height: | Size: 938 B |
BIN
home/.config/awesome/themes/default/widgets/fs.png
Normal file
After Width: | Height: | Size: 783 B |
BIN
home/.config/awesome/themes/default/widgets/fs2.png
Normal file
After Width: | Height: | Size: 803 B |
BIN
home/.config/awesome/themes/default/widgets/mail.png
Normal file
After Width: | Height: | Size: 669 B |
BIN
home/.config/awesome/themes/default/widgets/mailnew.png
Normal file
After Width: | Height: | Size: 722 B |
BIN
home/.config/awesome/themes/default/widgets/mpd.png
Normal file
After Width: | Height: | Size: 956 B |
BIN
home/.config/awesome/themes/default/widgets/mpdplay.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
home/.config/awesome/themes/default/widgets/mute.png
Normal file
After Width: | Height: | Size: 1013 B |
BIN
home/.config/awesome/themes/default/widgets/note.png
Normal file
After Width: | Height: | Size: 731 B |
BIN
home/.config/awesome/themes/default/widgets/note2.png
Normal file
After Width: | Height: | Size: 936 B |
BIN
home/.config/awesome/themes/default/widgets/note3.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
home/.config/awesome/themes/default/widgets/nowifi.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
home/.config/awesome/themes/default/widgets/pac.png
Normal file
After Width: | Height: | Size: 899 B |
BIN
home/.config/awesome/themes/default/widgets/pacnew.png
Normal file
After Width: | Height: | Size: 902 B |
BIN
home/.config/awesome/themes/default/widgets/pause.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
home/.config/awesome/themes/default/widgets/play.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
home/.config/awesome/themes/default/widgets/ram.png
Normal file
After Width: | Height: | Size: 691 B |
BIN
home/.config/awesome/themes/default/widgets/temp.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
home/.config/awesome/themes/default/widgets/temphot.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
home/.config/awesome/themes/default/widgets/tempwarm.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
home/.config/awesome/themes/default/widgets/up.png
Normal file
After Width: | Height: | Size: 929 B |
BIN
home/.config/awesome/themes/default/widgets/vol.png
Normal file
After Width: | Height: | Size: 959 B |
BIN
home/.config/awesome/themes/default/widgets/wifi.png
Normal file
After Width: | Height: | Size: 720 B |
BIN
home/.config/awesome/themes/sky/awesome-icon.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
home/.config/awesome/themes/sky/layouts/dwindle.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
home/.config/awesome/themes/sky/layouts/fairh.png
Normal file
After Width: | Height: | Size: 357 B |
BIN
home/.config/awesome/themes/sky/layouts/fairv.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
home/.config/awesome/themes/sky/layouts/floating.png
Normal file
After Width: | Height: | Size: 1.1 KiB |