mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 21:52:23 +00:00
Compare commits
No commits in common. "83395c28d9111fd4461972846243aee58b473ba0" and "3b88072585cf6ed58ad421931d246a43a3416b81" have entirely different histories.
83395c28d9
...
3b88072585
10 changed files with 91 additions and 853 deletions
|
@ -1,48 +1,48 @@
|
|||
[user]
|
||||
email = dev@elkowar.dev
|
||||
name = elkowar
|
||||
email = dev@elkowar.dev
|
||||
name = elkowar
|
||||
[include]
|
||||
path = ~/.gitconfig.local
|
||||
path = ~/.gitconfig.local
|
||||
[credential]
|
||||
helper = store
|
||||
helper = store
|
||||
[core]
|
||||
autocrlf = input
|
||||
; {# if command_available("delta") #}
|
||||
;<yolk> pager = delta
|
||||
autocrlf = input
|
||||
; {# if command_available("delta") #}
|
||||
;<yolk> pager = delta
|
||||
[pull]
|
||||
rebase = false
|
||||
rebase = false
|
||||
[github]
|
||||
user = ElKowar
|
||||
user = ElKowar
|
||||
|
||||
;[diff]
|
||||
;external = "difft"
|
||||
;external = "difft"
|
||||
|
||||
|
||||
[delta]
|
||||
syntax-theme = gruvbox
|
||||
features = side-by-side line-numbers decorations navigate
|
||||
syntax-theme = gruvbox
|
||||
features = side-by-side line-numbers decorations navigate
|
||||
|
||||
[delta "line-numbers"]
|
||||
line-numbers-left-style = cyan
|
||||
line-numbers-left-style = cyan
|
||||
|
||||
[init]
|
||||
defaultBranch = master
|
||||
defaultBranch = master
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[commit]
|
||||
gpgsign = true
|
||||
gpgsign = true
|
||||
[alias]
|
||||
c = commit --verbose
|
||||
s = status -s
|
||||
d = diff
|
||||
ds = diff --stat
|
||||
dc = diff --cached
|
||||
dn = diff --numstat
|
||||
ss = status
|
||||
a = add
|
||||
c = commit --verbose
|
||||
s = status -s
|
||||
d = diff
|
||||
ds = diff --stat
|
||||
dc = diff --cached
|
||||
dn = diff --numstat
|
||||
ss = status
|
||||
a = add
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
default = current
|
||||
autoSetupRemote = true
|
||||
default = current
|
||||
|
|
|
@ -1,90 +0,0 @@
|
|||
# BACKGROUND
|
||||
background {
|
||||
monitor =
|
||||
path = ~/wallpapers/green_leaves.jpg
|
||||
blur_passes = 3
|
||||
blur_size = 5
|
||||
#contrast = 0.8916
|
||||
#brightness = 0.8172
|
||||
#vibrancy = 0.1696
|
||||
#vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
# GENERAL
|
||||
general {
|
||||
# no_fade_in = true
|
||||
hide_cursor = true
|
||||
grace = 20
|
||||
enable_fingerprint = true
|
||||
|
||||
}
|
||||
|
||||
# Time
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME
|
||||
#text = cmd[update:1000] echo "<span>$(date +"%H:%M")</span>"
|
||||
color = rgba(255, 255, 255, 1)
|
||||
font_size = 200
|
||||
font_family = Alfa Slab One
|
||||
#position = -80, 230
|
||||
position = -00, 50
|
||||
halign = center
|
||||
valign = center
|
||||
text_align = center
|
||||
}
|
||||
# Time-Hour
|
||||
#label {
|
||||
#monitor =
|
||||
#text = cmd[update:1000] echo "<span>$(date +"%H")</span>"
|
||||
#color = rgba(255, 255, 255, 1)
|
||||
#font_size = 200
|
||||
#font_family = Alfa Slab One
|
||||
#position = -80, 230
|
||||
#halign = center
|
||||
#valign = center
|
||||
#}
|
||||
|
||||
## Time-Minute
|
||||
#label {
|
||||
#monitor =
|
||||
#text = cmd[update:1000] echo "<span>$(date +"%M")</span>"
|
||||
#color = rgba(142, 192, 124, 1)
|
||||
#font_size = 200
|
||||
#font_family = Alfa Slab One
|
||||
#position = 10, 70
|
||||
#halign = center
|
||||
#valign = center
|
||||
#}
|
||||
|
||||
# Day-Month-Date
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo -e "$(date +"%A, %d %B")"
|
||||
color = rgba(255, 255, 255, 1)
|
||||
font_size = 22
|
||||
font_family = Cascadia Code NF Bold
|
||||
position = 0, -110
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# INPUT FIELD
|
||||
input-field {
|
||||
monitor =
|
||||
size = 250, 60
|
||||
outline_thickness = 0
|
||||
outer_color = rgba(21, 21, 21, 0.95)
|
||||
dots_size = 0.1 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 1 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
inner_color = rgba(21, 21, 21, 0.95)
|
||||
font_color = rgba(200, 200, 200, 1)
|
||||
fade_on_empty = false
|
||||
placeholder_text = <span face="Cascadia Code NF" foreground="##8da3b9"> $USER</span>
|
||||
hide_input = false
|
||||
position = 0, -200
|
||||
halign = center
|
||||
valign = center
|
||||
zindex = 10
|
||||
}
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
(defcfg
|
||||
linux-dev /dev/input/by-path/platform-i8042-serio-0-event-kbd
|
||||
;; fallthrough true
|
||||
fallthrough true
|
||||
)
|
||||
|
||||
(defsrc
|
||||
|
@ -27,9 +27,9 @@
|
|||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup
|
||||
@tab q w e r t @cy @cu @ci @co @cp [ + ret del end pgdn
|
||||
@cps @ca @cs @cd @cf g @ch @cj @ck @cl @cscln ' \
|
||||
@cps @ca @cs @cd @cf g @ch @cj k @cl scln ' \
|
||||
lsft 102d z x c v b n m , . / rsft up
|
||||
lctl lmet lalt spc bspc ralt left down rght
|
||||
lctl lmet lalt spc ralt ralt left down rght
|
||||
)
|
||||
|
||||
(defalias
|
||||
|
@ -44,9 +44,7 @@
|
|||
ch (chord chords h)
|
||||
ci (chord chords i)
|
||||
cj (chord chords j)
|
||||
ck (chord chords k)
|
||||
cl (chord chords l)
|
||||
cscln (chord chords scln)
|
||||
)
|
||||
|
||||
(defchords chords 100
|
||||
|
@ -62,52 +60,35 @@
|
|||
(u) u
|
||||
(o) o
|
||||
(p) p
|
||||
(k) k
|
||||
(scln) scln
|
||||
;;(y p) (macro = S-.)
|
||||
(i o p) @uml-u
|
||||
(k l scln) @uml-o
|
||||
(y p) (macro = S-.)
|
||||
(u i o) @uml-u
|
||||
(i o p) @uml-o
|
||||
(a s d) @uml-a
|
||||
(s d f) @uml-s
|
||||
(u i o p) @uml-U
|
||||
(j k l scln) @uml-O
|
||||
(a s d f) @uml-A
|
||||
|
||||
(h j) (macro S-scln S-scln)
|
||||
;;(j i) (macro - S-.)
|
||||
(j i) (macro - S-.)
|
||||
(j l) C-bspc)
|
||||
|
||||
(defalias
|
||||
tab tab
|
||||
cps (tap-hold-release 200 200 esc (layer-toggle symbols))
|
||||
;;cps (tap-hold-release 200 200 esc lctrl)
|
||||
;;tab (tap-hold-release 200 200 tab (layer-toggle symbols))
|
||||
;;tab (tap-hold-release 200 200 tab (layer-toggle umls))
|
||||
;;s-sft (tap-hold-release 150 150 s lsft)
|
||||
;;l-sft (tap-hold-release 150 150 l lsft)
|
||||
|
||||
;;uml-a (macro ralt S-apos a)
|
||||
;;uml-o (macro ralt S-apos o)
|
||||
;;uml-u (macro ralt S-apos u)
|
||||
;;uml-s (macro ralt s s)
|
||||
uml-a (unicode ä)
|
||||
uml-o (unicode ö)
|
||||
uml-u (unicode ü)
|
||||
uml-s (unicode ß)
|
||||
uml-A (unicode Ä)
|
||||
uml-O (unicode Ö)
|
||||
uml-U (unicode Ü)
|
||||
tab (tap-hold-release 200 200 tab (layer-toggle umls))
|
||||
s-sft (tap-hold-release 150 150 s lsft)
|
||||
l-sft (tap-hold-release 150 150 l lsft)
|
||||
|
||||
uml-a (macro ralt S-apos a)
|
||||
uml-o (macro ralt S-apos o)
|
||||
uml-u (macro ralt S-apos u)
|
||||
uml-s (macro ralt s s)
|
||||
)
|
||||
|
||||
|
||||
|
||||
(deflayer symbols
|
||||
lrld _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ S-1 S-apos / \ _ S-[ [ ] S-] _ S-8 _ _ _ _
|
||||
_ home S-4 S-9 S-0 end left down up rght S-7 S-5 _
|
||||
_ _ S-\ del S-/ S-` _ = S-3 ralt _ _ _ _
|
||||
_ _ S-\ del S-/ S-` _ = S-3 bspc _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _
|
||||
)
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// vim:set ft=kdl:
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
|
@ -11,20 +10,13 @@ input {
|
|||
}
|
||||
touchpad {
|
||||
dwt
|
||||
dwtp
|
||||
tap
|
||||
natural-scroll
|
||||
// accel-speed 0.2
|
||||
|
||||
scroll-factor 0.7
|
||||
}
|
||||
mouse {
|
||||
accel-speed -0.1
|
||||
}
|
||||
trackpoint {
|
||||
accel-speed -0.1
|
||||
//accel-speed -0.1
|
||||
}
|
||||
//warp-mouse-to-focus
|
||||
focus-follows-mouse max-scroll-amount="20%"
|
||||
|
||||
|
@ -32,53 +24,38 @@ input {
|
|||
}
|
||||
|
||||
cursor {
|
||||
xcursor-size 32 // {< rnum(if device.laptop() then 12 else 32) >}
|
||||
xcursor-theme "phinger-cursors-light"
|
||||
xcursor-size 12
|
||||
}
|
||||
|
||||
environment {
|
||||
DISPLAY ":0"
|
||||
XDG_SESSION_TYPE "wayland"
|
||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||
// GDK_BACKEND "x11"
|
||||
}
|
||||
|
||||
// {% if device.thinkix() %}
|
||||
//<yolk> output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" {
|
||||
//<yolk> mode "3440x1440@60"
|
||||
//<yolk> scale 1
|
||||
//<yolk> transform "normal"
|
||||
//<yolk> position x=0 y=0
|
||||
//<yolk> }
|
||||
|
||||
//<yolk> output "HDMI-A-1" {
|
||||
//<yolk> mode "1920x1080"
|
||||
//<yolk> scale 1
|
||||
//<yolk> position x=0 y=0
|
||||
//<yolk> //off
|
||||
//<yolk> }
|
||||
|
||||
//<yolk> output "eDP-1" {
|
||||
//<yolk> mode "1920x1080@60"
|
||||
//<yolk> scale 1.0
|
||||
//<yolk> transform "normal"
|
||||
//<yolk> position x=0 y=1440
|
||||
//<yolk> }
|
||||
|
||||
// {% end %}
|
||||
|
||||
//output "DP-4" {
|
||||
//mode "2560x1440"
|
||||
//scale 1
|
||||
//position x=0 y=0
|
||||
//off
|
||||
//}
|
||||
|
||||
output "DP-2" {
|
||||
mode "3440x1440@99.982"
|
||||
//variable-refresh-rate
|
||||
scale 1
|
||||
transform "normal"
|
||||
position x=2560 y=0
|
||||
//position x=1440 y=0
|
||||
}
|
||||
|
||||
output "HDMI-A-1" {
|
||||
mode "2560x1440"
|
||||
scale 1
|
||||
position x=0 y=0
|
||||
//transform "270"
|
||||
}
|
||||
|
||||
layout {
|
||||
gaps 16
|
||||
// center-focused-column "always" // - "never", "always" "on-overflow"
|
||||
center-focused-column "on-overflow" // - "never", "always" "on-overflow"
|
||||
// always-center-single-column
|
||||
always-center-single-column
|
||||
preset-column-widths {
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
|
@ -87,30 +64,21 @@ layout {
|
|||
|
||||
default-column-width { proportion 0.33333; }
|
||||
focus-ring {
|
||||
width 2 // {< rnum(if device.laptop() then 1 else 2)>}
|
||||
width 2
|
||||
active-color "#8ec07c"
|
||||
inactive-color "#1d2021"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// {# if device.laptop() #}
|
||||
//<yolk> spawn-at-startup "bash" "-c" "swayidle -w timeout 601 'niri msg action power-off-monitors' timeout 600 'swaylock -f' before-sleep 'swaylock -f' timeout 3600 'systemctl suspend' timeout 60000 'systemctl hibernate'"
|
||||
spawn-at-startup "bash" "-c" "eww -c ~/.config/eww-bar open-many bar_1 niri_scroller"
|
||||
spawn-at-startup "xwayland-satellite"
|
||||
spawn-at-startup "bash" "-c" "1password --silent"
|
||||
spawn-at-startup "bash" "-c" "ELECTRON_OZONE_PLATFORM_HINT=auto 1password --silent"
|
||||
spawn-at-startup "wl-paste" "--watch" "xclip -in -sel c"
|
||||
spawn-at-startup "~/.config/niri/clipboardfix.sh"
|
||||
spawn-at-startup "clipse -listen"
|
||||
spawn-at-startup "clipse" "-listen"
|
||||
spawn-at-startup "wl-clip-persist" "--clipboard" "regular"
|
||||
spawn-at-startup "kdeconnect-indicator"
|
||||
//
|
||||
spawn-at-startup "bash" "-c" "swaybg -m fill -i ~/wallpapers/green_leaves.jpg"
|
||||
spawn-at-startup "waybar"
|
||||
spawn-at-startup "~/.config/niri/clipsync watch with-notifications"
|
||||
spawn-at-startup
|
||||
//
|
||||
// spawn-at-startup "swaybg" "-m" "fill" "-i" "~/Pictures/wallpapers/green_leaves.jpg"
|
||||
prefer-no-csd
|
||||
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
@ -123,7 +91,7 @@ animations {
|
|||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 open_color(vec3 coords_geo, vec3 size_geo) {
|
||||
vec4 open_color(vec3 coords_geo, vec3 size_geo) {
|
||||
float cur = niri_clamped_progress;
|
||||
if (coords_geo.x > cur) {
|
||||
return vec4(0.0);
|
||||
|
@ -157,16 +125,12 @@ window-rule {
|
|||
default-column-width { proportion 0.3333; }
|
||||
}
|
||||
|
||||
layer-rule {
|
||||
match namespace="^notifications$"
|
||||
block-out-from "screen-capture"
|
||||
}
|
||||
|
||||
// Example: block out two password managers from screen capture.
|
||||
// (This example rule is commented out with a "/-" in front.)
|
||||
window-rule {
|
||||
match app-id=r#"1Password"#
|
||||
match title=r#"[gG]mail"#
|
||||
match app-id=r#".*[mM]ako.*"#
|
||||
match title=r#".*[Ww]hats[aA]pp.*$"#
|
||||
// opacity 0.5
|
||||
|
||||
|
@ -193,7 +157,7 @@ binds {
|
|||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T { spawn "foot"; }
|
||||
Mod+B { spawn "bash" "-c" "unset DISPLAY && google-chrome --ozone-platform-hint=auto --enable-features=VaapiVideoDecodeLinuxGL --enable-features=TouchpadOverscrollHistoryNavigation"; }
|
||||
Mod+B { spawn "bash" "-c" "unset DISPLAY && google-chrome --enable-features=TouchpadOverscrollHistoryNavigation --enable-features=UseOzonePlatform --ozone-platform=wayland"; }
|
||||
Mod+Shift+P { spawn "~/.config/rofi/launchers/type-2/launcher.sh"; }
|
||||
Mod+Shift+B { spawn "firefox"; }
|
||||
|
||||
|
@ -204,9 +168,6 @@ binds {
|
|||
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; }
|
||||
|
||||
Mod+Shift+Q { close-window; }
|
||||
|
||||
Mod+H { focus-column-or-monitor-left; }
|
||||
|
@ -250,10 +211,10 @@ binds {
|
|||
Mod+Ctrl+U { move-workspace-down; }
|
||||
Mod+Ctrl+I { move-workspace-up; }
|
||||
|
||||
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Mod+Ctrl+Shift+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+Shift+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
Mod+Shift+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+Shift+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
// Mod+Ctrl+Shift+WheelScrollDown { scroll-viewport-left amount=0.1; }
|
||||
// Mod+Ctrl+Shift+WheelScrollUp { scroll-viewport-right amount=0.1; }
|
||||
|
||||
|
@ -264,6 +225,13 @@ binds {
|
|||
|
||||
Mod+WheelScrollDown { focus-column-right; }
|
||||
Mod+WheelScrollUp { focus-column-left; }
|
||||
|
||||
// Mod+Shift+WheelScrollDown { scroll-viewport-right-by-column; }
|
||||
// Mod+Shift+WheelScrollUp { scroll-viewport-left-by-column; }
|
||||
|
||||
// Mod+Shift+WheelScrollDown { scroll-viewport-right-by-fraction amount=0.1; }
|
||||
// Mod+Shift+WheelScrollUp { scroll-viewport-left-by-fraction amount=0.1; }
|
||||
|
||||
// Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||
// Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
.config/niri/config.kdl
|
|
@ -88,10 +88,10 @@
|
|||
:less {:validate true}
|
||||
:scss {:validate true}}})
|
||||
|
||||
(lsp.ts_ls.setup {:root_dir (lsp.util.root_pattern "package.json")
|
||||
:on_attach (fn [client bufnr]
|
||||
(set client.resolved_capabilities.document_formatting false)
|
||||
(on_attach client bufnr))})
|
||||
(lsp.tsserver.setup {:root_dir (lsp.util.root_pattern "package.json")
|
||||
:on_attach (fn [client bufnr]
|
||||
(set client.resolved_capabilities.document_formatting false)
|
||||
(on_attach client bufnr))})
|
||||
|
||||
|
||||
(let [
|
||||
|
|
|
@ -126,7 +126,6 @@
|
|||
(plugin :eraserhd/parinfer-rust {:build "cargo build --release"})
|
||||
(plugin :kmonad/kmonad-vim)
|
||||
(plugin :elkowar/yuck.vim {:ft ["yuck"]})
|
||||
(plugin :rhaiscript/vim-rhai {:ft ["rhai"]})
|
||||
(plugin :cespare/vim-toml {:ft ["toml"]})
|
||||
(plugin :bduggan/vim-raku {:ft ["raku"]})
|
||||
(plugin :LnL7/vim-nix {:ft ["nix"]})
|
||||
|
|
|
@ -1,286 +0,0 @@
|
|||
// -*- mode: jsonc -*-
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
//"height": 24, // Waybar height (to be removed for auto height)
|
||||
//"width": 24, // Waybar width
|
||||
"spacing": 6, // Gaps between modules (4px)
|
||||
"reload_style_on_change": true,
|
||||
// Choose the order of the modules
|
||||
"modules-left": [
|
||||
"niri/workspaces",
|
||||
"sway/workspaces",
|
||||
"sway/mode",
|
||||
"sway/scratchpad",
|
||||
"custom/media"
|
||||
],
|
||||
"modules-center": [
|
||||
"sway/window",
|
||||
"clock",
|
||||
"clock#date"
|
||||
],
|
||||
"modules-right": [
|
||||
//"mpd",
|
||||
//"idle_inhibitor",
|
||||
"privacy",
|
||||
//"network",
|
||||
"cpu",
|
||||
"memory",
|
||||
"temperature",
|
||||
"custom/display-scale",
|
||||
"power-profiles-daemon",
|
||||
"pulseaudio",
|
||||
"backlight",
|
||||
"keyboard-state",
|
||||
"battery",
|
||||
//"battery#bat2",
|
||||
"tray",
|
||||
"custom/power"
|
||||
],
|
||||
"niri/workspaces": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
// Named workspaces
|
||||
// (you need to configure them in niri)
|
||||
"browser": "",
|
||||
"discord": "",
|
||||
"chat": "<b></b>",
|
||||
// Icons by state
|
||||
//"focused": "◈",
|
||||
"focused": "◆",
|
||||
"active": "◆",
|
||||
"default": "◆"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
"icon-size": 18,
|
||||
"transition-duration": 250,
|
||||
"modules": [
|
||||
{
|
||||
"type": "screenshare",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
},
|
||||
{
|
||||
"type": "audio-out",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
},
|
||||
{
|
||||
"type": "audio-in",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
}
|
||||
]
|
||||
},
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "warp-on-scroll": false,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
"show-empty": false,
|
||||
"format-icons": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{app}: {title}"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 5,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"clock#date": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"on-scroll-up": "brightnessctl s 2%+",
|
||||
"on-scroll-down": "brightnessctl s 2%-",
|
||||
"on-click-right": "brightnessctl s 1%",
|
||||
"on-click": "brightnessctl s 50%"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-full": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"power-profiles-daemon": {
|
||||
"format": "{icon}",
|
||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||
"tooltip": true,
|
||||
"format-icons": {
|
||||
"default": "",
|
||||
"performance": "",
|
||||
"balanced": "",
|
||||
"power-saver": ""
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/power": {
|
||||
"format": "⏻",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
||||
"menu-actions": {
|
||||
"shutdown": "shutdown",
|
||||
"reboot": "reboot",
|
||||
"suspend": "systemctl suspend",
|
||||
"hibernate": "systemctl hibernate"
|
||||
}
|
||||
},
|
||||
"custom/display-scale": {
|
||||
"format": "",
|
||||
"on-click": "niri msg output eDP-1 scale 1.0",
|
||||
"on-click-right": "niri msg output eDP-1 scale 1.25"
|
||||
|
||||
}
|
||||
}
|
|
@ -1,328 +0,0 @@
|
|||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: Terminus, "Font awesome 6 Free", Helvetica, Arial, sans-serif;
|
||||
/*font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;*/
|
||||
font-size: 16px;
|
||||
}
|
||||
window.eDP-1 * { font-size: 10px; }
|
||||
|
||||
window#waybar {
|
||||
background-color: #1d2021;
|
||||
/*border-bottom: 3px solid rgba(100, 114, 125, 0.5);*/
|
||||
color: #ebdbb2;
|
||||
/*transition-property: background-color;*/
|
||||
/*transition-duration: .5s;*/
|
||||
}
|
||||
|
||||
window .modules-right > * > * {
|
||||
background-color: #282828;
|
||||
padding: 0 10px;
|
||||
}
|
||||
window .modules-left, .modules-right, .modules-center {
|
||||
margin: 3px 0;
|
||||
}
|
||||
window.eDP-1 .modules-left, window.eDP-1 .modules-right, window.eDP-1 .modules-center {
|
||||
margin: 0px 0;
|
||||
}
|
||||
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#workspaces button * {
|
||||
padding: 0px 0px;
|
||||
color: #ebdbb2;
|
||||
font-size: 24px;
|
||||
padding-top: 0px;
|
||||
}
|
||||
#workspaces button.empty * {
|
||||
color: #928374
|
||||
}
|
||||
#workspaces button.active * {
|
||||
color: #8ec07c;
|
||||
}
|
||||
|
||||
#window, #workspaces {
|
||||
/*margin: 0 4px;*/
|
||||
}
|
||||
#workspaces * {
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.modules-right > widget:last-child > * {
|
||||
/*padding-right: 4px;*/
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #b8bb26;
|
||||
/*background-color: #26A65B;*/
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
/*background-color: #f53c3c;*/
|
||||
color: #fb4934;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#privacy {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#privacy-item {
|
||||
padding: 0 5px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#privacy-item.screenshare {
|
||||
background-color: #cf5700;
|
||||
}
|
||||
|
||||
#privacy-item.audio-in {
|
||||
background-color: #1ca000;
|
||||
}
|
||||
|
||||
#privacy-item.audio-out {
|
||||
background-color: #0069d4;
|
||||
}
|
||||
|
||||
#power-profiles-daemon {
|
||||
min-width: 20px;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.performance {
|
||||
background-color: #3c2525;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.balanced {
|
||||
}
|
||||
|
||||
#power-profiles-daemon.power-saver {
|
||||
background-color: #253125;
|
||||
}
|
||||
|
||||
|
||||
/*button {*/
|
||||
/*[> Use box-shadow instead of border so the text isn't offset <]*/
|
||||
/*box-shadow: inset 0 -3px transparent;*/
|
||||
/*[> Avoid rounded borders under each button name <]*/
|
||||
/*border: none;*/
|
||||
/*border-radius: 0;*/
|
||||
/*}*/
|
||||
|
||||
/*[> https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect <]*/
|
||||
/*button:hover {*/
|
||||
/*background: inherit;*/
|
||||
/*box-shadow: inset 0 -3px #ffffff;*/
|
||||
/*}*/
|
||||
|
||||
/*[> you can set a style on hover for any module like this <]*/
|
||||
/*#pulseaudio:hover {*/
|
||||
/*background-color: #a37800;*/
|
||||
/*}*/
|
||||
|
||||
/*#workspaces button {*/
|
||||
/*padding: 0 5px;*/
|
||||
/*background-color: transparent;*/
|
||||
/*color: #ffffff;*/
|
||||
/*}*/
|
||||
|
||||
/*#workspaces button:hover {*/
|
||||
/*background: rgba(0, 0, 0, 0.2);*/
|
||||
/*}*/
|
||||
|
||||
/*#workspaces button.focused {*/
|
||||
/*background-color: #64727D;*/
|
||||
/*box-shadow: inset 0 -3px #ffffff;*/
|
||||
/*}*/
|
||||
|
||||
/*#workspaces button.urgent {*/
|
||||
/*background-color: #eb4d4b;*/
|
||||
/*}*/
|
||||
|
||||
/*#mode {*/
|
||||
/*background-color: #64727D;*/
|
||||
/*box-shadow: inset 0 -3px #ffffff;*/
|
||||
/*}*/
|
||||
|
||||
/*#clock,*/
|
||||
/*#battery,*/
|
||||
/*#cpu,*/
|
||||
/*#memory,*/
|
||||
/*#disk,*/
|
||||
/*#temperature,*/
|
||||
/*#backlight,*/
|
||||
/*#network,*/
|
||||
/*#pulseaudio,*/
|
||||
/*#wireplumber,*/
|
||||
/*#custom-media,*/
|
||||
/*#tray,*/
|
||||
/*#mode,*/
|
||||
/*#idle_inhibitor,*/
|
||||
/*#scratchpad,*/
|
||||
/*#power-profiles-daemon,*/
|
||||
/*#mpd {*/
|
||||
/*padding: 0 5px;*/
|
||||
/*color: #ebdbb2;*/
|
||||
/*}*/
|
||||
|
||||
/*label:focus {*/
|
||||
/*background-color: #000000;*/
|
||||
/*}*/
|
||||
|
||||
/*#cpu {*/
|
||||
/*background-color: #2ecc71;*/
|
||||
/*color: #000000;*/
|
||||
/*}*/
|
||||
|
||||
/*#memory {*/
|
||||
/*background-color: #9b59b6;*/
|
||||
/*}*/
|
||||
|
||||
/*#disk {*/
|
||||
/*background-color: #964B00;*/
|
||||
/*}*/
|
||||
|
||||
/*#backlight {*/
|
||||
/*background-color: #90b1b1;*/
|
||||
/*}*/
|
||||
|
||||
/*#network {*/
|
||||
/*background-color: #2980b9;*/
|
||||
/*}*/
|
||||
|
||||
/*#network.disconnected {*/
|
||||
/*background-color: #f53c3c;*/
|
||||
/*}*/
|
||||
|
||||
/*#pulseaudio {*/
|
||||
/*background-color: #f1c40f;*/
|
||||
/*color: #000000;*/
|
||||
/*}*/
|
||||
|
||||
/*#pulseaudio.muted {*/
|
||||
/*background-color: #90b1b1;*/
|
||||
/*color: #2a5c45;*/
|
||||
/*}*/
|
||||
|
||||
/*#wireplumber {*/
|
||||
/*background-color: #fff0f5;*/
|
||||
/*color: #000000;*/
|
||||
/*}*/
|
||||
|
||||
/*#wireplumber.muted {*/
|
||||
/*background-color: #f53c3c;*/
|
||||
/*}*/
|
||||
|
||||
/*#custom-media {*/
|
||||
/*background-color: #66cc99;*/
|
||||
/*color: #2a5c45;*/
|
||||
/*min-width: 100px;*/
|
||||
/*}*/
|
||||
|
||||
/*#custom-media.custom-spotify {*/
|
||||
/*background-color: #66cc99;*/
|
||||
/*}*/
|
||||
|
||||
/*#custom-media.custom-vlc {*/
|
||||
/*background-color: #ffa000;*/
|
||||
/*}*/
|
||||
|
||||
/*#temperature {*/
|
||||
/*background-color: #f0932b;*/
|
||||
/*}*/
|
||||
|
||||
/*#temperature.critical {*/
|
||||
/*background-color: #eb4d4b;*/
|
||||
/*}*/
|
||||
|
||||
/*#tray {*/
|
||||
/*background-color: #2980b9;*/
|
||||
/*}*/
|
||||
|
||||
/*#tray > .passive {*/
|
||||
/*-gtk-icon-effect: dim;*/
|
||||
/*}*/
|
||||
|
||||
/*#tray > .needs-attention {*/
|
||||
/*-gtk-icon-effect: highlight;*/
|
||||
/*background-color: #eb4d4b;*/
|
||||
/*}*/
|
||||
|
||||
/*#idle_inhibitor {*/
|
||||
/*background-color: #2d3436;*/
|
||||
/*}*/
|
||||
|
||||
/*#idle_inhibitor.activated {*/
|
||||
/*background-color: #ecf0f1;*/
|
||||
/*color: #2d3436;*/
|
||||
/*}*/
|
||||
|
||||
/*#mpd {*/
|
||||
/*background-color: #66cc99;*/
|
||||
/*color: #2a5c45;*/
|
||||
/*}*/
|
||||
|
||||
/*#mpd.disconnected {*/
|
||||
/*background-color: #f53c3c;*/
|
||||
/*}*/
|
||||
|
||||
/*#mpd.stopped {*/
|
||||
/*background-color: #90b1b1;*/
|
||||
/*}*/
|
||||
|
||||
/*#mpd.paused {*/
|
||||
/*background-color: #51a37a;*/
|
||||
/*}*/
|
||||
|
||||
/*#language {*/
|
||||
/*background: #00b093;*/
|
||||
/*color: #740864;*/
|
||||
/*padding: 0 5px;*/
|
||||
/*margin: 0 5px;*/
|
||||
/*min-width: 16px;*/
|
||||
/*}*/
|
||||
|
||||
/*#keyboard-state {*/
|
||||
/*background: #97e1ad;*/
|
||||
/*color: #000000;*/
|
||||
/*padding: 0 0px;*/
|
||||
/*margin: 0 5px;*/
|
||||
/*min-width: 16px;*/
|
||||
/*}*/
|
||||
|
||||
/*#keyboard-state > label {*/
|
||||
/*padding: 0 5px;*/
|
||||
/*}*/
|
||||
|
||||
/*#keyboard-state > label.locked {*/
|
||||
/*background: rgba(0, 0, 0, 0.2);*/
|
||||
/*}*/
|
||||
|
||||
/*#scratchpad {*/
|
||||
/*background: rgba(0, 0, 0, 0.2);*/
|
||||
/*}*/
|
||||
|
||||
/*#scratchpad.empty {*/
|
||||
/*background-color: transparent;*/
|
||||
/*}*/
|
||||
|
17
yolk.lua
17
yolk.lua
|
@ -1,11 +1,6 @@
|
|||
data = {
|
||||
}
|
||||
|
||||
device = {
|
||||
thinkix = function()
|
||||
return SYSTEM.hostname == "thinkix"
|
||||
end,
|
||||
laptop = function()
|
||||
return SYSTEM.hostname == "thinkix" or SYSTEM.hostname == "frissnix"
|
||||
end,
|
||||
}
|
||||
function canonical_data()
|
||||
return {}
|
||||
end
|
||||
function local_data(system)
|
||||
return canonical_data()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue