aboutsummaryrefslogtreecommitdiff
path: root/awesome
diff options
context:
space:
mode:
Diffstat (limited to 'awesome')
-rw-r--r--awesome/.config/awesome/picom.conf36
-rw-r--r--awesome/.config/awesome/rc.lua2
-rw-r--r--awesome/.config/awesome/themes/powerarrow-black/theme.lua648
3 files changed, 356 insertions, 330 deletions
diff --git a/awesome/.config/awesome/picom.conf b/awesome/.config/awesome/picom.conf
index 6b559e5..61ad968 100644
--- a/awesome/.config/awesome/picom.conf
+++ b/awesome/.config/awesome/picom.conf
@@ -173,7 +173,7 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ];
#
#opacity-rule = [ "80:class_g = 'Alacritty'" ]
opacity-rule = [
- "100:class_g = 'kitty'",
+ "90:class_g = 'kitty'",
"90:class_g = 'alacritty'",
];
@@ -182,10 +182,24 @@ opacity-rule = [
# Background-Blurring #
#################################
+
+# Exclude conditions for background blur.
+# blur-background-exclude = []
+blur-background-exclude = [
+ "window_type = 'menu'";
+ "window_type = 'dropdown_menu'";
+ "window_type = 'popup_menu'";
+ "window_type = 'tooltip'";
+ "window_type = 'dock'",
+ "window_type = 'desktop'",
+ "_GTK_FRAME_EXTENTS@:c"
+];
+
blur:
{
method = "dual_kawase";
strength = 4;
+ for_window = ["class_g = 'Alacritty'"];
};
# Parameters for background blurring, see the *BLUR* section for more information.
@@ -220,13 +234,8 @@ blur:
blur-kern = "3x3box";
-# Exclude conditions for background blur.
-# blur-background-exclude = []
-blur-background-exclude = [
- "window_type = 'dock'",
- "window_type = 'desktop'",
- "_GTK_FRAME_EXTENTS@:c"
-];
+
+
#################################
# General Settings #
@@ -445,9 +454,10 @@ log-level = "warn";
#
wintypes:
{
- tooltip = { fade = true; shadow = true; opacity = 1.0; focus = true; full-shadow = false; };
- dock = { shadow = false; }
- dnd = { shadow = false; }
- popup_menu = { opacity = 1.0; }
- dropdown_menu = { opacity = 1.0; }
+ # normal { blur-background = true; };
+ # tooltip = { fade = true; shadow = true; opacity = 1.0; focus = true; full-shadow = false; };
+ dock = { shadow = false; };
+ dnd = { shadow = false; };
+ # popup_menu = { opacity = 1.0; }
+ # dropdown_menu = { opacity = 1.0; }
};
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index 734634c..16fa644 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -115,7 +115,7 @@ local editorgui = "neovide"
local filemanager = "pcmanfm"
local mailclient = "mailspring"
local mediaplayer = "spotify"
-local terminal = "kitty"
+local terminal = "alacritty"
local virtualmachine = "virtualbox"
-- awesome variables
diff --git a/awesome/.config/awesome/themes/powerarrow-black/theme.lua b/awesome/.config/awesome/themes/powerarrow-black/theme.lua
index 579e767..f64f608 100644
--- a/awesome/.config/awesome/themes/powerarrow-black/theme.lua
+++ b/awesome/.config/awesome/themes/powerarrow-black/theme.lua
@@ -5,368 +5,384 @@
--]]
-local gears = require("gears")
-local lain = require("lain")
-local awful = require("awful")
-local wibox = require("wibox")
-
-local math, string, os = math, string, os
-local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
-
-local theme = {}
-theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow-dark"
-theme.font = "Source code pro bold 12"
-theme.taglist_font = "Source code pro bold 12"
-theme.fg_normal = "#ffffff" -- Not focused windows text color
-theme.fg_blue = "#000000" -- Mlo4 lazma
-theme.fg_magenta = "#FBE9E7" -- taglist color and mem and cpu
-theme.fg_focus = "#6200C4"
-theme.fg_urgent = "#b74822"
-theme.bg_normal = "#000000" -- Bar color
-theme.bg_focus = "#717171" -- taglist focused bg color
-theme.bg_urgent = "#3F3F3F"
-theme.taglist_fg_focus = "#ffffff"
-theme.tasklist_bg_focus = "#3f3f3f"
-theme.tasklist_fg_focus = "#eeeeee"
-theme.border_width = 2
-theme.border_normal = "#000000"
-theme.border_focus = "#f90057"
-theme.border_marked = "#000000"
-theme.titlebar_bg_focus = "#3F3F3F"
-theme.titlebar_bg_normal = "#3F3F3F"
-theme.titlebar_bg_focus = theme.bg_focus
-theme.titlebar_bg_normal = theme.bg_normal
-theme.titlebar_fg_focus = theme.fg_focus
-theme.menu_height = 20
-theme.menu_width = 140
-theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png"
-theme.awesome_icon = theme.dir .. "/icons/awesome.png"
-theme.layout_tile = theme.dir .. "/icons/tile.png"
-theme.layout_tileleft = theme.dir .. "/icons/tileleft.png"
-theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png"
-theme.layout_tiletop = theme.dir .. "/icons/tiletop.png"
-theme.layout_fairv = theme.dir .. "/icons/fairv.png"
-theme.layout_fairh = theme.dir .. "/icons/fairh.png"
-theme.layout_spiral = theme.dir .. "/icons/spiral.png"
-theme.layout_dwindle = theme.dir .. "/icons/dwindle.png"
-theme.layout_max = theme.dir .. "/icons/max.png"
-theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png"
-theme.layout_magnifier = theme.dir .. "/icons/magnifier.png"
-theme.layout_floating = theme.dir .. "/icons/floating.png"
-theme.widget_ac = theme.dir .. "/icons/ac.png"
-theme.widget_mem = theme.dir .. "/icons/mem.png"
-theme.widget_cpu = theme.dir .. "/icons/cpu.png"
-theme.widget_temp = theme.dir .. "/icons/temp.png"
-theme.widget_net = theme.dir .. "/icons/net.png"
-theme.widget_hdd = theme.dir .. "/icons/hdd.png"
-theme.widget_music = theme.dir .. "/icons/note.png"
-theme.widget_music_on = theme.dir .. "/icons/note.png"
-theme.widget_music_pause = theme.dir .. "/icons/pause.png"
-theme.widget_music_stop = theme.dir .. "/icons/stop.png"
-theme.widget_vol = theme.dir .. "/icons/vol.png"
-theme.widget_vol_low = theme.dir .. "/icons/vol_low.png"
-theme.widget_vol_no = theme.dir .. "/icons/vol_no.png"
-theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png"
-theme.widget_mail = theme.dir .. "/icons/mail.png"
-theme.widget_mail_on = theme.dir .. "/icons/mail_on.png"
-theme.widget_task = theme.dir .. "/icons/task.png"
-theme.widget_scissors = theme.dir .. "/icons/scissors.png"
-theme.widget_weather = theme.dir .. "/icons/dish.png"
-theme.widget_arch_logo = theme.dir .. "/icons/archlinux.png"
-theme.tasklist_plain_task_name = false
-theme.tasklist_disable_task_name = false
-theme.tasklist_disable_icon = false
-theme.useless_gap = 3
-theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png"
-theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png"
-theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png"
-theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png"
-theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png"
-theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png"
-theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png"
-theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png"
-theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png"
-theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png"
-theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png"
-theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png"
-theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png"
-theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png"
-theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png"
-theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png"
-theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png"
+local gears = require("gears")
+local lain = require("lain")
+local awful = require("awful")
+local wibox = require("wibox")
+
+local math, string, os = math, string, os
+local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
+
+local theme = {}
+theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow-dark"
+theme.font = "Source code pro bold 12"
+theme.taglist_font = "Source code pro bold 12"
+theme.fg_normal = "#ffffff" -- Not focused windows text color
+theme.fg_blue = "#000000" -- Mlo4 lazma
+theme.fg_magenta = "#FBE9E7" -- taglist color and mem and cpu
+theme.fg_focus = "#6200C4"
+theme.fg_urgent = "#b74822"
+theme.bg_normal = "#000000" -- Bar color
+theme.bg_focus = "#717171" -- taglist focused bg color
+theme.bg_urgent = "#3F3F3F"
+theme.taglist_fg_focus = "#ffffff"
+theme.tasklist_bg_focus = "#3f3f3f"
+theme.tasklist_fg_focus = "#eeeeee"
+theme.border_width = 2
+theme.border_normal = "#000000"
+theme.border_focus = "#f90057"
+theme.border_marked = "#000000"
+theme.titlebar_bg_focus = "#3F3F3F"
+theme.titlebar_bg_normal = "#3F3F3F"
+theme.titlebar_bg_focus = theme.bg_focus
+theme.titlebar_bg_normal = theme.bg_normal
+theme.titlebar_fg_focus = theme.fg_focus
+theme.menu_height = 20
+theme.menu_width = 140
+theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png"
+theme.awesome_icon = theme.dir .. "/icons/awesome.png"
+theme.layout_tile = theme.dir .. "/icons/tile.png"
+theme.layout_tileleft = theme.dir .. "/icons/tileleft.png"
+theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png"
+theme.layout_tiletop = theme.dir .. "/icons/tiletop.png"
+theme.layout_fairv = theme.dir .. "/icons/fairv.png"
+theme.layout_fairh = theme.dir .. "/icons/fairh.png"
+theme.layout_spiral = theme.dir .. "/icons/spiral.png"
+theme.layout_dwindle = theme.dir .. "/icons/dwindle.png"
+theme.layout_max = theme.dir .. "/icons/max.png"
+theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png"
+theme.layout_magnifier = theme.dir .. "/icons/magnifier.png"
+theme.layout_floating = theme.dir .. "/icons/floating.png"
+theme.widget_ac = theme.dir .. "/icons/ac.png"
+theme.widget_mem = theme.dir .. "/icons/mem.png"
+theme.widget_cpu = theme.dir .. "/icons/cpu.png"
+theme.widget_temp = theme.dir .. "/icons/temp.png"
+theme.widget_net = theme.dir .. "/icons/net.png"
+theme.widget_hdd = theme.dir .. "/icons/hdd.png"
+theme.widget_music = theme.dir .. "/icons/note.png"
+theme.widget_music_on = theme.dir .. "/icons/note.png"
+theme.widget_music_pause = theme.dir .. "/icons/pause.png"
+theme.widget_music_stop = theme.dir .. "/icons/stop.png"
+theme.widget_vol = theme.dir .. "/icons/vol.png"
+theme.widget_vol_low = theme.dir .. "/icons/vol_low.png"
+theme.widget_vol_no = theme.dir .. "/icons/vol_no.png"
+theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png"
+theme.widget_mail = theme.dir .. "/icons/mail.png"
+theme.widget_mail_on = theme.dir .. "/icons/mail_on.png"
+theme.widget_task = theme.dir .. "/icons/task.png"
+theme.widget_scissors = theme.dir .. "/icons/scissors.png"
+theme.widget_weather = theme.dir .. "/icons/dish.png"
+theme.widget_arch_logo = theme.dir .. "/icons/archlinux.png"
+theme.tasklist_plain_task_name = false
+theme.tasklist_disable_task_name = false
+theme.tasklist_disable_icon = false
+theme.useless_gap = 3
+theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png"
+theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png"
+theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png"
+theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png"
+theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png"
+theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png"
+theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png"
+theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png"
+theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png"
+theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png"
+theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png"
+theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png"
+theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png"
+theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png"
+theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png"
+theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png"
+theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png"
-theme.bg_systray = "#000000"
-theme.clock_fontfg = theme.fg_magenta
-theme.clock_font = "DejaVu Sans Mono Bold 12"
-theme.arch_fontfg = theme.fg_magenta
-theme.arch_font = "DejaVu Sans Mono Bold 12"
-
-local markup = lain.util.markup
-local separators = lain.util.separators
+theme.bg_systray = "#000000"
+theme.clock_fontfg = theme.fg_magenta
+theme.clock_font = "DejaVu Sans Mono Bold 12"
+theme.arch_fontfg = theme.fg_magenta
+theme.arch_font = "DejaVu Sans Mono Bold 12"
+local markup = lain.util.markup
+local separators = lain.util.separators
-- Textclock
local clockicon = wibox.widget.imagebox(theme.widget_clock)
-local clock = awful.widget.watch(
- "date +'%A %d %B %I:%M%p'", 60,
- function(widget, stdout)
- widget:set_markup(" " .. markup.fontfg(theme.clock_font, theme.clock_fontfg, stdout))
- end
-)
+local clock = awful.widget.watch("date +'%A %d %B %I:%M%p'", 60, function(widget, stdout)
+ widget:set_markup(" " .. markup.fontfg(theme.clock_font, theme.clock_fontfg, stdout))
+end)
-- Calendar
theme.cal = lain.widget.cal({
- attach_to = { clock },
- notification_preset = {
- font = "Roboto Mono Medium 10",
- fg = theme.border_focus,
- bg = theme.bg_normal
- }
+ attach_to = { clock },
+ notification_preset = {
+ font = "Roboto Mono Medium 10",
+ fg = theme.border_focus,
+ bg = theme.bg_normal,
+ },
})
-- ALSA volume
theme.volume = lain.widget.alsabar({
- --togglechannel = "IEC958,3",
- notification_preset = { font = theme.font, fg = theme.fg_normal },
+ --togglechannel = "IEC958,3",
+ notification_preset = { font = theme.font, fg = theme.fg_normal },
})
-- MPD
local musicplr = "urxvt -title Music -g 130x34-320+16 -e ncmpcpp"
local mpdicon = wibox.widget.imagebox(theme.widget_music)
mpdicon:buttons(my_table.join(
- awful.button({ modkey }, 1, function() awful.spawn.with_shell(musicplr) end),
- awful.button({}, 2, function()
- awful.spawn.with_shell("mpc toggle")
- theme.mpd.update()
- end),
- awful.button({ modkey }, 3, function() awful.spawn.with_shell("pkill ncmpcpp") end),
- awful.button({}, 3, function()
- awful.spawn.with_shell("mpc stop")
- theme.mpd.update()
- end)))
+ awful.button({ modkey }, 1, function()
+ awful.spawn.with_shell(musicplr)
+ end),
+ awful.button({}, 2, function()
+ awful.spawn.with_shell("mpc toggle")
+ theme.mpd.update()
+ end),
+ awful.button({ modkey }, 3, function()
+ awful.spawn.with_shell("pkill ncmpcpp")
+ end),
+ awful.button({}, 3, function()
+ awful.spawn.with_shell("mpc stop")
+ theme.mpd.update()
+ end)
+))
theme.mpd = lain.widget.mpd({
- settings = function()
- if mpd_now.state == "play" then
- artist = " " .. mpd_now.artist .. " "
- title = mpd_now.title .. " "
- mpdicon:set_image(theme.widget_music_on)
- widget:set_markup(markup.font(theme.font, markup("#FFFFFF", artist) .. " " .. title))
- elseif mpd_now.state == "pause" then
- widget:set_markup(markup.font(theme.font, " mpd paused "))
- mpdicon:set_image(theme.widget_music_pause)
- else
- widget:set_text("")
- mpdicon:set_image(theme.widget_music)
- end
- end
+ settings = function()
+ if mpd_now.state == "play" then
+ artist = " " .. mpd_now.artist .. " "
+ title = mpd_now.title .. " "
+ mpdicon:set_image(theme.widget_music_on)
+ widget:set_markup(markup.font(theme.font, markup("#FFFFFF", artist) .. " " .. title))
+ elseif mpd_now.state == "pause" then
+ widget:set_markup(markup.font(theme.font, " mpd paused "))
+ mpdicon:set_image(theme.widget_music_pause)
+ else
+ widget:set_text("")
+ mpdicon:set_image(theme.widget_music)
+ end
+ end,
})
-- MEM
local memicon = wibox.widget.imagebox(theme.widget_mem)
local mem = lain.widget.mem({
- settings = function()
- widget:set_markup(markup.font(theme.font, "  " .. mem_now.used .. "MB "))
- end
+ settings = function()
+ widget:set_markup(markup.font(theme.font, "  " .. mem_now.used .. "MB "))
+ end,
})
-
-- CPU
local cpuicon = wibox.widget.imagebox(theme.widget_cpu)
local cpu = lain.widget.cpu({
- settings = function()
- widget:set_markup(markup.font(theme.font, " " .. cpu_now.usage .. "% "))
- end
+ settings = function()
+ widget:set_markup(markup.font(theme.font, " " .. cpu_now.usage .. "% "))
+ end,
})
-- ALSA volume
local volicon = wibox.widget.imagebox(theme.widget_vol)
theme.volume = lain.widget.alsa({
- settings = function()
- if volume_now.status == "off" then
- volicon:set_image(theme.widget_vol_mute)
- elseif tonumber(volume_now.level) == 0 then
- volicon:set_image(theme.widget_vol_no)
- elseif tonumber(volume_now.level) <= 50 then
- volicon:set_image(theme.widget_vol_low)
- else
- volicon:set_image(theme.widget_vol)
- end
-
- widget:set_markup(markup.font(theme.font, " " .. volume_now.level .. "% "))
- end
+ settings = function()
+ if volume_now.status == "off" then
+ volicon:set_image(theme.widget_vol_mute)
+ elseif tonumber(volume_now.level) == 0 then
+ volicon:set_image(theme.widget_vol_no)
+ elseif tonumber(volume_now.level) <= 50 then
+ volicon:set_image(theme.widget_vol_low)
+ else
+ volicon:set_image(theme.widget_vol)
+ end
+
+ widget:set_markup(markup.font(theme.font, " " .. volume_now.level .. "% "))
+ end,
})
-- Separators
local arrow = separators.arrow_left
function theme.powerline_rl(cr, width, height)
- local arrow_depth, offset = height / 2, 0
-
- -- Avoid going out of the (potential) clip area
- if arrow_depth < 0 then
- width = width + 2 * arrow_depth
- offset = -arrow_depth
- end
-
- cr:move_to(offset + arrow_depth, 0)
- cr:line_to(offset + width, 0)
- cr:line_to(offset + width - arrow_depth, height / 2)
- cr:line_to(offset + width, height)
- cr:line_to(offset + arrow_depth, height)
- cr:line_to(offset, height / 2)
-
- cr:close_path()
+ local arrow_depth, offset = height / 2, 0
+
+ -- Avoid going out of the (potential) clip area
+ if arrow_depth < 0 then
+ width = width + 2 * arrow_depth
+ offset = -arrow_depth
+ end
+
+ cr:move_to(offset + arrow_depth, 0)
+ cr:line_to(offset + width, 0)
+ cr:line_to(offset + width - arrow_depth, height / 2)
+ cr:line_to(offset + width, height)
+ cr:line_to(offset + arrow_depth, height)
+ cr:line_to(offset, height / 2)
+
+ cr:close_path()
end
local function pl(widget, bgcolor, padding)
- return wibox.container.background(wibox.container.margin(widget, 16, 16), bgcolor, theme.powerline_rl)
+ return wibox.container.background(wibox.container.margin(widget, 16, 16), bgcolor, theme.powerline_rl)
end
function theme.at_screen_connect(s)
- -- Quake application
- -- s.quake = lain.util.quake({ app = awful.util.terminal })
- s.quake = lain.util.quake({ app = "termite", height = 0.50, argname = "--name %s" })
-
- -- If wallpaper is a function, call it with the screen
- local wallpaper = theme.wallpaper
- if type(wallpaper) == "function" then
- wallpaper = wallpaper(s)
- end
- gears.wallpaper.maximized(wallpaper, s, true)
-
- -- All tags open with layout 1
- awful.tag(awful.util.tagnames, s, awful.layout.layouts[1])
-
- -- Create a promptbox for each screen
- s.mypromptbox = awful.widget.prompt()
- -- Create an imagebox widget which will contains an icon indicating which layout we're using.
- -- We need one layoutbox per screen.
- s.mylayoutbox = awful.widget.layoutbox(s)
- s.mylayoutbox:buttons(my_table.join(
- awful.button({}, 1, function() awful.layout.inc(1) end),
- awful.button({}, 3, function() awful.layout.inc(-1) end),
- awful.button({}, 4, function() awful.layout.inc(1) end),
- awful.button({}, 5, function() awful.layout.inc(-1) end)))
- -- Create a taglist widget
- s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)
-
- -- Create the wibox
- local function custom_shape(cr, width, height)
- gears.shape.rounded_rect(cr, width, height, 0)
- end
-
- s.mywibox = awful.wibar({
- position = "top",
- screen = s,
- shape = custom_shape,
- height = 23,
- width = 1920,
- border_width = 0,
- bg = theme.bg_normal,
- fg = theme.fg_magenta
- })
-
-
- -- s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons, { bg_normal = theme.bg_systray, bg_focus = theme.bg_focus})
- s.mytasklist = awful.widget.tasklist {
- screen = s,
- filter = awful.widget.tasklist.filter.currenttags,
- buttons = tasklist_buttons,
- style = {
- shape_border_width = 0,
- shape_border_color = "#777777",
- shape = gears.shape.rectangle,
- },
- layout = {
- spacing = 0,
- spacing_widget = {
- {
- forced_width = 0,
- shape = gears.shape.circle,
- widget = wibox.widget.separator
- },
- valign = 'center',
- halign = 'center',
- widget = wibox.container.place,
- },
- layout = wibox.layout.flex.horizontal
- },
- -- Notice that there is *NO* wibox.wibox prefix, it is a template,
- -- not a widget instance.
- widget_template = {
- {
- {
- {
- {
- id = 'icon_role',
- widget = wibox.widget.imagebox,
- },
- margins = 0,
- widget = wibox.container.margin,
- },
- {
- id = 'text_role',
- widget = wibox.widget.textbox,
- },
- layout = wibox.layout.fixed.horizontal,
- },
- left = 10,
- right = 10,
- widget = wibox.container.margin
- },
- id = 'background_role',
- widget = wibox.container.background,
- },
- }
-
- s.mylayoutbox = awful.widget.layoutbox(s)
- s.mylayoutbox:buttons(my_table.join(
- awful.button({}, 1, function() awful.layout.inc(1) end),
- awful.button({}, 3, function() awful.layout.inc(-1) end),
- awful.button({}, 4, function() awful.layout.inc(1) end),
- awful.button({}, 5, function() awful.layout.inc(-1) end)))
-
-
- tbox_separator = wibox.widget.textbox(" ")
-
- local vert_sep = wibox.widget {
- widget = wibox.widget.separator,
- orientation = "horizontal",
- forced_width = 6,
- color = theme.fg_normal,
- }
-
- local allah = wibox.widget {
- markup = "<span foreground='#FBFFFE'>ﷲ</span>",
- widget = wibox.widget.textbox,
- color = "#ffffff",
- font = "DejaVu Sans Mono Bold 10",
- }
-
- -- Add widgets to the wibox
- s.mywibox:setup {
- layout = wibox.layout.align.horizontal,
- { -- Left widgets
- layout = wibox.layout.fixed.horizontal,
- --spr,
- wibox.container.background(wibox.container.margin(allah, 10, 10, 1, 1)),
- -- s.mypromptbox,
- wibox.container.background(wibox.container.margin(s.mytaglist, 0, 0, 2, 2)),
- tbox_separator,
- },
- s.mytasklist, -- Middle widget
- { -- Right widgets
- layout = wibox.layout.fixed.horizontal,
- tbox_separator,
- wibox.widget { theme.volume.widget, layout = wibox.layout.align.horizontal },
- vert_sep,
- wibox.widget { mem.widget, layout = wibox.layout.align.horizontal },
- vert_sep,
- wibox.widget { cpu.widget, layout = wibox.layout.align.horizontal },
- wibox.container.background(wibox.container.margin(clock, 15, 5, 2, 2)),
- wibox.widget.systray(),
- },
- }
+ -- Quake application
+ -- s.quake = lain.util.quake({ app = awful.util.terminal })
+ s.quake = lain.util.quake({ app = "termite", height = 0.50, argname = "--name %s" })
+
+ -- If wallpaper is a function, call it with the screen
+ local wallpaper = theme.wallpaper
+ if type(wallpaper) == "function" then
+ wallpaper = wallpaper(s)
+ end
+ gears.wallpaper.maximized(wallpaper, s, true)
+
+ -- All tags open with layout 1
+ awful.tag(awful.util.tagnames, s, awful.layout.layouts[1])
+
+ -- Create a promptbox for each screen
+ s.mypromptbox = awful.widget.prompt()
+ -- Create an imagebox widget which will contains an icon indicating which layout we're using.
+ -- We need one layoutbox per screen.
+ s.mylayoutbox = awful.widget.layoutbox(s)
+ s.mylayoutbox:buttons(my_table.join(
+ awful.button({}, 1, function()
+ awful.layout.inc(1)
+ end),
+ awful.button({}, 3, function()
+ awful.layout.inc(-1)
+ end),
+ awful.button({}, 4, function()
+ awful.layout.inc(1)
+ end),
+ awful.button({}, 5, function()
+ awful.layout.inc(-1)
+ end)
+ ))
+ -- Create a taglist widget
+ s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)
+
+ -- Create the wibox
+ local function custom_shape(cr, width, height)
+ gears.shape.rounded_rect(cr, width, height, 0)
+ end
+
+ s.mywibox = awful.wibar({
+ position = "top",
+ screen = s,
+ shape = custom_shape,
+ height = 23,
+ width = 1920,
+ border_width = 0,
+ bg = theme.bg_normal,
+ fg = theme.fg_magenta,
+ })
+
+ -- s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons, { bg_normal = theme.bg_systray, bg_focus = theme.bg_focus})
+ s.mytasklist = awful.widget.tasklist({
+ screen = s,
+ filter = awful.widget.tasklist.filter.currenttags,
+ buttons = tasklist_buttons,
+ style = {
+ shape_border_width = 0,
+ shape_border_color = "#777777",
+ shape = gears.shape.rectangle,
+ },
+ layout = {
+ spacing = 0,
+ spacing_widget = {
+ {
+ forced_width = 0,
+ shape = gears.shape.circle,
+ widget = wibox.widget.separator,
+ },
+ valign = "center",
+ halign = "center",
+ widget = wibox.container.place,
+ },
+ layout = wibox.layout.flex.horizontal,
+ },
+ -- Notice that there is *NO* wibox.wibox prefix, it is a template,
+ -- not a widget instance.
+ widget_template = {
+ {
+ {
+ {
+ {
+ id = "icon_role",
+ widget = wibox.widget.imagebox,
+ },
+ margins = 0,
+ widget = wibox.container.margin,
+ },
+ {
+ id = "text_role",
+ widget = wibox.widget.textbox,
+ },
+ layout = wibox.layout.fixed.horizontal,
+ },
+ left = 10,
+ right = 10,
+ widget = wibox.container.margin,
+ },
+ id = "background_role",
+ widget = wibox.container.background,
+ },
+ })
+
+ s.mylayoutbox = awful.widget.layoutbox(s)
+ s.mylayoutbox:buttons(my_table.join(
+ awful.button({}, 1, function()
+ awful.layout.inc(1)
+ end),
+ awful.button({}, 3, function()
+ awful.layout.inc(-1)
+ end),
+ awful.button({}, 4, function()
+ awful.layout.inc(1)
+ end),
+ awful.button({}, 5, function()
+ awful.layout.inc(-1)
+ end)
+ ))
+
+ tbox_separator = wibox.widget.textbox(" ")
+
+ local vert_sep = wibox.widget({
+ widget = wibox.widget.separator,
+ orientation = "horizontal",
+ forced_width = 6,
+ color = theme.fg_normal,
+ })
+
+ local allah = wibox.widget({
+ markup = "<span foreground='#FBFFFE'>ﷲ</span>",
+ widget = wibox.widget.textbox,
+ color = "#ffffff",
+ font = "DejaVu Sans Mono Bold 10",
+ })
+
+ -- Add widgets to the wibox
+ s.mywibox:setup({
+ layout = wibox.layout.align.horizontal,
+ { -- Left widgets
+ layout = wibox.layout.fixed.horizontal,
+ --spr,
+ wibox.container.background(wibox.container.margin(allah, 10, 10, 1, 1)),
+ -- s.mypromptbox,
+ wibox.container.background(wibox.container.margin(s.mytaglist, 0, 0, 2, 2)),
+ tbox_separator,
+ },
+ s.mytasklist, -- Middle widget
+ { -- Right widgets
+ layout = wibox.layout.fixed.horizontal,
+ tbox_separator,
+ wibox.widget({ theme.volume.widget, layout = wibox.layout.align.horizontal }),
+ vert_sep,
+ wibox.widget({ mem.widget, layout = wibox.layout.align.horizontal }),
+ vert_sep,
+ wibox.widget({ cpu.widget, layout = wibox.layout.align.horizontal }),
+ wibox.container.background(wibox.container.margin(clock, 15, 5, 2, 2)),
+ wibox.widget.systray(),
+ },
+ })
end
return theme