Improved lock module
parent
35267764b6
commit
aa4ebcb292
|
@ -7,9 +7,6 @@ return {
|
||||||
submenu = conf_dir .. "assets/icons/submenu.svg",
|
submenu = conf_dir .. "assets/icons/submenu.svg",
|
||||||
launcher = conf_dir .. "assets/icons/arch.svg",
|
launcher = conf_dir .. "assets/icons/arch.svg",
|
||||||
|
|
||||||
-- Used for i3lock, MUST be a png.
|
|
||||||
lockicon = conf_dir .. "assets/icons/arch.png",
|
|
||||||
|
|
||||||
music = {
|
music = {
|
||||||
grey = {
|
grey = {
|
||||||
playing = conf_dir .. "assets/icons/music/pause-grey.svg",
|
playing = conf_dir .. "assets/icons/music/pause-grey.svg",
|
||||||
|
|
|
@ -6,6 +6,7 @@ config.simple_widgets = { enabled = true }
|
||||||
config.launcher = { enabled = true }
|
config.launcher = { enabled = true }
|
||||||
config.screenshot = { enabled = true }
|
config.screenshot = { enabled = true }
|
||||||
config.keymap_popup = { enabled = true }
|
config.keymap_popup = { enabled = true }
|
||||||
|
config.lock = { enabled = true, type = "i3lock"}
|
||||||
|
|
||||||
config.core = {
|
config.core = {
|
||||||
wallpaper = "/home/assets/wallpapers/Themed/Stellaris/Gigapixel/City.png",
|
wallpaper = "/home/assets/wallpapers/Themed/Stellaris/Gigapixel/City.png",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
configuration {
|
configuration {
|
||||||
font: "Inter Regular 10";
|
font: "Inter Regular 25";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
icon-theme: "Papirus";
|
icon-theme: "Papirus";
|
||||||
drun-display-format: "{name}";
|
drun-display-format: "{name}";
|
||||||
|
@ -31,8 +31,8 @@ window {
|
||||||
anchor: southwest;
|
anchor: southwest;
|
||||||
x-offset: 4px;
|
x-offset: 4px;
|
||||||
y-offset: -50px;
|
y-offset: -50px;
|
||||||
height: 500px;
|
height: 800px;
|
||||||
width: 400px;
|
width: 800px;
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ prompt {
|
||||||
button {
|
button {
|
||||||
action: "ok";
|
action: "ok";
|
||||||
str: " ";
|
str: " ";
|
||||||
font: "FantasqueSansMono Nerd Font 11";
|
font: "FantasqueSansMono Nerd Font 25";
|
||||||
expand: false;
|
expand: false;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
background-color: @transparent;
|
background-color: @transparent;
|
||||||
|
@ -53,7 +53,7 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
entry {
|
entry {
|
||||||
font: "Inter Regular 11";
|
font: "Inter Regular 25";
|
||||||
background-color: @transparent;
|
background-color: @transparent;
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
expand: true;
|
expand: true;
|
||||||
|
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
dm-tool lock
|
|
@ -1,9 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
icon=$1
|
icon="./arch.png"
|
||||||
tmpbg="/tmp/lockscreen.png"
|
tmpbg="/tmp/lockscreen.png"
|
||||||
tmpic="/tmp/lockscreenicon.png"
|
tmpic="/tmp/lockscreenicon.png"
|
||||||
#(( $# )) && { icon=$1; }
|
|
||||||
|
|
||||||
scrot --overwrite "$tmpbg"
|
scrot --overwrite "$tmpbg"
|
||||||
convert "$icon" -scale 25% "$tmpic"
|
convert "$icon" -scale 25% "$tmpic"
|
|
@ -1,11 +1,11 @@
|
||||||
local script = conf_dir .. "modules/i3lock/lock.fish"
|
|
||||||
script = script .. " "
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
keybinds = gears.table.join(
|
keybinds = gears.table.join(
|
||||||
awful.key( {"Mod4"}, "l",
|
awful.key( {"Mod4"}, "l",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(script .. beautiful.icons.lockicon, false)
|
awful.spawn(
|
||||||
|
conf_dir .. "modules/lock/" .. config.lock.type .. ".bash",
|
||||||
|
false
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
{
|
{
|
Loading…
Reference in New Issue