This commit is contained in:
elkowar 2024-04-20 14:48:48 +02:00
parent 7747ed7529
commit 8615a48773
Signed by: ElKowar
GPG key ID: 862BA3D7D7760F13
6 changed files with 25 additions and 10 deletions

View file

@ -113,8 +113,7 @@
(defwindow bar_1
:monitor 0
;:monitor [0 "DisplayPort-0" "PHL 345B1C"]
:monitor '["<primary>", "DisplayPort-0", "PHL 345B1C"]'
; :monitor "DisplayPort-0"
:stacking "fg"
:geometry (geometry :x 0 :y 0 :width "40px" :height "100%" :anchor "center left")
@ -123,7 +122,7 @@
(bar :screen 1))
(defwindow bar_2
:monitor "HDMI-A-1"
;:monitor [1 "HDMI-A-1"]
:geometry (geometry :x 0 :y 0 :width "40px" :height "100%" :anchor "top left")
:reserve (struts :distance "40px" :side "left")
(bar :screen 2))

View file

@ -1,4 +1,4 @@
* {
.bar * {
all: unset;
}
@ -16,3 +16,7 @@
}
menuitem window {
background: #282828;
margin: 10px;
}

View file

@ -1,6 +1,6 @@
(deflisten workspaces :initial "[]" "bash ./scripts/get-workspaces")
(deflisten current_workspace :initial "1" "bash ./scripts/get-active-workspace")
(defpoll time :interval "1s" "date '+%d.%m.%Y - %H:%M'")
(defpoll time :interval "1s" "date '+%d.%m.%Y - %H:%M:%S'")
(defwidget workspaces []
(eventbox :halign "start"
@ -23,6 +23,7 @@
"󰍛 ${round(EWW_RAM.used_mem_perc, 0)}%"
"󰻠 ${round(EWW_CPU.avg, 0)}%")))
(defwindow bar
:monitor 0
:geometry (geometry :x 0 :y 0 :width "100%" :height "30px" :anchor "top center")
@ -30,5 +31,13 @@
:exclusive true
(bar))
(defwindow test [a id] :monitor {a} :geometry (geometry :x 0 :y 0 :width "50px" :height "50px" :anchor "top center")
"${a} ${id}")
(defwindow test
:monitor 0
:exclusive true
:geometry (geometry :x 0 :y 0 :width "100%" :height "20px" :anchor "top center")
(box
"${EWW_NET["enp34s0"]}"
(tooltip
"${time}"
(button "test"))))

View file

@ -1,8 +1,10 @@
(local utils (require :dots.utils))
; require('ts_context_commentstring').setup {} and set vim.g.skip_ts_context_commentstring_module = true to speed up loading instead.
(fn setup []
(local configs (require :nvim-treesitter.configs))
(set vim.g.skip_ts_context_commentstring_module true)
(configs.setup
{:ensure_installed ["rust" "fennel" "commonlisp" "vim" "regex" "lua" "bash" "markdown" "markdown_inline"]
; :ensure_installed "maintained"

View file

@ -142,8 +142,8 @@ input "type:keyboard" {
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+Shift+b splith
bindsym $mod+Shift+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
@ -206,4 +206,4 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0
exec eww -c ~/.config/eww-bar open bar_1 &
exec eww -c ~/.config/eww-bar open bar_1 --restart &

View file

@ -142,6 +142,7 @@ fi
if command -v flutter >/dev/null; then
export PATH="$HOME/.pub-cache/bin:$PATH"
fi
[[ -d "$HOME/.deno/bin" ]] && export PATH="$HOME/.deno/bin:$PATH"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!