Did a lot of stuff
This commit is contained in:
5
awesome/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
awesome/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
@@ -19,6 +19,7 @@ function _M.get(globalkeys)
|
|||||||
if tag then
|
if tag then
|
||||||
tag:view_only()
|
tag:view_only()
|
||||||
end
|
end
|
||||||
|
client.emit_signal("tag::switched")
|
||||||
end,
|
end,
|
||||||
{description = "View Tag " .. i, group = "Tag"}
|
{description = "View Tag " .. i, group = "Tag"}
|
||||||
),
|
),
|
||||||
@@ -43,7 +44,7 @@ function _M.get(globalkeys)
|
|||||||
local screen = awful.screen.focused()
|
local screen = awful.screen.focused()
|
||||||
local tag = screen.tags[i]
|
local tag = screen.tags[i]
|
||||||
if tag then
|
if tag then
|
||||||
awful.tag.viewtoggle(tag)
|
client.focus:move_to_tag(tag)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
{description = "Move focused client on tag " .. i, group = "Tag"}
|
{description = "Move focused client on tag " .. i, group = "Tag"}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ function _M.get()
|
|||||||
awful.key(
|
awful.key(
|
||||||
{ modkey },
|
{ modkey },
|
||||||
"f",
|
"f",
|
||||||
function (c)
|
function(c)
|
||||||
c.fullscreen = not c.fullscreen
|
c.fullscreen = not c.fullscreen
|
||||||
c:raise()
|
c:raise()
|
||||||
end,
|
end,
|
||||||
@@ -19,24 +19,34 @@ function _M.get()
|
|||||||
awful.key(
|
awful.key(
|
||||||
{ modkey },
|
{ modkey },
|
||||||
"q",
|
"q",
|
||||||
function (c)
|
function(c)
|
||||||
c:kill()
|
c:kill()
|
||||||
end,
|
end,
|
||||||
{ description = "Close window", group = "Client" }
|
{ description = "Close window", group = "Client" }
|
||||||
),
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{ modkey, "Shift" },
|
{ modkey, "Control" },
|
||||||
"Space",
|
"Space",
|
||||||
awful.client.floating.toggle,
|
awful.client.floating.toggle,
|
||||||
{ description = "Toggle floating window", group = "Client" }
|
{ description = "Toggle floating window", group = "Client" }
|
||||||
),
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{ modkey, "Control" },
|
{ modkey},
|
||||||
"r",
|
"m",
|
||||||
function (c)
|
function (c)
|
||||||
awesome.restart()
|
c.maximized = not c.maximized
|
||||||
|
c:raise()
|
||||||
|
end ,
|
||||||
|
{description = "(un)maximize", group = "client"}
|
||||||
|
),
|
||||||
|
awful.key(
|
||||||
|
{ modkey, "Control" },
|
||||||
|
"m",
|
||||||
|
function (c)
|
||||||
|
c.maximized_vertical = not c.maximized_vertical
|
||||||
|
c:raise()
|
||||||
end,
|
end,
|
||||||
{ description = "Restart awesome", group = "Client" }
|
{ description = "Unmaximize", group = "client"}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return clientkeys
|
return clientkeys
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ function _M.get()
|
|||||||
{ modkey },
|
{ modkey },
|
||||||
"Return",
|
"Return",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(terminal)
|
awful.spawn("alacritty -o font.size=8.0")
|
||||||
end,
|
end,
|
||||||
{description = "Open terminal", group = "Launcher"}
|
{description = "Open terminal", group = "Launcher"}
|
||||||
),
|
),
|
||||||
@@ -280,6 +280,14 @@ function _M.get()
|
|||||||
end,
|
end,
|
||||||
{ descripton = "Start a Application", group = "Application" }
|
{ descripton = "Start a Application", group = "Application" }
|
||||||
),
|
),
|
||||||
|
awful.key(
|
||||||
|
{ modkey, "Shift" },
|
||||||
|
"e",
|
||||||
|
function ()
|
||||||
|
awful.spawn("rofi -show power-menu -modi 'power-menu:~/.config/rofi/rofi-power-menu --choices=shutdown/reboot/logout/lockscreen' -theme ~/.config/rofi/powermenu/powermenu.rasi")
|
||||||
|
end,
|
||||||
|
{ descripton = "Open the exit window", group = "System" }
|
||||||
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{ },
|
{ },
|
||||||
"Print",
|
"Print",
|
||||||
|
|||||||
@@ -17,10 +17,7 @@ awful.screen.connect_for_each_screen(
|
|||||||
|
|
||||||
-- Bar for the layoutbox, taglist and newtag button
|
-- Bar for the layoutbox, taglist and newtag button
|
||||||
s.top_left = awful.popup {
|
s.top_left = awful.popup {
|
||||||
widget = {
|
widget = wibox.container.background,
|
||||||
margins = dpi(10),
|
|
||||||
widget = wibox.container.margin
|
|
||||||
},
|
|
||||||
ontop = false,
|
ontop = false,
|
||||||
bg = colors.color["Grey900"],
|
bg = colors.color["Grey900"],
|
||||||
stretch = false,
|
stretch = false,
|
||||||
@@ -112,8 +109,8 @@ awful.screen.connect_for_each_screen(
|
|||||||
s.date = require("theme.crylia.widgets.date")()
|
s.date = require("theme.crylia.widgets.date")()
|
||||||
s.clock = require("theme.crylia.widgets.clock")()
|
s.clock = require("theme.crylia.widgets.clock")()
|
||||||
s.bluetooth = require("theme.crylia.widgets.bluetooth")()
|
s.bluetooth = require("theme.crylia.widgets.bluetooth")()
|
||||||
s.calendar_osd = require("theme.crylia.modules.calendar_osd")()
|
s.calendar_osd = require("theme.crylia.modules.calendar_osd")
|
||||||
s.addtag = require("theme.crylia.widgets.addtag")()
|
--s.addtag = require("theme.crylia.widgets.addtag")()
|
||||||
s.layoutlist = require("theme.crylia.widgets.layout_list")()
|
s.layoutlist = require("theme.crylia.widgets.layout_list")()
|
||||||
s.powerbutton = require("theme.crylia.widgets.power")()
|
s.powerbutton = require("theme.crylia.widgets.power")()
|
||||||
|
|
||||||
@@ -132,11 +129,6 @@ awful.screen.connect_for_each_screen(
|
|||||||
margins = dpi(6),
|
margins = dpi(6),
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin
|
||||||
},
|
},
|
||||||
{
|
|
||||||
s.addtag,
|
|
||||||
margins = dpi(7),
|
|
||||||
widget = wibox.container.margin
|
|
||||||
},
|
|
||||||
forced_height = 45,
|
forced_height = 45,
|
||||||
layout = wibox.layout.fixed.horizontal
|
layout = wibox.layout.fixed.horizontal
|
||||||
},
|
},
|
||||||
@@ -236,10 +228,11 @@ awful.screen.connect_for_each_screen(
|
|||||||
},
|
},
|
||||||
layout = wibox.layout.align.vertical
|
layout = wibox.layout.align.vertical
|
||||||
}
|
}
|
||||||
--[[ s.calendar_osd_container:setup{
|
s.calendar_osd_container:setup{
|
||||||
s.calendar_osd,
|
s.calendar_osd,
|
||||||
|
visible = false,
|
||||||
layout = wibox.layout.align.horizontal
|
layout = wibox.layout.align.horizontal
|
||||||
} ]]
|
}
|
||||||
|
|
||||||
-- Signals
|
-- Signals
|
||||||
awesome.connect_signal(
|
awesome.connect_signal(
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
-- Awesome Libs
|
-- Awesome Libs
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
|
local naughty = require("naughty")
|
||||||
|
|
||||||
|
|
||||||
client.connect_signal(
|
client.connect_signal(
|
||||||
"manage",
|
"manage",
|
||||||
@@ -11,6 +13,41 @@ client.connect_signal(
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
client.connect_signal(
|
||||||
|
'unmanage',
|
||||||
|
function(c)
|
||||||
|
if #awful.screen.focused().clients > 0 then
|
||||||
|
awful.screen.focused().clients[1]:emit_signal(
|
||||||
|
'request::activate',
|
||||||
|
'mouse_enter',
|
||||||
|
{
|
||||||
|
raise = true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
client.connect_signal(
|
||||||
|
'tag::switched',
|
||||||
|
function(c)
|
||||||
|
if #awful.screen.focused().clients > 0 then
|
||||||
|
awful.screen.focused().clients[1]:emit_signal(
|
||||||
|
'request::activate',
|
||||||
|
'mouse_enter',
|
||||||
|
{
|
||||||
|
raise = true
|
||||||
|
}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Sloppy focus
|
||||||
|
client.connect_signal("mouse::enter", function(c)
|
||||||
|
c:emit_signal("request::activate", "mouse_enter", {raise = false})
|
||||||
|
end)
|
||||||
|
|
||||||
-- Workaround for focused border color, why in the love of god doesnt it work with
|
-- Workaround for focused border color, why in the love of god doesnt it work with
|
||||||
-- beautiful.border_focus
|
-- beautiful.border_focus
|
||||||
client.connect_signal("focus", function (c)
|
client.connect_signal("focus", function (c)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function _M.get()
|
|||||||
function (s)
|
function (s)
|
||||||
tags[s] = awful.tag(
|
tags[s] = awful.tag(
|
||||||
{
|
{
|
||||||
"1", "2", "3", "4"
|
"1", "2", "3", "4", "5", "6", "7", "8", "9"
|
||||||
},
|
},
|
||||||
s,
|
s,
|
||||||
RC.layouts[1]
|
RC.layouts[1]
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ awful.rules.rules = main.rules(
|
|||||||
require("main.signals")
|
require("main.signals")
|
||||||
|
|
||||||
-- Autostart programs
|
-- Autostart programs
|
||||||
awful.spawn.with_shell("~/.screenlayout/single_screen.sh")
|
--awful.spawn.with_shell("~/.screenlayout/single_screen.sh")
|
||||||
awful.spawn.with_shell("picom --experimental-backends")
|
awful.spawn.with_shell("picom --experimental-backends")
|
||||||
awful.spawn.with_shell("xfce4-power-manager")
|
awful.spawn.with_shell("xfce4-power-manager")
|
||||||
|
awful.spawn.with_shell("~/.screenlayout/single_screen.sh")
|
||||||
|
|||||||
BIN
awesome/theme/crylia/assets/wallpaper.jpg
Normal file
BIN
awesome/theme/crylia/assets/wallpaper.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 364 KiB |
|
Before Width: | Height: | Size: 1008 KiB After Width: | Height: | Size: 1008 KiB |
@@ -3,96 +3,76 @@ local awful = require("awful")
|
|||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
local dpi = require("beautiful").xresources.apply_dpi
|
local dpi = require("beautiful").xresources.apply_dpi
|
||||||
local watch = awful.widget.watch
|
|
||||||
local color = require("theme.crylia.colors")
|
local color = require("theme.crylia.colors")
|
||||||
|
|
||||||
local icondir = awful.util.getdir("config") .. "theme/crylia/assets/icons/date/"
|
local styles = {}
|
||||||
|
|
||||||
local calendar_osd = function ()
|
styles.month = {
|
||||||
|
padding = 15,
|
||||||
local calendar_osd_time = wibox.widget{
|
bg_color = color.color["Grey900"],
|
||||||
{
|
border_width = 1,
|
||||||
widget = wibox.widget.textbox,
|
shape = function (cr, width, height)
|
||||||
text = os.date("%H-%M-%S"),
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
id = "clock",
|
end
|
||||||
font = "digital-7 italic",
|
}
|
||||||
forced_height = dpi(50)
|
styles.normal = {
|
||||||
},
|
shape = function (cr, width, height)
|
||||||
layout = wibox.layout.align.horizontal
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
}
|
end
|
||||||
|
}
|
||||||
|
styles.focus = {
|
||||||
--[[ local create_calendar = function (widget, date)
|
fg_color = color.color["Grey900"],
|
||||||
local d = {year = date.year, month = (date.month or 1), day = (date.day or 1)}
|
bg_color = color.color["TealA200"],
|
||||||
local weekday = tonumber(os.date("%w", os.time(d)))
|
shape = function (cr, width, height)
|
||||||
local default_bg = (weekday == 0 or weekday == 6) and color.color["Grey900"]
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
local container = wibox.widget {
|
end
|
||||||
|
}
|
||||||
|
styles.header = {
|
||||||
|
fg_color = color.color["Teal200"],
|
||||||
|
markup = function(t) return '<b>' .. t .. '</b>' end,
|
||||||
|
shape = function (cr, width, height)
|
||||||
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
styles.weekday = {
|
||||||
|
padding = 8,
|
||||||
|
fg_color = color.color["Teal200"],
|
||||||
|
markup = function(t) return '<b>' .. t .. '</b>' end,
|
||||||
|
shape = function (cr, width, height)
|
||||||
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
local function decorate_cell(widget, flag, date)
|
||||||
|
if flag=='monthheader' and not styles.monthheader then
|
||||||
|
flag = 'header'
|
||||||
|
end
|
||||||
|
local props = styles[flag] or {}
|
||||||
|
if props.markup and widget.get_text and widget.set_markup then
|
||||||
|
widget:set_markup(props.markup(widget:get_text()))
|
||||||
|
end
|
||||||
|
-- Change bg color for weekends
|
||||||
|
local d = {year=date.year, month=(date.month or 1), day=(date.day or 1)}
|
||||||
|
local weekday = tonumber(os.date('%w', os.time(d)))
|
||||||
|
local default_bg = (weekday==0 or weekday==6) and color.color["Grey900"] or color.color["Grey800"]
|
||||||
|
local ret = wibox.widget {
|
||||||
{
|
{
|
||||||
widget,
|
widget,
|
||||||
margins = dpi(2),
|
margins = 10,
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin
|
||||||
},
|
},
|
||||||
shape = function (cr, height, width)
|
shape = props.shape,
|
||||||
gears.shape.rounded_rect(cr, height, widget)
|
|
||||||
end,
|
|
||||||
shape_border_width = dpi(1),
|
|
||||||
shape_border_color = color.color["Grey800"],
|
shape_border_color = color.color["Grey800"],
|
||||||
fg = color.color["White"],
|
shape_border_width = 1,
|
||||||
bg = color.color["Grey900"],
|
fg = props.fg_color or '#999999',
|
||||||
|
bg = props.bg_color or default_bg,
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
end ]]
|
return ret
|
||||||
|
|
||||||
local calendar = wibox.widget{
|
|
||||||
font = "digital-7 italic",
|
|
||||||
date = os.date("*t"),
|
|
||||||
spacing = dpi(15),
|
|
||||||
--fn_embed = create_calendar,
|
|
||||||
widget = wibox.widget.calendar.month()
|
|
||||||
}
|
|
||||||
|
|
||||||
local current_month = calendar:get_date().month
|
|
||||||
|
|
||||||
local update_active_month = function (i)
|
|
||||||
local date = calendar:get_date()
|
|
||||||
date.month = date.month + i,
|
|
||||||
calendar:set_date(nil),
|
|
||||||
calendar:set_date(date)
|
|
||||||
end
|
|
||||||
|
|
||||||
calendar:buttons(
|
|
||||||
gears.table.join(
|
|
||||||
awful.button(
|
|
||||||
{ },
|
|
||||||
4,
|
|
||||||
function ()
|
|
||||||
update_active_month(-1)
|
|
||||||
end
|
|
||||||
),
|
|
||||||
awful.button(
|
|
||||||
{ },
|
|
||||||
5,
|
|
||||||
function ()
|
|
||||||
update_active_month(1)
|
|
||||||
end
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
local calendar_widget = wibox.widget{
|
|
||||||
{
|
|
||||||
calendar_osd_time,
|
|
||||||
calendar,
|
|
||||||
layout = wibox.layout.fixed.vertical
|
|
||||||
},
|
|
||||||
bg = color.color["White"] .. "00",
|
|
||||||
shape = function (cr, height, width)
|
|
||||||
gears.shape.rounded_rect(cr, dpi(500), dpi(300))
|
|
||||||
end,
|
|
||||||
widget = wibox.container.background
|
|
||||||
}
|
|
||||||
|
|
||||||
return calendar_widget
|
|
||||||
end
|
end
|
||||||
|
local cal = wibox.widget {
|
||||||
|
date = os.date('*t'),
|
||||||
|
fn_embed = decorate_cell,
|
||||||
|
widget = wibox.widget.calendar.month
|
||||||
|
}
|
||||||
|
|
||||||
return calendar_osd
|
return cal
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
-----------------------------------
|
|
||||||
-- This is the volume_old module --
|
|
||||||
-----------------------------------
|
|
||||||
|
|
||||||
-- Awesome Libs
|
|
||||||
local awful = require("awful")
|
|
||||||
local color = require("theme.crylia.colors")
|
|
||||||
local dpi = require("beautiful").xresources.apply_dpi
|
|
||||||
local gears = require("gears")
|
|
||||||
local wibox = require("wibox")
|
|
||||||
|
|
||||||
-- Icon directory path
|
|
||||||
local icondir = awful.util.getdir("config") .. "theme/crylia/assets/icons/audio/"
|
|
||||||
|
|
||||||
return function ()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -41,8 +41,8 @@ Theme.menu_border_width = dpi(1)
|
|||||||
Theme.taglist_fg_focus = colors.color["Grey900"]
|
Theme.taglist_fg_focus = colors.color["Grey900"]
|
||||||
Theme.taglist_bg_focus = colors.color["White"]
|
Theme.taglist_bg_focus = colors.color["White"]
|
||||||
|
|
||||||
Theme.tooltip_border_color = colors.color["Grey800"]
|
Theme.tooltip_border_color = colors.color["Grey700"]
|
||||||
Theme.tooltip_bg = colors.color["White"] .. "00"
|
Theme.tooltip_bg = colors.color["Grey800"]
|
||||||
Theme.tooltip_fg = colors.color["White"]
|
Theme.tooltip_fg = colors.color["White"]
|
||||||
Theme.tooltip_border_width = dpi(1)
|
Theme.tooltip_border_width = dpi(1)
|
||||||
Theme.tooltip_shape = function (cr, width, heigth)
|
Theme.tooltip_shape = function (cr, width, heigth)
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ return function ()
|
|||||||
"button::release",
|
"button::release",
|
||||||
function ()
|
function ()
|
||||||
power_widget.bg = color.color["Red200"] .. "dd"
|
power_widget.bg = color.color["Red200"] .. "dd"
|
||||||
|
awful.spawn("rofi -show power-menu -modi 'power-menu:~/.config/rofi/rofi-power-menu --choices=shutdown/reboot/logout/lockscreen' -theme ~/.config/rofi/powermenu/powermenu.rasi")
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -65,9 +65,9 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
|
|
||||||
tag_widget:buttons(buttons, object)
|
tag_widget:buttons(buttons, object)
|
||||||
|
|
||||||
--local text, bg_color, bg_image, icon, args = label(object, tag_label)
|
local text, bg_color, bg_image, icon, args = label(object, tag_label)
|
||||||
|
|
||||||
tag_label:set_text(i)
|
tag_label:set_text(object.index)
|
||||||
|
|
||||||
if object == awful.screen.focused().selected_tag then
|
if object == awful.screen.focused().selected_tag then
|
||||||
tag_widget:set_bg(color.color["White"])
|
tag_widget:set_bg(color.color["White"])
|
||||||
@@ -153,7 +153,7 @@ end
|
|||||||
local tag_list = function (s)
|
local tag_list = function (s)
|
||||||
return awful.widget.taglist(
|
return awful.widget.taglist(
|
||||||
s,
|
s,
|
||||||
awful.widget.taglist.filter.all,
|
awful.widget.taglist.filter.noempty,
|
||||||
gears.table.join(
|
gears.table.join(
|
||||||
awful.button(
|
awful.button(
|
||||||
{ },
|
{ },
|
||||||
@@ -200,10 +200,8 @@ local tag_list = function (s)
|
|||||||
{ },
|
{ },
|
||||||
5,
|
5,
|
||||||
function (t)
|
function (t)
|
||||||
if client.focus then
|
|
||||||
awful.tag.viewprev(t.screen)
|
awful.tag.viewprev(t.screen)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
,
|
,
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ local list_update = function (widget, buttons, label, data, objects)
|
|||||||
task_title,
|
task_title,
|
||||||
layout = wibox.layout.fixed.horizontal
|
layout = wibox.layout.fixed.horizontal
|
||||||
},
|
},
|
||||||
margins = dpi(0),
|
right = dpi(5),
|
||||||
|
left = dpi(5),
|
||||||
widget = wibox.container.margin
|
widget = wibox.container.margin
|
||||||
},
|
},
|
||||||
bg = color.color["White"],
|
bg = color.color["White"],
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ opacity-rule = [
|
|||||||
# ░▀▀░░▀▀▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀▀▀
|
# ░▀▀░░▀▀▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀▀▀
|
||||||
|
|
||||||
blur: {
|
blur: {
|
||||||
method = "kawase";
|
method = "dual_kawase";
|
||||||
strength = 5.0;
|
strength = 5.0;
|
||||||
deviation = 1.0;
|
deviation = 1.0;
|
||||||
kernel = "11x11gaussian";
|
kernel = "11x11gaussian";
|
||||||
|
|||||||
119
rofi/config.rasi
119
rofi/config.rasi
@@ -1,119 +0,0 @@
|
|||||||
configuration {
|
|
||||||
modi: "run,drun,window";
|
|
||||||
font: "JetBrainsMono Nerd Font 14";
|
|
||||||
terminal: "alacritty";
|
|
||||||
icon-theme: "Papirus";
|
|
||||||
line-margin: 0;
|
|
||||||
line-padding: 0;
|
|
||||||
separator-style: "solid";
|
|
||||||
hide-scrollbar: true;
|
|
||||||
display-drun: "ﬓ";
|
|
||||||
display-run: "";
|
|
||||||
display-window: "缾";
|
|
||||||
show-icons: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
background: #21212166;
|
|
||||||
background-alt: #00000000;
|
|
||||||
background-bar: #f2f2f215;
|
|
||||||
foreground: #f2f2f2EE;
|
|
||||||
accent: #3DAEE966;
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
background-color: @background;
|
|
||||||
text-color: @foreground;
|
|
||||||
border: 0px;
|
|
||||||
border-color: @border;
|
|
||||||
border-radius: 0px;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
enabled: true;
|
|
||||||
padding: 0 0.5% 0 0.5%;
|
|
||||||
margin: 0 1% 0 0;
|
|
||||||
background-color: @background-alt;
|
|
||||||
text-color: @foreground;
|
|
||||||
font: "JetBrainsMono Nerd Font 24";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
background-color: @background-alt;
|
|
||||||
text-color: @foreground;
|
|
||||||
placeholder-color: @foreground;
|
|
||||||
expand: true;
|
|
||||||
horizontal-align: 0;
|
|
||||||
placeholder: "Search";
|
|
||||||
padding: 1% 0 1% 0;
|
|
||||||
blink: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
children: [ prompt, entry ];
|
|
||||||
background-color: @background-bar;
|
|
||||||
text-color: @foreground;
|
|
||||||
expand: false;
|
|
||||||
border: 0% 0% 0% 0%;
|
|
||||||
border-radius: 5px;
|
|
||||||
border-color: @accent;
|
|
||||||
margin: 0% 25% 0% 25%;
|
|
||||||
padding: 0.2% 0.5% 0.2% 0.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
background-color: @background-alt;
|
|
||||||
columns: 3;
|
|
||||||
spacing: 0%;
|
|
||||||
cycle: false;
|
|
||||||
dynamic: true;
|
|
||||||
layout: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
mainbox {
|
|
||||||
background-color: @background-alt;
|
|
||||||
border: 0% 0% 0% 0%;
|
|
||||||
border-radius: 0% 0% 0% 0%;
|
|
||||||
border-color: @accent;
|
|
||||||
children: [ inputbar, listview ];
|
|
||||||
spacing: 8%;
|
|
||||||
padding: 10% 12.5% 10% 12.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
background-color: @background;
|
|
||||||
text-color: inherit;
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text {
|
|
||||||
background-color: @background;
|
|
||||||
text-color: inherit;
|
|
||||||
expand: true;
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
children: [element-icon, element-text];
|
|
||||||
orientation: vertical;
|
|
||||||
background-color: @background-alt;
|
|
||||||
text-color: @foreground;
|
|
||||||
padding: 1.5% 0.5% 1.5% 0.5%;
|
|
||||||
margin: 0.3% 1% 0.3% 1%;
|
|
||||||
font: "JetBrainsMono Nerd Font 20";
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected {
|
|
||||||
background-color: @background-bar;
|
|
||||||
text-color: @foreground;
|
|
||||||
border-radius: 5px;
|
|
||||||
border: 0px;
|
|
||||||
border-color: #90CAF9;
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
options="one
|
|
||||||
two
|
|
||||||
three"
|
|
||||||
theme=${1:-$HOME/.config/rofi/config.rasi}
|
|
||||||
selection=$(echo -e "${options}" | rofi -dmenu -config $theme)
|
|
||||||
case "${selection}" in
|
|
||||||
"one")
|
|
||||||
notify-send "run_rofi.sh" "one";;
|
|
||||||
"two")
|
|
||||||
notify-send "run_rofi.sh" "two";;
|
|
||||||
"three")
|
|
||||||
notify-send "run_rofi.sh" "three";;
|
|
||||||
esac
|
|
||||||
Reference in New Issue
Block a user