Compare commits
4 Commits
a18a03ba0e
...
3d65ba5862
| Author | SHA1 | Date | |
|---|---|---|---|
|
3d65ba5862
|
|||
|
3a4bf7d82d
|
|||
|
db25034891
|
|||
|
ff7ca4e4ba
|
@ -14,7 +14,7 @@
|
||||
(defwindow bar1
|
||||
:monitor 1
|
||||
:geometry (geometry :height "100%"
|
||||
:width "50px"
|
||||
:width "40px"
|
||||
:anchor "center left")
|
||||
:stacking "fg"
|
||||
:exclusive true
|
||||
@ -41,6 +41,7 @@
|
||||
(temperature)
|
||||
(battery)
|
||||
(box :class "thingy" (systray :orientation "v"))
|
||||
(kb_layout)
|
||||
(date)
|
||||
(clock)
|
||||
(pwr)
|
||||
@ -94,7 +95,7 @@
|
||||
(button :class "clickable" :onclick "ba bluetoothctl disconnect" (label :text "---"))
|
||||
)
|
||||
)
|
||||
(label :text "BLT")
|
||||
(label :text "BLU")
|
||||
(revealer :transition "slideup"
|
||||
:reveal {!show_bluetooth}
|
||||
(label :text "---")
|
||||
@ -120,7 +121,7 @@
|
||||
(label :text "VOL")
|
||||
(revealer :transition "slideup"
|
||||
:reveal {!show_volume}
|
||||
(label :text volume_out)
|
||||
(label :text {is_muted ? "MM" : volume_out})
|
||||
)
|
||||
)))
|
||||
|
||||
@ -129,7 +130,7 @@
|
||||
:valign "end"
|
||||
:class "battery thingy"
|
||||
:visible {current_temp != ""}
|
||||
(label :text "TMP")
|
||||
(label :text "TEM")
|
||||
(label :text "${current_temp / 1000}°")
|
||||
))
|
||||
|
||||
@ -151,6 +152,13 @@
|
||||
;(label :text "${bat_charge}%")
|
||||
))
|
||||
|
||||
(defwidget kb_layout []
|
||||
(button :onclick "niri msg action switch-layout next"
|
||||
:hexpand true
|
||||
:class "thingy clickable"
|
||||
(label :text "KBL")
|
||||
))
|
||||
|
||||
(defwidget date []
|
||||
(tooltip :halign "fill"
|
||||
(calendar :class "calendar")
|
||||
@ -197,8 +205,9 @@
|
||||
(defvar show_volume false)
|
||||
(defvar show_bluetooth false)
|
||||
|
||||
(defpoll workspaces :interval "1s" "eww-workspaces")
|
||||
(defpoll workspaces :interval "1s" "wmutils workspaces")
|
||||
(defpoll volume_out :interval "1s" "pamixer --get-volume")
|
||||
(defpoll is_muted :interval "1s" "pamixer --get-mute")
|
||||
(defpoll vpn_status :interval "1s" "mullvad-status")
|
||||
(defpoll current_minute :interval "1s" "date +%M")
|
||||
(defpoll current_hour :interval "1s" "date +%H")
|
||||
|
||||
@ -97,8 +97,9 @@ $env.BROWSER = "firefox"
|
||||
$env.EDITOR = "nvim"
|
||||
$env.DEFMT_LOG = "info"
|
||||
$env.MOZ_ENABLE_WAYLAND = "1"
|
||||
$env.VOLTA_HOME = ($env.HOME + "/.volta")
|
||||
$env.VOLTA_HOME = $"($env.HOME)/.volta"
|
||||
$env.CARGO_TARGET_DIR = $"($env.HOME)/.cargo/target"
|
||||
|
||||
mkdir ~/.cache/starship
|
||||
starship init nu | save -f ~/.cache/starship/init.nu
|
||||
#zoxide init nushell | save -f ~/.cache/zoxide.nu
|
||||
zoxide init nushell | save -f ~/.cache/zoxide.nu
|
||||
|
||||
@ -34,7 +34,8 @@ require("auto-save").setup({
|
||||
enabled = false
|
||||
})
|
||||
|
||||
require("todo-comments").setup()
|
||||
-- FIXME
|
||||
--require("todo-comments").setup()
|
||||
|
||||
|
||||
rust_tools.setup({
|
||||
|
||||
@ -91,7 +91,7 @@ return require('packer').startup(function(use)
|
||||
use 'williamboman/mason-lspconfig.nvim'
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'simrat39/rust-tools.nvim'
|
||||
use 'WhoIsSethDaniel/lualine-lsp-progress.nvim'
|
||||
--use 'WhoIsSethDaniel/lualine-lsp-progress.nvim'
|
||||
|
||||
-- nushell support
|
||||
--use { 'LhKipp/nvim-nu', run = function() vim.fn[':TSInstall nu'] end} }
|
||||
|
||||
@ -25,6 +25,10 @@ require("gruvbox").setup({
|
||||
transparent_mode = false,
|
||||
})
|
||||
|
||||
vim.o.background = "dark" -- or "light" for light mode
|
||||
{% if light %}
|
||||
vim.o.background = "light"
|
||||
{% else %}
|
||||
vim.o.background = "dark"
|
||||
{% end %}
|
||||
|
||||
vim.cmd([[colorscheme gruvbox]])
|
||||
@ -26,3 +26,6 @@
|
||||
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
|
||||
[log]
|
||||
showSignature = true
|
||||
|
||||
Reference in New Issue
Block a user