Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion config/awesome/config/key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ globalkeys = gears.table.join(
),
awful.key({ modkey, }, "q", function () awful.spawn(vscode) end,
{description = "spawn code", group = "launcher"}),
awful.key({ modkey, "Shift" }, "f", function () awful.spawn(fm) end,
{description = "spawn file manager", group = "launcher"}),
awful.key({ modkey, "Shift" }, "d", function () awful.spawn(discord) end,
{description = "spawn discord", group = "launcher"}),
awful.key({ modkey, }, "w", function () awful.spawn(browser) end,
{description = "spawn browser", group = "launcher"}),
awful.key({ modkey, }, "e", function () awful.spawn(music_player) end,
Expand Down Expand Up @@ -96,8 +100,17 @@ globalkeys = gears.table.join(
function() awesome.emit_signal("volume_refresh") end)
end, {description = "mute audio", group = "audio"}),

-- Dark toggle
-- Brightness with brightnessctl
awful.key({}, "XF86MonBrightnessUp", function()
awful.spawn.easy_async_with_shell("brightnessctl set +25%",
function() awesome.emit_signal("brightness_refresh") end)
end, {description = "raise brightness by 25%", group = "brightness"}),
awful.key({}, "XF86MonBrightnessDown", function()
awful.spawn.easy_async_with_shell("brightnessctl set 25%-",
function() awesome.emit_signal("brightness_refresh") end)
end, {description = "lower brightness by 25%", group = "brightness"}),

-- Dark toggle
awful.key({ modkey, }, "x", function ()
if theme == themes[1] then
awful.spawn.with_shell(gears.filesystem.get_configuration_dir() .. "scripts/dark")
Expand Down
2 changes: 1 addition & 1 deletion config/awesome/config/wezterm/dark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local wezterm = require 'wezterm';

return {
front_end = "OpenGL",
font = wezterm.font({'SFMono Nerd Font', stretch="UltraCondensed", weight="Meidum"}),
font = wezterm.font('SFMono Nerd Font', {stretch="UltraCondensed", weight="Medium"}),
font_size = 14,
colors = {
foreground = "#ffffff",
Expand Down
2 changes: 1 addition & 1 deletion config/awesome/config/wezterm/light.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local wezterm = require 'wezterm';

return {
front_end = "OpenGL",
font = wezterm.font({'SFMono Nerd Font', stretch="UltraCondensed", weight="Meidum"}),
font = wezterm.font('SFMono Nerd Font', {stretch="UltraCondensed", weight="Medium"}),
font_size = 14,
colors = {
foreground = "#3e3e3e",
Expand Down
6 changes: 3 additions & 3 deletions config/awesome/scripts/dark
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ sed -i "31s/.*/theme = themes[2]/g" ~/.config/awesome/rc.lua

# Gtk
sed -i "2s/.*/gtk-icon-theme-name=Mkos-Big-Sur-Night/g" ~/.config/gtk-3.0/settings.ini
sed -i "4s/.*/gtk-theme-name=WhiteSur-dark/g" ~/.config/gtk-3.0/settings.ini
sed -i "4s/.*/gtk-theme-name=WhiteSur-Dark/g" ~/.config/gtk-3.0/settings.ini

# Picom
sed -i "7s/.*/shadow-opacity = 0.4;/g" ~/.config/awesome/config/picom.conf

# Spotify
spicetify config color_scheme dark
spicetify update
#spicetify config color_scheme dark
#spicetify update
6 changes: 3 additions & 3 deletions config/awesome/scripts/light
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ sed -i "31s/.*/theme = themes[1]/g" ~/.config/awesome/rc.lua

# Gtk
sed -i "2s/.*/gtk-icon-theme-name=Mkos-Big-Sur/g" ~/.config/gtk-3.0/settings.ini
sed -i "4s/.*/gtk-theme-name=WhiteSur-light/g" ~/.config/gtk-3.0/settings.ini
sed -i "4s/.*/gtk-theme-name=WhiteSur-Light/g" ~/.config/gtk-3.0/settings.ini

# Picom
sed -i "7s/.*/shadow-opacity = 0.05;/g" ~/.config/awesome/config/picom.conf

# Spotify
spicetify config color_scheme white
spicetify update
#spicetify config color_scheme white
#spicetify update
8 changes: 7 additions & 1 deletion config/awesome/scripts/shoot
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

# My script for screenshots, im bad at scripting pls help to make smaller

SCREENSHOTS_DIR=~/Pictures
img="shot_$(date '+%m%d%H%M%S').png"
file="$HOME/Pictures/$img"
file="$SCREENSHOTS_DIR/$img"

# Create directory if needed
if [ ! -d "$SCREENSHOTS_DIR" ]; then
mkdir "$SCREENSHOTS_DIR"
fi

case $1 in
"sel")
Expand Down