Changed configs to further integrate confgenfs
This commit is contained in:
parent
a8ef3e8272
commit
7eb0424f1a
26 changed files with 212 additions and 118 deletions
5
.bashrc
5
.bashrc
|
@ -1,7 +1,4 @@
|
|||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export QT_SCALE_FACTOR=1.5
|
||||
export EDITOR="nvim"
|
||||
export XDG_CURRENT_DESKTOP=river
|
||||
export EDITOR="<% opt.default_editor %>"
|
||||
|
||||
alias rm='rm -i'
|
||||
alias set-cursor='gsettings set org.gnome.desktop.interface cursor-theme'
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
font=monospace:size=12
|
||||
|
||||
[cursor]
|
||||
color=000000 ccccff
|
||||
|
||||
[colors]
|
||||
alpha=0.7
|
||||
foreground = bbbbbb
|
||||
background = 090a18
|
||||
regular0 = 090a18
|
||||
regular1 = 4D71C0
|
||||
regular2 = 4D71C0
|
||||
regular3 = bfa51a
|
||||
regular4 = 4ab2d7
|
||||
regular5 = 4D71C0
|
||||
regular6 = 4D71C0
|
||||
regular7 = bfa51a
|
||||
bright0 = 2b1329
|
||||
bright1 = faff75
|
||||
bright2 = 60ba80
|
||||
bright3 = de9b1d
|
||||
bright4 = 8ba7ea
|
||||
bright5 = 4D71C0
|
||||
bright6 = 4D71C0
|
||||
bright7 = bfa51a
|
||||
selection-foreground = ffffff
|
||||
selection-background = 4C637A
|
||||
|
||||
urls=43EDC9
|
29
.config/foot/foot.ini.cgt
Normal file
29
.config/foot/foot.ini.cgt
Normal file
|
@ -0,0 +1,29 @@
|
|||
font=<% opt.font_term %>:<! if opt.compositor == "river" then !>size=16<! else !>size=11<! end !>
|
||||
|
||||
[cursor]
|
||||
color=<% opt.term.cursor_foreground %> <% opt.term.cursor_background %>
|
||||
|
||||
[colors]
|
||||
alpha=<% opt.term.alpha %>
|
||||
foreground = <% opt.term.foreground %>
|
||||
background = <% opt.term.background %>
|
||||
regular0 = <% opt.term.regular0 %>
|
||||
regular1 = <% opt.term.regular1 %>
|
||||
regular2 = <% opt.term.regular2 %>
|
||||
regular3 = <% opt.term.regular3 %>
|
||||
regular4 = <% opt.term.regular4 %>
|
||||
regular5 = <% opt.term.regular5 %>
|
||||
regular6 = <% opt.term.regular6 %>
|
||||
regular7 = <% opt.term.regular7 %>
|
||||
bright0 = <% opt.term.bright0 %>
|
||||
bright1 = <% opt.term.bright1 %>
|
||||
bright2 = <% opt.term.bright2 %>
|
||||
bright3 = <% opt.term.bright3 %>
|
||||
bright4 = <% opt.term.bright4 %>
|
||||
bright5 = <% opt.term.bright5 %>
|
||||
bright6 = <% opt.term.bright6 %>
|
||||
bright7 = <% opt.term.bright7 %>
|
||||
selection-foreground = <% opt.term.selection_foreground %>
|
||||
selection-background = <% opt.term.selection_background %>
|
||||
|
||||
urls=<% opt.term.urls %>
|
16
.config/gtk-3.0/gtk.css
Normal file
16
.config/gtk-3.0/gtk.css
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* No (default) titlebar on wayland */
|
||||
headerbar.titlebar.default-decoration {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
margin: 0 0 -17px 0;
|
||||
border: 0;
|
||||
min-height: 0;
|
||||
font-size: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* rm -rf window shadows */
|
||||
window.csd, /* gtk4? */
|
||||
window.csd decoration { /* gtk3 */
|
||||
box-shadow: none;
|
||||
}
|
6
.config/gtk-3.0/settings.ini.cgt
Normal file
6
.config/gtk-3.0/settings.ini.cgt
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Settings]
|
||||
gtk-theme-name=<% opt.gtk_theme %>
|
||||
gtk-icon-theme-name=<% opt.icon_theme %>
|
||||
gtk-font-name=<% opt.term.font %> 12
|
||||
gtk-cursor-theme-name=<% opt.cursor.theme %>
|
||||
gtk-cursor-theme-size=0
|
14
.config/gtk-4.0/gtk.css
Normal file
14
.config/gtk-4.0/gtk.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
headerbar.titlebar.default-decoration {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
margin: 0 0 -17px 0;
|
||||
border: 0;
|
||||
min-height: 0;
|
||||
font-size: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
window.csd,
|
||||
window.csd decoration {
|
||||
box-shadow: none;
|
||||
}
|
5
.config/gtk-4.0/settings.ini.cgt
Normal file
5
.config/gtk-4.0/settings.ini.cgt
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Settings]
|
||||
gtk-theme-name=<% opt.term.font %>
|
||||
gtk-icon-theme-name=<% opt.icon_theme %> 12
|
||||
gtk-cursor-theme-name=<% opt.cursor.theme %>
|
||||
gtk-cursor-theme-size=0
|
|
@ -1,22 +1,22 @@
|
|||
monitor=,preferred,auto,auto
|
||||
|
||||
exec-once = echo 'cg.opt.compositor = "hyrland"' >~/confgenfs/_cgfs/eval
|
||||
exec-once = waybar
|
||||
exec-once = hyprpaper
|
||||
exec-once = aestuarium
|
||||
exec-once = swayidle -w timeout 150 'swaylock -f' timeout 200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
||||
exec-once = gsettings set org.gnome.desktop.interface cursor-theme darkbolt-cursor
|
||||
exec-once = gsettings set org.gnome.desktop.interface cursor-theme <% opt.icon_theme %>
|
||||
exec-once = gsettings set org.gnome.desktop.interface text-scaling-factor 1.0
|
||||
|
||||
$terminal = foot
|
||||
$fileManager = thunar
|
||||
$browser = firefox
|
||||
$browser = brave
|
||||
$menu = rofi -show drun
|
||||
$launcher = rofi -show run
|
||||
|
||||
#scripts
|
||||
$rwallpaper = ~/scripts/r_wallpaper.sh
|
||||
|
||||
# Some default env vars.b
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
|
||||
env = HYPRCURSOR_THEME,<% opt.cursor.theme %>
|
||||
env = HYPRCURSOR_SIZE,<% opt.cursor.size %>
|
||||
env = GTK_THEME,<% opt.gtk_theme %>
|
||||
env = GDK_BACKEND=wayland,x11
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
|
@ -32,7 +32,7 @@ input {
|
|||
natural_scroll = yes
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
sensitivity = 0
|
||||
}
|
||||
|
||||
general {
|
||||
|
@ -70,8 +70,8 @@ animations {
|
|||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
pseudotile = yes
|
||||
preserve_split = yes
|
||||
}
|
||||
|
||||
master {
|
||||
|
@ -90,13 +90,12 @@ device:epic-mouse-v1 {
|
|||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
|
||||
windowrulev2 = nomaximizerequest, class:.*
|
||||
|
||||
|
||||
$mainMod = SUPER
|
||||
$mainModS = SUPER SHIFT
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, RETURN, exec, $terminal
|
||||
bind = $mainMod, C, killactive,
|
||||
bind = $mainMod, M, exit,
|
||||
|
@ -106,10 +105,12 @@ bind = $mainMod, V, togglefloating,
|
|||
bind = $mainMod, F, fullscreen,
|
||||
bind = $mainMod, T, fullscreen, 1 # maximize
|
||||
bind = $mainMod, SPACE, exec, $menu
|
||||
bind = $mainModS, SPACE, exec, $launcher
|
||||
bind = $mainMod, B, exec, $browser
|
||||
bind = $mainModS, R, exec, $rwallpaper
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, W, exec, wallpickr
|
||||
bind = $mainMod, N, exec, nheko
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
|
@ -1,7 +0,0 @@
|
|||
$wallpaper = $HOME/dev/wallpapers/noelle_silva.png
|
||||
|
||||
preload = $wallpaper
|
||||
|
||||
wallpaper = ,contain:$wallpaper
|
||||
splash = false
|
||||
ipc = on
|
5
.config/hypr/hyprpaper.conf.cgt
Normal file
5
.config/hypr/hyprpaper.conf.cgt
Normal file
|
@ -0,0 +1,5 @@
|
|||
preload = <% opt.wallpaper %>
|
||||
|
||||
wallpaper = ,contain:<% opt.wallpaper %>
|
||||
splash = false
|
||||
ipc = on
|
|
@ -2,5 +2,7 @@ require'colorizer'.setup {
|
|||
'ini',
|
||||
'dosini',
|
||||
'css',
|
||||
'cgt',
|
||||
'html',
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,13 @@ require('mason-lspconfig').setup({
|
|||
},
|
||||
})
|
||||
|
||||
lsp.set_sign_icons({
|
||||
error = '✘',
|
||||
warn = '▲',
|
||||
hint = '⚑',
|
||||
info = '»'
|
||||
})
|
||||
|
||||
local cmp = require('cmp')
|
||||
|
||||
cmp.setup({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "java", "zig", "javascript", "typescript", "c", "lua", "vim", "vimdoc", "query" },
|
||||
ensure_installed = { "all" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
riverctl unmap normal Super Return
|
||||
riverctl map normal Super Return spawn 'foot'
|
||||
riverctl map normal Super B spawn 'firefox'
|
||||
riverctl map normal Super B spawn 'brave'
|
||||
riverctl map normal Super E spawn 'thunar'
|
||||
riverctl map normal Super W spawn 'wallpickr'
|
||||
riverctl map normal Super Space spawn 'rofi -show drun'
|
||||
|
@ -38,10 +38,10 @@ riverctl map normal Super+Shift H send-layout-cmd rivertile "main-count +1"
|
|||
riverctl map normal Super+Shift L send-layout-cmd rivertile "main-count -1"
|
||||
|
||||
# Super+Alt+{H,J,K,L} to move views
|
||||
riverctl map -repeat normal Super+Alt H move left 50
|
||||
riverctl map -repeat normal Super+Alt J move down 50
|
||||
riverctl map -repeat normal Super+Alt K move up 50
|
||||
riverctl map -repeat normal Super+Alt L move right 50
|
||||
riverctl map -repeat normal Super+Alt H move left 10
|
||||
riverctl map -repeat normal Super+Alt J move down 10
|
||||
riverctl map -repeat normal Super+Alt K move up 10
|
||||
riverctl map -repeat normal Super+Alt L move right 10
|
||||
|
||||
# Super+Alt+Control+{H,J,K,L} to snap views to screen edges
|
||||
riverctl map normal Super+Alt+Control H snap left
|
||||
|
@ -50,10 +50,10 @@ riverctl map normal Super+Alt+Control K snap up
|
|||
riverctl map normal Super+Alt+Control L snap right
|
||||
|
||||
# Super+Alt+Shift+{H,J,K,L} to resize views
|
||||
riverctl map -repeat normal Super+Alt+Shift h resize horizontal -50
|
||||
riverctl map -repeat normal Super+Alt+Shift j resize vertical 50
|
||||
riverctl map -repeat normal Super+Alt+Shift k resize vertical -50
|
||||
riverctl map -repeat normal Super+Alt+Shift l resize horizontal 50
|
||||
riverctl map -repeat normal Super+Alt+Shift h resize horizontal -10
|
||||
riverctl map -repeat normal Super+Alt+Shift j resize vertical 10
|
||||
riverctl map -repeat normal Super+Alt+Shift k resize vertical -10
|
||||
riverctl map -repeat normal Super+Alt+Shift l resize horizontal 10
|
||||
|
||||
# Super + Left Mouse Button to move views
|
||||
riverctl map-pointer normal Super BTN_LEFT move-view
|
||||
|
@ -109,8 +109,8 @@ for mode in normal locked
|
|||
do
|
||||
riverctl map $mode None XF86Eject spawn 'eject -T'
|
||||
|
||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
|
||||
riverctl map $mode None XF86AudioLowerVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ -5%'
|
||||
riverctl map -repeat $mode None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +1%'
|
||||
riverctl map -repeat $mode None XF86AudioLowerVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ -1%'
|
||||
riverctl map $mode None XF86AudioMute spawn 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||
|
||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||
|
@ -126,13 +126,18 @@ done
|
|||
riverctl map normal Super Print spawn 'obs --startrecording --minimize-to-tray'
|
||||
riverctl map normal Super None spawn "grim $HOME/media/images/screenshot/$(date +'%screenshot.jpeg') | wl-copy"
|
||||
|
||||
# pre start up scripts
|
||||
echo 'cg.opt.compositor = "river"' >~/confgenfs/_cgfs/eval
|
||||
|
||||
# start up scripts
|
||||
waybar &
|
||||
aestuarium &
|
||||
swayidle -w timeout 150 ~/lock_screen_rand_wp.sh &
|
||||
swayidle -w timeout 150 ~/lock_screen_rand_wp.sh timeout 200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' &
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Breeze-Dark" &&
|
||||
gsettings set org.gnome.desktop.interface cursor-theme darkbolt-cursor &&
|
||||
gsettings set org.gnome.desktop.wm.preferences button-layout ""
|
||||
gsettings set org.gnome.desktop.interface font-name "Iosevka NFM 12"
|
||||
gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
|
||||
|
||||
# Set background and border color
|
||||
riverctl background-color 0x10002f
|
||||
|
|
|
@ -24,7 +24,7 @@ window {
|
|||
border: @w-border;
|
||||
border-color: @w-border-color;
|
||||
padding: @w-padding;
|
||||
icon-theme: "Surn-Arch-Blue";
|
||||
icon-theme: "<% opt.icon_theme%>";
|
||||
}
|
||||
|
||||
prompt {
|
||||
|
@ -37,7 +37,7 @@ inputbar {
|
|||
}
|
||||
|
||||
entry {
|
||||
placeholder: "Tell me what to open";
|
||||
placeholder: "Tell me what to open...";
|
||||
text-color: @fg-color;
|
||||
placeholder-color: @fgp-color;
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
* {
|
||||
font: "HeavyData Nerd Font 13";
|
||||
font: "<% opt.font %> 12";
|
||||
g-spacing: 10px;
|
||||
g-margin: 0;
|
||||
b-color: #000000FF;
|
||||
|
@ -9,7 +9,7 @@
|
|||
hl-color: #FFFFFFFF;
|
||||
hlt-color: #000000FF;
|
||||
alt-color: #000010FF;
|
||||
wbg-color: #051020CC;
|
||||
wbg-color: #<% opt.term.background %>CC;
|
||||
w-border: 2px solid;
|
||||
w-border-color: #1080eeee;
|
||||
w-padding: 12px;
|
|
@ -2,7 +2,7 @@ indicator
|
|||
ignore-empty-password
|
||||
indicator-thickness=2
|
||||
indicator-radius=100
|
||||
image=~/dev/wallpapers/rem_wallpaper.jpeg
|
||||
image=<% opt.wallpapers_path %>/rem_wallpaper.jpeg
|
||||
clock
|
||||
effect-blur=7x5
|
||||
effect-vignette=0.5:0.5
|
||||
|
@ -13,4 +13,4 @@ key-hl-color=bb60ff
|
|||
text-color=ffffff
|
||||
grace=2
|
||||
fade-in=0.5
|
||||
font=HeavyData Nerd Font
|
||||
font=<% opt.font %>
|
|
@ -3,7 +3,7 @@ Description=ConfgenFS
|
|||
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart="/home/coding-agent/.local/bin/confgenfs" "%h/dev/dotfiles/confgen.lua" "%h/confgenfs"
|
||||
ExecStart="%h/.local/bin/confgenfs" "%h/dev/dotfiles/confgen.lua" "%h/confgenfs"
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
path=/home/coding-agent/dev/wallpapers/
|
1
.config/wallpickr/config.ini.cgt
Normal file
1
.config/wallpickr/config.ini.cgt
Normal file
|
@ -0,0 +1 @@
|
|||
path=<% opt.wallpapers_path %>
|
|
@ -2,7 +2,11 @@
|
|||
"spacing": 2,
|
||||
"layer": "top",
|
||||
"modules-left": [
|
||||
<! if opt.compositor == "river" then !>
|
||||
"river/tags"
|
||||
<! else !>
|
||||
"hyprland/workspaces"
|
||||
<! end !>
|
||||
],
|
||||
"modules-right": [
|
||||
"network",
|
||||
|
@ -50,7 +54,7 @@
|
|||
"clock": {
|
||||
"format": "{:%H:%M}",
|
||||
"format-alt": "{:%d %B %Y}",
|
||||
"tooltip-format": "<span font='HeavyData Nerd Font Bold 13'><big>{:%d %B}</big>\n<tt><small>{calendar}</small></tt></span>",
|
||||
"tooltip-format": "<span font='<% opt.font %> Bold 12'><big>{:%d %B}</big>\n<tt><small>{calendar}</small></tt></span>",
|
||||
"today-format": "<span color='#fefeaa'><b><u>{}</u></b></span>",
|
||||
"format-calendar": "<span color='#ecc6d9'><b>{}</b></span>",
|
||||
"actions": {
|
|
@ -3,7 +3,7 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "HeavyData Nerd Font";
|
||||
font-family: "<% opt.font %>";
|
||||
min-height: 18px;
|
||||
transition: transform 250ms ease-in-out;
|
||||
}
|
||||
|
@ -78,8 +78,7 @@ window#waybar.hidden {
|
|||
#tray, #window,
|
||||
#network
|
||||
{
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
padding: 8px;
|
||||
transition: transform 250ms ease-in-out;
|
||||
color: @text;
|
||||
background: @base;
|
5
.gtkrc-2.0.cgt
Normal file
5
.gtkrc-2.0.cgt
Normal file
|
@ -0,0 +1,5 @@
|
|||
gtk-icon-theme-name="<% opt.icon_theme %>"
|
||||
gtk-cursor-theme-name="<% opt.cursor.theme %>"
|
||||
gtk-theme-name="<% opt.gtk_theme %>"
|
||||
gtk-font-name="<% opt.font %> 12"
|
||||
|
53
cg_opts.lua
53
cg_opts.lua
|
@ -1,19 +1,52 @@
|
|||
local opts = {}
|
||||
local opt = {}
|
||||
|
||||
opts.font = "HeavyData Nerd Font"
|
||||
opts.font_term = "Iosevka NFM"
|
||||
opts.font_size = "12"
|
||||
opt.default_editor = "nvim"
|
||||
|
||||
opts.gtk_theme = "Breeze-Dark"
|
||||
opts.icon_theme = "Surn-Arch-Blue"
|
||||
opt.font = "HeavyData Nerd Font"
|
||||
opt.font_term = "Iosevka NFM"
|
||||
opt.font_size = "12"
|
||||
|
||||
opts.scripts_folder = os.getenv("HOME") .. "/scripts"
|
||||
opt.gtk_theme = "Breeze-Dark"
|
||||
opt.icon_theme = "Surn-Arch-Blue"
|
||||
|
||||
opts.cursor = {
|
||||
opt.scripts_folder = os.getenv("HOME") .. "/scripts"
|
||||
|
||||
opt.cursor = {
|
||||
theme = "darkbolt-cursor",
|
||||
size = 24,
|
||||
}
|
||||
|
||||
opts.wallpaper = os.getenv("HOME") .. "/dev/wallpapers/aqua.png"
|
||||
opt.wallpapers_path = os.getenv("HOME") .. "/dev/wallpapers"
|
||||
opt.wallpaper = opt.wallpapers_path .. "/aqua.png"
|
||||
|
||||
return opts
|
||||
opt.term = {
|
||||
font = "Iosevka NFM",
|
||||
alpha = 0.7,
|
||||
foreground = "bbbbbb",
|
||||
background = "090a18",
|
||||
regular0 = "090a18",
|
||||
regular1 = "f4fa8c",
|
||||
regular2 = "f4fa8c",
|
||||
regular3 = "bfa51a",
|
||||
regular4 = "4ab2d7",
|
||||
regular5 = "f4fa8c",
|
||||
regular6 = "f4fa8c",
|
||||
regular7 = "bfa51a",
|
||||
bright0 = "2b1329",
|
||||
bright1 = "faff75",
|
||||
bright2 = "60ba80",
|
||||
bright3 = "de9b1d",
|
||||
bright4 = "8ba7ea",
|
||||
bright5 = "f4fa8c",
|
||||
bright6 = "f4fa8c",
|
||||
bright7 = "bfa51a",
|
||||
selection_foreground = "ffffff",
|
||||
selection_background = "4C637A",
|
||||
urls = "43EDC9",
|
||||
cursor_foreground = "000000",
|
||||
cursor_background = "ccccff",
|
||||
border_focused = "1080ee",
|
||||
border_unfocused = "595959"
|
||||
}
|
||||
|
||||
return opt
|
||||
|
|
54
confgen.lua
54
confgen.lua
|
@ -1,5 +1,6 @@
|
|||
cg.addPath(".config")
|
||||
--cg.addPath("scripts")
|
||||
cg.addPath("scripts")
|
||||
cg.addFile(".gtkrc-2.0")
|
||||
|
||||
cg.opt = require "cg_opts"
|
||||
|
||||
|
@ -13,22 +14,23 @@ cg.onDone(function(errors)
|
|||
cg.opt.system("gsettings set org.gnome.desktop.interface cursor-theme " .. cg.opt.cursor.theme)
|
||||
cg.opt.system("gsettings set org.gnome.desktop.interface cursor-size " .. cg.opt.cursor.size)
|
||||
cg.opt.system('gsettings set org.gnome.desktop.interface font-name "' .. cg.opt.font_term .. " " ..cg.opt.font_size)
|
||||
cg.opt.system('gsettings set org.gnome.desktop.interface text-scaling-factor 1.5')
|
||||
if cg.opt.wayland_compositor == "river" then
|
||||
if cg.opt.compositor == "river" then
|
||||
cg.opt.system('gsettings set org.gnome.desktop.interface text-scaling-factor 1.5')
|
||||
cg.opt.system 'gsettings set org.gnome.desktop.wm.preferences button-layout ""'
|
||||
else
|
||||
cg.opt.system "gsettings reset org.gnome.desktop.wm.preferences button-layout"
|
||||
end
|
||||
cg.opt.system('export GTK_THEME="'.. cg.opt.gtk_theme ..'"')
|
||||
end
|
||||
|
||||
-- builds the zig scripts
|
||||
-- local cmd = "ls -l " .. cg.opt.scripts_folder .. " | grep '^d' | awk '{print $9}'"
|
||||
-- local handle = io.popen(cmd)
|
||||
-- for folder in handle:lines() do
|
||||
-- local abs_path = cg.opt.scripts_folder .. folder
|
||||
-- cg.opt.buildZigScript(abs_path)
|
||||
-- end
|
||||
-- handle:close()
|
||||
local cmd = "ls -l " .. cg.opt.scripts_folder .. " | grep '^d' | awk '{print $9}'"
|
||||
local handle = io.popen(cmd)
|
||||
for folder in handle:lines() do
|
||||
local abs_path = cg.opt.scripts_folder .. folder
|
||||
cg.opt.buildZigScript(abs_path)
|
||||
end
|
||||
handle:close()
|
||||
end)
|
||||
|
||||
cg.opt.system = function(cmd)
|
||||
|
@ -40,22 +42,22 @@ cg.opt.system = function(cmd)
|
|||
return data
|
||||
end
|
||||
|
||||
--cg.opt.buildZigScript = function(path)
|
||||
-- local build_path = path .. "/build.zig"
|
||||
-- local cmd = "zig build --build-file " .. build_path .. " -Doptimize=ReleaseFast -p ~/.local/"
|
||||
--
|
||||
-- local handle = io.popen(cmd)
|
||||
-- if handle == nil then
|
||||
-- error("Failed to spawn process" .. cmd)
|
||||
-- end
|
||||
-- local result = handle:read("*a")
|
||||
-- local success, _, _ = handle:close()
|
||||
-- if success then
|
||||
-- print("built successfully")
|
||||
-- else
|
||||
-- print("build failed: " .. result)
|
||||
-- end
|
||||
--end
|
||||
cg.opt.buildZigScript = function(path)
|
||||
local build_path = path .. "/build.zig"
|
||||
local cmd = "zig build --build-file " .. build_path .. " -Doptimize=ReleaseFast -p ~/.local/"
|
||||
|
||||
local handle = io.popen(cmd)
|
||||
if handle == nil then
|
||||
error("Failed to spawn process" .. cmd)
|
||||
end
|
||||
local result = handle:read("*a")
|
||||
local success, _, _ = handle:close()
|
||||
if success then
|
||||
print("built successfully")
|
||||
else
|
||||
print("build failed: " .. result)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
cg.opt.setCurrentWaylandCompositor = function(comp)
|
||||
|
|
Loading…
Reference in a new issue