Improved lock module

master
Mark 2022-11-04 10:23:41 -07:00
parent 35267764b6
commit aa4ebcb292
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
7 changed files with 14 additions and 14 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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;

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

3
modules/lock/dm-tool.bash Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
dm-tool lock

View File

@ -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"

View File

@ -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,
{ {