diff --git a/test/hyprland.conf b/test/hyprland.conf index 7697227..b6ede80 100644 --- a/test/hyprland.conf +++ b/test/hyprland.conf @@ -1,153 +1,12 @@ -monitor=,preferred,auto,1 +$globalvar=9999 -exec-once=$HOME/.config/hypr/autostart - -input { - kb_layout= - kb_variant=ffffff - kb_model= - kb_options= - kb_rules= - - follow_mouse=1 - - touchpad { - natural_scroll=no +general{ + generalconfig = 000000 + nested { + spaces_after_labels_work_too=nested,nested } } -misc{ - -} - -general { - sensitivity=1.0 # for mouse cursor - main_mod=SUPER - - gaps_in=8 - gaps_out=15 - border_size=5 - col.active_border=0xfff5c2e7 - col.inactive_border=0xff45475a - apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse) -} - -decoration { - blur_new_optimizations = true - drop_shadow = true - shadow_range=100 - shadow_render_power=5 - col.shadow= 0x33000000 - col.shadow_inactive=0x22000000 - rounding=15 - blur=0 - blur_size=1 # minimum 1 - blur_passes=1 # minimum 1, more passes = more resource intensive. - # Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts. - # if you want heavy blur, you need to up the blur_passes. - # the more passes, the more you can up the blur_size without noticing artifacts. -} - -animations { - enabled=1 - # bezier=overshot,0.05,0.9,0.1,1.1 - bezier=overshot,0.13,0.99,0.29,1.1 - animation=windows,1,4,overshot,slide - animation=border,1,10,default - animation=fade,1,10,default - animation=workspaces,1,6,overshot,slidevert -} - -dwindle { - pseudotile=1 # enable pseudotiling on dwindle - force_split=0 - col.group_border=0xff89dceb - col.group_border_active=0xfff9e2af -} - -master{ - -} - -gestures { - workspace_swipe=yes - workspace_swipe_fingers=4 -} - -# example window rules -# for windows named/classed as abc and xyz -#windowrule=move 69 420,abc -windowrule=move center,title:^(fly_is_kitty)$ -windowrule=size 800 500,title:^(fly_is_kitty)$ -windowrule=animation slide,title:^(all_is_kitty)$ -windowrule=float,title:^(all_is_kitty)$ -#windowrule=tile,xy -windowrule=tile,title:^(kitty)$ -windowrule=float,title:^(fly_is_kitty)$ -windowrule=float,title:^(clock_is_kitty)$ -windowrule=size 418 234,title:^(clock_is_kitty)$ -#windowrule=pseudo,abc -#windowrule=monitor 0,xyz - -# example binds -bindm=SUPER,mouse:272,movewindow -bindm=SUPER,mouse:273,resizewindow - -bind=SUPER,t,exec,kitty --start-as=fullscreen -o 'font_size=25' --title all_is_kitty -bind=SUPER,RETURN,exec,kitty --title fly_is_kitty -bind=ALT,RETURN,exec,kitty --single-instance -bind=,Print,exec,~/.config/hypr/scripts/screenshot -# bind=SUPER,RETURN,exec,alacritty -bind=SUPER,Q,killactive, -bind=SUPER,M,exit, -bind=SUPER,E,exec,nautilus -bind=SUPER,S,togglefloating, -bind=SUPER,space,exec,wofi --show drun -o DP-3 -bind=SUPER,P,pseudo, - -bind=SUPER,L,exec,~/.config/hypr/scripts/lock - -bind=SUPER,left,movefocus,l -bind=SUPER,right,movefocus,r -bind=SUPER,up,movefocus,u -bind=SUPER,down,movefocus,d - -# bind=CTRL,1,workspace,1 -# bind=CTRL,2,workspace,2 -# bind=CTRL,3,workspace,3 -# bind=CTRL,4,workspace,4 -# bind=CTRL,5,workspace,5 -# bind=CTRL,6,workspace,6 -bind=SUPER,1,workspace,1 -bind=SUPER,2,workspace,2 -bind=SUPER,3,workspace,3 -bind=SUPER,4,workspace,4 -bind=SUPER,5,workspace,5 -bind=SUPER,6,workspace,6 -bind=SUPER,7,workspace,7 -bind=SUPER,8,workspace,8 -bind=SUPER,9,workspace,9 -bind=SUPER,0,workspace,10 - -bind=ALT,1,movetoworkspace,1 -bind=ALT,2,movetoworkspace,2 -bind=ALT,3,movetoworkspace,3 -bind=ALT,4,movetoworkspace,4 -bind=ALT,5,movetoworkspace,5 -bind=ALT,6,movetoworkspace,6 -bind=ALT,7,movetoworkspace,7 -bind=ALT,8,movetoworkspace,8 -bind=ALT,9,movetoworkspace,9 -bind=ALT,0,movetoworkspace,10 - -bind=SUPER,mouse_down,workspace,e+1 -bind=SUPER,mouse_up,workspace,e-1 - -bind=SUPER,g,togglegroup -bind=SUPER,tab,changegroupactive - -# rec -bind=CTRL,1,exec,kitty --title fly_is_kitty --hold cava -bind=CTRL,2,exec,code-insiders -bind=CTRL,3,exec,kitty --single-instance --hold donut.c -bind=CTRL,4,exec,kitty --title clock_is_kitty --hold tty-clock -C5 +another_block{ + another_block_contents=1 +} \ No newline at end of file diff --git a/util/parser/parser.go b/util/parser/parser.go index e2b0ad6..4e0ab51 100644 --- a/util/parser/parser.go +++ b/util/parser/parser.go @@ -1,7 +1,6 @@ package parser import ( - "fmt" "strings" ) @@ -69,16 +68,14 @@ func ParseBlocks(content string) map[string]string { for i, letter := range content { letter := string(letter) if IsLabel(label_buffer, labels, i, content) == true { + firstpass = true // without this the global settings before first block dont show up properly :/ + // removes the label names from the prev block contents if firstpass { - // removes the label names from the prev block contents con := depth[len(depth)-1] depth[len(depth)-1] = con[:len(con)-len(label_buffer)] - con = depth[0] - depth[0] = con[:len(con)-len(label_buffer)] } } if letter == "{" { - firstpass = true // without this the global settings before first block dont show up properly :/ depth_label = append(depth_label, GetLabel(i, content)) label_buffer = "" depth = append(depth, "") @@ -102,9 +99,5 @@ func ParseBlocks(content string) map[string]string { // set the global block blocks["global"] = TrimBlock(depth[0]) - - for label, block := range blocks { - fmt.Println(label + "::\n" + block) - } return blocks }