Skip to content

Instantly share code, notes, and snippets.

@ekickx
Last active October 17, 2021 20:50
Show Gist options
  • Save ekickx/9a100d980ab8564525612b2273a34e8c to your computer and use it in GitHub Desktop.
Save ekickx/9a100d980ab8564525612b2273a34e8c to your computer and use it in GitHub Desktop.
test colorscheme vim
-- Cek nama wm
local nama_wm = vim.fn.system 'wmctrl -m | grep -i name | cut -d " " -f 2'
-- Hapus line break just in case
nama_wm = nama_wm:gsub("[\r\n]", "")
if nama_wm == 'GNOME' then
vim.cmd 'colorscheme blue'
elseif nama_wm == 'wlroots' then
vim.cmd 'colorscheme torte'
elseif nama_wm == 'Xfwm4' then
vim.cmd 'colorscheme darkblue'
elseif nama_wm == 'Openbox' then
vim.cmd 'colorscheme delek'
elseif nama_wm == 'i3' then
vim.cmd 'colorscheme evening'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment