guest@dotshare [~/groups/wms/awesome] $ ls military-style-v12/ | cat

military style v1.2 (scrot)

paranoid73 Sep 09, 2019 (wms/awesome)

rc.lua(raw, dl)

SCROT

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
-- Load modules
-----------------------------------------------------------------------------------------------------------------------
local awful         =   require("awful")
local beautiful     =   require("beautiful")
local gears         =   require("gears")
local wibox         =   require("wibox")
local core          =   require("core")
local util          =   require("utilities")
                        require("awful.autofocus")
                        

--------        Environment       
------------------------------------------------------------------------------------
local env           =   require("environment")
env:init()
--------        Layouts          
------------------------------------------------------------------------------------
local layout = core.layouts

--------        keys          
------------------------------------------------------------------------------------
local keys   = core.keys

-- Taglist widget
--------------------------------------------------------------------------------
local taglist = {}

taglist.buttons = awful.util.table.join(
	awful.button({         }, 1, function(t) t:view_only() end),
	awful.button({         }, 2, awful.tag.viewtoggle),
	awful.button({         }, 4, function(t) awful.tag.viewnext(t.screen) end),
	awful.button({         }, 5, function(t) awful.tag.viewprev(t.screen) end)
)

--------        Tasklist      
------------------------------------------------------------------------------------
local tasklist_buttons = gears.table.join(
                     awful.button({ }, 1, function (c)
                                              if c == client.focus then
                                                  c.minimized = true
                                              else
                                                  c:emit_signal(
                                                      "request::activate",
                                                      "tasklist",
                                                      {raise = true}
                                                  )
                                              end
                                          end),
                     awful.button({ }, 3, function()
                                              awful.menu.client_list({ theme = { width = 250 } })
                                          end),
                     awful.button({ }, 4, function ()
                                              awful.client.focus.byidx(1)
                                          end),
                     awful.button({ }, 5, function ()
                                              awful.client.focus.byidx(-1)
                                          end))

-- Systray
------------------------------------------------------------------------------------

-- Textclock
------------------------------------------------------------------------------------
local textclock = wibox.widget.textclock(" %d/%m/%Y - %H:%M GMT", 60)


-- sysmon
------------------------------------------------------------------------------------
local sysmon = {}
sysmon.battery      = require("widgets.battery")
sysmon.backlight    = require("widgets.backlight")
sysmon.volume       = require("widgets.volume")

-- Screen setup
-----------------------------------------------------------------------------------------------------------------------
awful.screen.connect_for_each_screen(function(s)
    -- wallpaper
    env.set_wallpaper(s)

    s.mylayoutbox = awful.widget.layoutbox(s)
    s.mylayoutbox:buttons(gears.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)))
    
    -- Each screen has its own tag table.
    awful.tag(env.taglist, s, awful.layout.layouts[1])
    
    --taglist 
    taglist[s] = awful.widget.taglist{
        screen  = s,
        filter  = awful.widget.taglist.filter.all,
        style   = {
            shape = custom_shape
        }
    }
    
    -- tasklist
    s.mytasklist = awful.widget.tasklist {
        screen  = s,
        filter  = awful.widget.tasklist.filter.currenttags,
        buttons = tasklist_buttons,
        style    = {
            shape  = custom_shape,
        },
        layout   = {
            spacing = 10,
            layout  = wibox.layout.flex.horizontal
        },
    }

    -- bottom wibar
    s.wibar_top    = awful.wibar({ position = "top", screen = s, height =  35 })
    s.wibar_top:setup
    {
        layout = wibox.layout.align.horizontal,
        {
            layout = wibox.layout.flex.horizontal,
            env.wrapper_tag(taglist[s])
        },
        {
            layout = wibox.layout.flex.horizontal,
        },
        {
            layout = wibox.layout.flex.horizontal,
            wibox.widget.systray(),
            env.widget_name("VOLUME"),
            env.margin(sysmon.volume),
            env.widget_name("BACKLIGHT"),
            env.margin(sysmon.backlight),
            env.widget_name("BATTERY"),
            env.margin(sysmon.battery),
            
        }
    }

    -- bottom wibar
    s.wibar_bottom = awful.wibar({ position = "bottom", screen = s, height =  40 })
    s.wibar_bottom:setup{
        layout = wibox.layout.align.horizontal,
        {
            layout = wibox.layout.align.horizontal,
            
        },
        {
            layout = wibox.layout.align.horizontal,
            env.margin(s.mytasklist)
        },
        {
            layout = wibox.layout.align.horizontal,
            textclock,
            
        }
    }

end)

CLICK TO VIEW

x

theme.lua(raw, dl)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
local themes_path   = os.getenv("HOME") .. "/.config/awesome/resources"
local theme 		= {}

theme.wallpaper     = themes_path .. "/wallpaper/OR4EJM0.jpg"

theme.color 		= {
	bg 		  = "#252e25",
	black     = "#040404",
	black_gray= "#363333",
	dark 	  = "",
	blue	  = "#0EC3B8",
	gray      = "#404040",
	yellow	  = "#C0B738",
	red       = "#D60B17",
	green	  = "#384d30",
	green_dark= "#091113",
	green_light="#C3FF10",
	white	  = "#FFFFFF"
}


theme.useless_gap                   = 3
theme.border_width					= 0
theme.font          				= "Industry-Light 10"
theme.fg_normal						= theme.color.white

theme.bg_normal 					= theme.color.bg
theme.border_normal					= theme.color.bg
theme.border_focus					= theme.color.bg
theme.border_marked                 = theme.color.bg

-- wibar
theme.wibar_bg 						= theme.color.bg
theme.wibar_fg 						= theme.color.white


-- menubar\
theme.menubar_fg_normal 			= theme.color.white
theme.menubar_bg_normal 			= theme.color.bg
theme.menubar_border_width 			= 0
theme.menubar_fg_focus 				= "#FFFFFF"
theme.menubar_bg_focus 				= theme.color.green

-- taglist
theme.taglist_font					= "Time Won 9"
theme.taglist_bg_urgent				= theme.color.red
theme.taglist_fg_focus 				= theme.color.white
theme.taglist_bg_focus 				= theme.color.green
theme.taglist_spacing				= 6

-- tasklist
theme.tasklist_font					= "Time Won 9"
theme.tasklist_disable_icon 		= true
theme.tasklist_plain_task_name 		= true
theme.tasklist_fg_normal			= theme.color.white
theme.tasklist_fg_focus				= theme.color.white
theme.tasklist_bg_normal			= theme.color.bg
theme.tasklist_bg_focus				= theme.color.green


-- systray
theme.bg_systray 					= theme.color.bg

-- hotkey
theme.hotkeys_label_bg				= theme.color.white
theme.hotkeys_bg 					= theme.color.green
theme.hotkeys_fg 					= theme.color.text
theme.hotkeys_border_width 			= 0
theme.hotkeys_group_margin 			= 20

-- notification
theme.notification_bg				=  theme.color.bg
theme.notification_fg				=  theme.color.white
theme.notification_border_width		=  5
theme.notification_border_color		=  theme.color.green
theme.notification_icon_size 		=  80
theme.notification_max_width        =  400
theme.notification_max_height       =  400
theme.notification_margin			=  80
theme.notification_padding 			=  100

--Layout
theme.layout_floating  				= themes_path.."/icons/layouts/floating.svg"
theme.layout_tile	  				= themes_path.."/icons/layouts/tile.svg"
theme.layout_fairv  				= themes_path.."/icons/layouts/fair.svg"

-- fullscreen
theme.fullscreen_hide_border 		= true

--  icon 
theme.icons							=	{
	alert 							= themes_path .. "/icons/others/yellow.png",
	show_apps						= themes_path .. "/icons/apps.svg"
}


-- battery
theme.battery						={
	charging	  					= themes_path.."/icons/battery/full.png",
	full  							= themes_path.."/icons/battery/full.png"
}
return theme
 

x

Notes

Introduction

my personal setup for Awesome Wm , still needs improvement for it to be as advanced as possible and inspired by worron config.
Requirements

Browser: Google Chrome , FireFox

Terminal: urxvt

File manager: thunar , ranger

Compositor: compton

Font: Industry Black , Samsung Sans , Time Won

Others: notify-send , maim , nm-applet , light-locker

Installation

git clone https://github.com/paranoid73/AwesomeWm-config.git ~/.config/awesome –recursive