dotfiles/cg_opts.lua

118 lines
3.3 KiB
Lua
Raw Normal View History

local opts = {}
2023-08-27 21:05:25 +02:00
opts.mzteinit_entries = {
2024-05-17 23:30:21 +02:00
-- TODO: the `which` invocations here are a workaround in case the relevant binaries
-- are installed in a directory that mzteinit adds to $PATH, which it currently doesn't handle.
2024-02-16 17:23:12 +01:00
{ key = "z", label = "river", cmd = { cg.opt.system "which mzteriver" } },
{ key = "h", label = "hyprland", cmd = { "Hyprland" } },
2024-05-17 23:30:21 +02:00
{ key = "s", label = "shell", cmd = { cg.opt.system "which nu" } },
2023-08-27 21:05:25 +02:00
{ key = "l", label = "logout", cmd = { "!quit" } },
{ key = "p", label = "shutdown", cmd = { "systemctl", "poweroff" }, quit = true },
{ key = "r", label = "reboot", cmd = { "systemctl", "reboot" }, quit = true },
}
2023-04-29 00:13:00 +02:00
-- Enable if you have good internet, used for stuff like making
-- streamlink use low-latency mode.
opts.good_internet = true
2023-08-27 17:01:31 +02:00
-- Enable if stuck on garbage hardware. Enables wayland-related workarounds.
opts.nvidia = false
opts.font = "Iosevka NF"
opts.term_font = "IosevkaTerm NFM"
2024-01-15 23:25:48 +01:00
--opts.term = {
-- name = "Wezterm",
-- command = "wezterm",
-- workdir_command = "wezterm-gui start --cwd ",
-- icon_name = "org.wezfurlong.wezterm",
--}
2023-01-26 08:18:52 +01:00
opts.term = {
2024-09-10 19:47:02 +02:00
name = "Ghostty",
command = "ghostty",
workdir_command = "ghostty --working-directory=",
icon_name = "com.mitchellh.ghostty",
2023-01-26 08:18:52 +01:00
}
2023-01-21 19:09:24 +01:00
2024-09-10 19:47:02 +02:00
--opts.term = {
-- name = "foot",
-- command = "foot",
-- workdir_command = "foot --working-directory=",
-- icon_name = "foot",
--}
2023-04-26 14:16:40 +02:00
opts.cursor = {
theme = "LyraQ-cursors",
size = 24,
}
opts.gtk_theme = "catppuccin-mocha-red-standard"
2023-01-26 21:17:16 +01:00
opts.icon_theme = "candy-icons"
opts.commands = {
browser = "openbrowser",
email = "claws-mail",
calculator = "qalculate-gtk",
file_manager = "thunar",
file_manager_daemon = "thunar --daemon",
2023-02-11 13:24:42 +01:00
-- zenity-compatible dialoger
zenity = "yad",
notification_daemon = {
x = "wired",
wl = "mako",
},
2023-07-28 00:57:43 +02:00
screen_lock = string.format("i3lock -ti %s/.local/share/backgrounds/mzte.png", os.getenv "HOME"),
2024-05-29 15:56:16 +02:00
media = {
volume_up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
volume_down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-",
mute_sink = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
mute_source = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
play_pause = "playerctl play-pause",
stop = "playerctl stop",
next = "playerctl next",
prev = "playerctl previous",
},
2024-06-29 21:36:13 +02:00
backlight_up = "light -A 15";
backlight_down = "light -U 15";
2023-01-26 21:17:16 +01:00
}
2023-06-04 19:13:07 +02:00
opts.gamemode = {
on_start = "notify-send 'Gamemode' 'Gamemode Active'",
on_stop = "notify-send 'Gamemode' 'Gamemode Inactive'",
}
2023-07-27 15:30:03 +02:00
opts.dev_dir = os.getenv "HOME" .. "/dev"
opts.catppuccin = {
2024-01-14 17:59:26 +01:00
base = "1e1e2e",
blue = "89b4fa",
crust = "11111b",
flamingo = "f2cdcd",
green = "a6e3a1",
lavender = "b4befe",
mantle = "181825",
maroon = "eba0ac",
mauve = "cba6f7",
overlay0 = "6c7086",
overlay1 = "7f849c",
overlay2 = "9399b2",
peach = "fab387",
pink = "f5c2e7",
red = "f38ba8",
rosewater = "f5e0dc",
sapphire = "74c7ec",
sky = "89dceb",
subtext0 = "a6adc8",
subtext1 = "bac2de",
surface0 = "313244",
surface1 = "45475a",
surface2 = "585b70",
teal = "94e2d5",
text = "cdd6f4",
yellow = "f9e2af",
}
return opts