Compare commits

..

3 Commits

Author SHA1 Message Date
Fabian Becker
71027962d3 Many more updates 2022-08-15 11:13:02 +02:00
Fabian Becker
b82bec612d Move from i3 to sway 2022-07-29 16:44:17 +02:00
Fabian Becker
1a965cc580 Add waybar config 2022-07-29 16:43:25 +02:00
14 changed files with 717 additions and 94 deletions

View File

@@ -1,31 +1,51 @@
window: # Font
opacity: 0.90
dynamic_padding: true
decorations: none
padding:
x: 1
y: 1
# Font Mono configuration (changes require restart)
font: font:
# Normal (roman) font face
normal: normal:
family: Hack Nerd Font Mono family: Hack Nerd Font
style: Regular style: Regular
# Bold font face
bold: bold:
family: Hack Nerd Font Mono family: Hack Nerd Font
style: Bold style: Bold
# Italic font face
italic: italic:
family: Hack Nerd Font Mono family: Hack Nerd Font
style: Italic style: Italic
# Bold italic font face
bold_italic: bold_italic:
family: Hack Nerd Font Mono family: Hack Nerd Font
style: Bold Italic style: Bold Italic
# Point size size: 11
size: 14.0
# Gruvbox
colors:
primary:
background: '#282828'
foreground: '#ebdbb2'
# Normal colors
normal:
black: '#282828'
red: '#cc241d'
green: '#98971a'
yellow: '#d79921'
blue: '#458588'
magenta: '#b16286'
cyan: '#689d6a'
white: '#a89984'
# Bright colors
bright:
black: '#928374'
red: '#fb4934'
green: '#b8bb26'
yellow: '#fabd2f'
blue: '#83a598'
magenta: '#d3869b'
cyan: '#8ec07c'
white: '#ebdbb2'
window:
opacity: 0.75

View File

@@ -1,5 +0,0 @@
# Devices
set $display_tv 'Technical Concepts Ltd TCL SMART TV 0x00001111'
# Resolution
output $display_tv mode 1920x1080@30Hz

View File

@@ -99,34 +99,42 @@ local lspconfig = require 'lspconfig'
local function config(_config) local function config(_config)
return vim.tbl_deep_extend("force", { return vim.tbl_deep_extend("force", {
capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()), capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()),
on_attach = function() on_attach = function()
-- local opts = { noremap = true, silent = true } -- local opts = { noremap = true, silent = true }
nnoremap("gd", function() vim.lsp.buf.definition() end) nnoremap("gd", function() vim.lsp.buf.definition() end)
nnoremap("gD", function() vim.lsp.buf.declaration() end) nnoremap("gD", function() vim.lsp.buf.declaration() end)
nnoremap("K", function() vim.lsp.buf.hover() end) nnoremap("K", function() vim.lsp.buf.hover() end)
nnoremap("<leader>vws", function() vim.lsp.buf.workspace_symbol() end) nnoremap("gW", function() vim.lsp.buf.workspace_symbol() end)
nnoremap("<leader>vd", function() vim.diagnostic.open_float() end) nnoremap("<leader>vd", function() vim.diagnostic.open_float() end)
nnoremap("[d", function() vim.diagnostic.goto_next() end) nnoremap("[d", function() vim.diagnostic.goto_next() end)
nnoremap("]d", function() vim.diagnostic.goto_prev() end) nnoremap("]d", function() vim.diagnostic.goto_prev() end)
nnoremap("<leader>vca", function() vim.lsp.buf.code_action() end) nnoremap("<leader>ca", function() vim.lsp.buf.code_action() end)
nnoremap("<leader>vrr", function() vim.lsp.buf.references() end) nnoremap("<leader>rr", function() vim.lsp.buf.references() end)
nnoremap("<leader>vrn", function() vim.lsp.buf.rename() end) nnoremap("<leader>rn", function() vim.lsp.buf.rename() end)
inoremap("<C-h>", function() vim.lsp.buf.signature_help() end) nnoremap("<leader>cl", function() vim.lsp.codelens.run() end)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts) inoremap("<C-h>", function() vim.lsp.buf.signature_help() end)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts) --vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts) -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts) -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts) -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts) -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts) -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>so', [[<cmd>lua require('telescope.builtin').lsp_document_symbols()<CR>]], opts) -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
-- vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]] -- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>so', [[<cmd>lua require('telescope.builtin').lsp_document_symbols()<CR>]], opts)
end, -- vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]]
end,
}, _config or {}) }, _config or {})
end end
lspconfig['elixirls'].setup(config({ local elixir = require('elixir')
cmd = {"/Users/fbecker18/opt/elixir-ls/language_server.sh"} elixir.setup(config({
cmd = {"/home/halfdan/opt/elixir-ls/bin/language_server.sh"},
settings = elixir.settings({
dialyzerEnabled = true,
fetchDeps = false,
enableTestLenses = true,
suggestSpecs = false,
}),
})) }))
-- Enable the following language servers -- Enable the following language servers

View File

@@ -0,0 +1,44 @@
require'nvim-treesitter.configs'.setup {
textobjects = {
select = {
enable = true,
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,
keymaps = {
-- You can use the capture groups defined in textobjects.scm
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
},
-- You can choose the select mode (default is charwise 'v')
selection_modes = {
['@parameter.outer'] = 'v', -- charwise
['@function.outer'] = 'V', -- linewise
['@class.outer'] = '<c-v>', -- blockwise
},
},
move = {
enable = true,
set_jumps = true, -- whether to set jumps in the jumplist
goto_next_start = {
["]m"] = "@function.outer",
["]]"] = "@class.outer",
},
goto_next_end = {
["]M"] = "@function.outer",
["]["] = "@class.outer",
},
goto_previous_start = {
["[m"] = "@function.outer",
["[["] = "@class.outer",
},
goto_previous_end = {
["[M"] = "@function.outer",
["[]"] = "@class.outer",
},
},
},
}

View File

@@ -55,6 +55,7 @@ return require("packer").startup(
-- Treesitter -- Treesitter
use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"} use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}
use {"nvim-treesitter/nvim-treesitter-textobjects"}
use {'preservim/tagbar'} use {'preservim/tagbar'}
vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags' vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags'
@@ -116,7 +117,7 @@ return require("packer").startup(
-- => Language Support -- => Language Support
use {'rust-lang/rust.vim'} use {'rust-lang/rust.vim'}
use {'simrat39/rust-tools.nvim'} use {'simrat39/rust-tools.nvim'}
use({ "mhanberg/elixir.nvim", requires = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" }})
-- use {'JuliaEditorSupport/julia-vim', opt=true} -- use {'JuliaEditorSupport/julia-vim', opt=true}
-- vim.g.latex_to_unicode_auto = 1 -- vim.g.latex_to_unicode_auto = 1

View File

@@ -11,7 +11,7 @@ vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys
vim.cmd('syntax on') -- syntax highlighting vim.cmd('syntax on') -- syntax highlighting
vim.o.pumheight = 10 -- Makes popup menu smaller vim.o.pumheight = 10 -- Makes popup menu smaller
vim.o.fileencoding = "utf-8" -- The encoding written to file vim.o.fileencoding = "utf-8" -- The encoding written to file
vim.o.cmdheight = 2 -- More space for displaying messages vim.o.cmdheight = 1 -- More space for displaying messages
vim.cmd('set colorcolumn=99999') -- fix indentline for now vim.cmd('set colorcolumn=99999') -- fix indentline for now
vim.o.mouse = "a" -- Enable your mouse vim.o.mouse = "a" -- Enable your mouse
vim.o.splitbelow = true -- Horizontal splits will automatically be below vim.o.splitbelow = true -- Horizontal splits will automatically be below

View File

@@ -16,7 +16,7 @@ require('telescope').setup {
layout_strategy = "horizontal", layout_strategy = "horizontal",
layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}}, layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}},
file_sorter = require'telescope.sorters'.get_fuzzy_file, file_sorter = require'telescope.sorters'.get_fuzzy_file,
file_ignore_patterns = {}, file_ignore_patterns = {"_build", "node_modules" },
generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter, generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter,
shorten_path = true, shorten_path = true,
winblend = 0, winblend = 0,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -28,21 +28,13 @@ floating_modifier $mod
# start a terminal # start a terminal
# bindsym $mod+Return exec i3-sensible-terminal # bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec xterm bindsym $mod+Return exec alacritty
# kill focused window # kill focused window
# bindsym $mod+space exec "/home/theprimeagen/dotfiles/awesome-streamerrc/ThePrimeagen/tmux2"
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher) # app launcher
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym $mod+d exec wofi --show=run --gtk-dark
bindsym $mod+d exec --no-startup-id wofi --show run --gtk-dark
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left
@@ -92,35 +84,39 @@ bindsym $mod+a focus parent
#bindsym $mod+d focus child #bindsym $mod+d focus child
# switch to workspace # switch to workspace
bindsym $mod+1 workspace 1 bindsym $mod+plus workspace 1
bindsym $mod+2 workspace 2 bindsym $mod+bracketleft workspace 2
bindsym $mod+3 workspace 3 bindsym $mod+braceleft workspace 3
bindsym $mod+4 workspace 4 bindsym $mod+parenleft workspace 4
bindsym $mod+5 workspace 5 bindsym $mod+ampersand workspace 5
bindsym $mod+6 workspace 6 bindsym $mod+equal workspace 6
bindsym $mod+7 workspace 7 bindsym $mod+parenright workspace 7
bindsym $mod+8 workspace 8 bindsym $mod+braceright workspace 8
bindsym $mod+9 workspace 9 bindsym $mod+bracketright workspace 9
bindsym $mod+0 workspace 10 bindsym $mod+asterisk workspace 10
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+plus move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2 bindsym $mod+Shift+bracketleft move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3 bindsym $mod+Shift+braceleft move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4 bindsym $mod+Shift+parenleft move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+ampersand move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6 bindsym $mod+Shift+equal move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+parenright move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8 bindsym $mod+Shift+braceright move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+bracketright move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10 bindsym $mod+Shift+asterisk move container to workspace 10
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session) # exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -5%
bindsym XF86AudioMute exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle# Pulse Audio controls
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {
@@ -152,18 +148,8 @@ bindsym $mod+r mode "resize"
# finds out, if available) # finds out, if available)
set $status_script ~/.config/sway/status.sh set $status_script ~/.config/sway/status.sh
bar {
status_command while $status_script; do sleep 1; done
position top
colors {
statusline #ffffff
background #323232
}
font pango:DejaVu Sans Mono 14
}
# Suspend # Suspend
bindsym $mod+Shift+period exec systemctl suspend bindsym $mod+Shift+period exec systemctl suspend
include /etc/sway/config.d/*
include ~/.config/sway/config.d/* include ~/.config/sway/config.d/*

View File

@@ -0,0 +1,9 @@
input 1452:591:Keychron_Keychron_K2 {
xkb_layout real-prog-dvorak
xkb_options caps:escape
}
input 10730:258:Kinesis_Advantage2_Keyboard {
xkb_layout real-prog-dvorak
xkb_options caps:escape
}

View File

@@ -0,0 +1,10 @@
# Devices
set $display_tv 'Technical Concepts Ltd TCL SMART TV 0x00001111'
set $curved_small 'Goldstar Company Ltd LG HDR WQHD 0x0000655D'
# Resolution
output $display_tv mode 1920x1080@30Hz
output $curved_small mode 3440x1440@60Hz
# Wallpapers
output * bg ~/.config/sway/backgrounds/eclipse.jpg stretch

252
.config/waybar/config Normal file
View File

@@ -0,0 +1,252 @@
// =============================================================================
//
// Waybar configuration (https://hg.sr.ht/~begs/dotfiles)
//
// Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
//
// =============================================================================
{
// -------------------------------------------------------------------------
// Global configuration
// -------------------------------------------------------------------------
"layer": "top",
"position": "top",
//"height": 18,
"modules-left": [
"sway/mode",
"sway/workspaces",
"custom/arrow10",
"sway/window"
],
//"modules-center": [
// "sway/window"
//],
"modules-right": [
//"custom/arrow1",
//"custom/alsa",
"pulseaudio",
//"sndio",
//"custom/arrow2",
"network",
//"custom/arrow3",
"memory",
//"custom/arrow4",
"cpu",
//"custom/arrow5",
"temperature",
//"custom/arrow6",
"sway/language",
//"custom/arrow7",
//"battery",
//"custom/arrow8",
"tray",
"clock#date",
//"custom/arrow9",
"clock#time"
],
// -------------------------------------------------------------------------
// Modules
// -------------------------------------------------------------------------
"battery": {
"interval": 1,
"states": {
"warning": 30,
"critical": 15
},
"format": " {capacity}%", // Icon: bolt
"format-discharging": "{icon} {capacity}%",
"format-icons": [
"", // Icon: battery-full
"", // Icon: battery-three-quarters
"", // Icon: battery-half
"", // Icon: battery-quarter
"" // Icon: battery-empty
],
"tooltip": false
},
"clock#time": {
"interval": 10,
"format": "{:%H:%M}",
"tooltip": false
},
"clock#date": {
"interval": 20,
"format": "{:%e %b %Y}", // Icon: calendar-alt
//"tooltip-format": "{:%e %B %Y}"
"tooltip": false
},
"cpu": {
"interval": 5,
"tooltip": false,
"format": " {usage}%", // Icon: microchip
"states": {
"warning": 70,
"critical": 90
}
},
"sway/language": {
"format": " {}",
"min-length": 5,
"tooltip": false
},
"memory": {
"interval": 5,
"format": " {}%", // Icon: memory
"states": {
"warning": 70,
"critical": 90
}
},
"network": {
"interval": 5,
// TODO: format-icons
"format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
//"format-ethernet": " {ifname}",
"format-disconnected": "",
//"tooltip-format": "{ifname}: {ipaddr}",
"tooltip": false
//"on-click": "cmst"
},
"sway/mode": {
"format": "<span style=\"italic\"> {}</span>", // Icon: expand-arrows-alt
"tooltip": false
},
"sway/window": {
"format": "{}",
"max-length": 30,
"tooltip": false
},
"sway/workspaces": {
"all-outputs": false,
"disable-scroll": false,
"format": "{name}",
"format-icons": {
"1:www": "龜", // Icon: firefox-browser
"2:mail": "", // Icon: mail
"3:editor": "", // Icon: code
"4:terminals": "", // Icon: terminal
"5:portal": "", // Icon: terminal
"urgent": "",
"focused": "",
"default": ""
}
},
"pulseaudio": {
"scroll-step": 1,
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
},
"temperature": {
"critical-threshold": 90,
"interval": 5,
//"format": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°",
"format-icons": [
"", // Icon: temperature-empty
//"", // Icon: temperature-quarter
"", // Icon: temperature-half
//"", // Icon: temperature-three-quarters
"" // Icon: temperature-full
],
"tooltip": false
},
"custom/alsa": {
"exec": "amixer get Master | sed -nre 's/.*\\[off\\].*/ muted/p; s/.*\\[(.*%)\\].*/ \\1/p'",
"on-click": "amixer set Master toggle; pkill -x -RTMIN+11 waybar",
"on-scroll-up": "amixer set Master 1+; pkill -x -RTMIN+11 waybar",
"on-scroll-down": "amixer set Master 1-; pkill -x -RTMIN+11 waybar",
"signal": 11,
"interval": 10,
"tooltip": false
},
"sndio": {
"format": " {}%"
},
"tray": {
"icon-size": 21
//"spacing": 10
},
"custom/arrow1": {
"format": "",
"tooltip": false
},
"custom/arrow2": {
"format": "",
"tooltip": false
},
"custom/arrow3": {
"format": "",
"tooltip": false
},
"custom/arrow4": {
"format": "",
"tooltip": false
},
"custom/arrow5": {
"format": "",
"tooltip": false
},
"custom/arrow6": {
"format": "",
"tooltip": false
},
"custom/arrow7": {
"format": "",
"tooltip": false
},
"custom/arrow8": {
"format": "",
"tooltip": false
},
"custom/arrow9": {
"format": "",
"tooltip": false
},
"custom/arrow10": {
"format": "",
"tooltip": false
}
}

298
.config/waybar/style.css Normal file
View File

@@ -0,0 +1,298 @@
/* =============================================================================
*
* Waybar configuration
*
* Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
*
* =========================================================================== */
/* -----------------------------------------------------------------------------
* Keyframes
* -------------------------------------------------------------------------- */
@keyframes blink-warning {
70% {
color: @light;
}
to {
color: @light;
background-color: @warning;
}
}
@keyframes blink-critical {
70% {
color: @light;
}
to {
color: @light;
background-color: @critical;
}
}
/* -----------------------------------------------------------------------------
* Styles
* -------------------------------------------------------------------------- */
/* COLORS */
/* Nord */
/*@define-color light #eceff4;
@define-color dark #2e3440;
@define-color warning #ebcb8b;
@define-color critical #d08770;
@define-color mode #4c566a;
@define-color workspaces #5e81ac;
@define-color workspacesfocused #81a1c1;
@define-color sound #d8dee9;
@define-color network #4c566a;
@define-color memory #88c0d0;
@define-color cpu #434c5e;
@define-color temp #d8dee9;
@define-color layout #5e81ac;
@define-color battery #88c0d0;
@define-color date #2e3440;
@define-color time #eceff4;*/
/* Gruvbox */
@define-color light #ebdbb2;
@define-color dark #282828;
@define-color warning #fabd2f;
@define-color critical #cc241d;
@define-color mode #a89984;
@define-color workspaces #458588;
@define-color workspacesfocused #83a598;
@define-color sound #d3869b;
@define-color network #b16286;
@define-color memory #8ec07c;
@define-color cpu #98971a;
@define-color temp #b8bb26;
@define-color layout #689d6a;
@define-color battery #fabd2f;
@define-color date #282828;
@define-color time #ebdbb2;
/* Reset all styles */
* {
border: none;
border-radius: 0;
min-height: 0;
margin: 0;
padding: 0;
}
/* The whole bar */
#waybar {
background: transparent;
color: @light;
font-family: Hack Nerd Font;
font-size: 10pt;
/*font-weight: bold;*/
}
/* Each module */
#battery,
#clock,
#cpu,
#language,
#memory,
#mode,
#network,
#pulseaudio,
#temperature,
#custom-alsa,
#sndio,
#tray {
padding-left: 10px;
padding-right: 10px;
}
/* Each module that should blink */
#mode,
#memory,
#temperature,
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
/* Each critical module */
#memory.critical,
#cpu.critical,
#temperature.critical,
#battery.critical {
color: @critical;
}
/* Each critical that should blink */
#mode,
#memory.critical,
#temperature.critical,
#battery.critical.discharging {
animation-name: blink-critical;
animation-duration: 2s;
}
/* Each warning */
#network.disconnected,
#memory.warning,
#cpu.warning,
#temperature.warning,
#battery.warning {
color: @warning;
}
/* Each warning that should blink */
#battery.warning.discharging {
animation-name: blink-warning;
animation-duration: 3s;
}
/* And now modules themselves in their respective order */
#mode { /* Shown current Sway mode (resize etc.) */
color: @light;
background: @mode;
}
/* Workspaces stuff */
#workspaces button {
/*font-weight: bold;*/
padding-left: 4px;
padding-right: 4px;
color: @dark;
background: @workspaces;
}
#workspaces button.focused {
background: @workspacesfocused;
}
/*#workspaces button.urgent {
border-color: #c9545d;
color: #c9545d;
}*/
#window {
margin-right: 40px;
margin-left: 40px;
}
#custom-alsa,
#pulseaudio,
#sndio {
background: @sound;
color: @dark;
}
#network {
background: @network;
color: @light;
}
#memory {
background: @memory;
color: @dark;
}
#cpu {
background: @cpu;
color: @light;
}
#temperature {
background: @temp;
color: @dark;
}
#language {
background: @layout;
color: @light;
}
#battery {
background: @battery;
color: @dark;
}
#tray {
background: @date;
}
#clock.date {
background: @date;
color: @light;
}
#clock.time {
background: @time;
color: @dark;
}
#pulseaudio.muted {
/* No styles */
}
#custom-arrow1 {
font-size: 16px;
color: @sound;
background: transparent;
}
#custom-arrow2 {
font-size: 16px;
color: @network;
background: @sound;
}
#custom-arrow3 {
font-size: 16px;
color: @memory;
background: @network;
}
#custom-arrow4 {
font-size: 16px;
color: @cpu;
background: @memory;
}
#custom-arrow5 {
font-size: 16px;
color: @temp;
background: @cpu;
}
#custom-arrow6 {
font-size: 16px;
color: @layout;
background: @temp;
}
#custom-arrow7 {
font-size: 16px;
color: @battery;
background: @layout;
}
#custom-arrow8 {
font-size: 16px;
color: @date;
background: @battery;
}
#custom-arrow9 {
font-size: 16px;
color: @time;
background: @date;
}
#custom-arrow10 {
font-size: 16px;
color: @workspaces;
background: transparent;
}