Update configs and scripts.

- config for new starship version
- make waybar service use Waybar from PATH
- add sndio config to waybar
- add startcage script
- other assorted stuff
This commit is contained in:
Érico Rolim 2020-10-08 18:03:55 -03:00
parent c19c4143a5
commit 8a75e69105
8 changed files with 77 additions and 30 deletions

View File

@ -7,32 +7,60 @@
add_newline = false
prompt_order = [
"username",
"hostname",
"kubernetes",
"directory",
"git_branch",
"git_state",
"git_status",
"package",
"golang",
"rust",
"nix_shell",
"conda",
"memory_usage",
"env_var",
"cmd_duration",
"line_break",
"jobs",
"battery",
"time",
"character",
]
format = """
$username\
$hostname\
$shlvl\
$kubernetes\
$directory\
$git_branch\
$git_commit\
$git_state\
$hg_branch\
$docker_context\
$package\
$cmake\
$dart\
$dotnet\
$elixir\
$elm\
$erlang\
$golang\
$helm\
$java\
$julia\
$nim\
$nodejs\
$ocaml\
$perl\
$php\
$purescript\
$python\
$ruby\
$rust\
$swift\
$terraform\
$zig\
$nix_shell\
$conda\
$memory_usage\
$aws\
$gcloud\
$env_var\
$crystal\
$cmd_duration\
$custom\
$line_break\
$jobs\
$battery\
$time\
$status\
$character"""
[character]
symbol = "➜"
use_symbol_for_status = false
format = "$symbol "
success_symbol = "[➜](bold green)"
error_symbol = "[➜](bold red)"
[directory]
truncation_length = 1

View File

@ -0,0 +1,4 @@
function __fish_complete_do_not_subcommand
__fish_complete_subcommand --commandline $args
end
complete -c dis -x -a "(__fish_complete_do_not_subcommand)"

View File

@ -45,6 +45,9 @@ colorscheme slate
set guifont=IBMPlex\ Mono:h16
let g:neovide_cursor_vfx_mode = "sonicboom"
" Settings for Void stuff
autocmd BufNewFile,BufRead template setfiletype sh
" FUNCTIONS

@ -1 +1 @@
Subproject commit df373a8f23545c05d73857c904af1c865d364027
Subproject commit 28e36a89488b07d9079d7c2397f1766c262ea01f

View File

@ -4,7 +4,7 @@
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "custom/media", "tray"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "custom/keyboard_layout", "clock"],
"modules-right": ["idle_inhibitor", "sndio", "network", "cpu", "memory", "temperature", "backlight", "battery", "custom/keyboard_layout", "clock"],
// Modules configuration
"sway/workspaces": {
@ -106,6 +106,11 @@
"on-click-right": "pavucontrol"
},
"sndio": {
"format": "{raw_value} 🎜",
"scroll-step": 3
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",

View File

@ -1,7 +1,7 @@
* {
border: none;
border-radius: 0;
font-family: IBM Plex, sans-serif;
font-family: IBM Plex Sans, sans-serif;
font-size: 13px;
min-height: 0;
}
@ -76,7 +76,8 @@ window#waybar.chromium {
#tray,
#mode,
#idle_inhibitor,
#custom-keyboard_layout {
#custom-keyboard_layout,
#sndio {
padding: 0 10px;
margin: 0 4px;
color: #ffffff;
@ -143,11 +144,13 @@ label:focus {
background-color: #f53c3c;
}
#pulseaudio {
#pulseaudio,
#sndio {
background-color: #f1c40f;
color: #000000;
}
#sndio.muted,
#pulseaudio.muted {
background-color: #90b1b1;
color: #2a5c45;

3
wayland/.local/bin/startcage Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
. ~/.local/bin/wayland-vars
launch_compositor cage -d -- "$@"

View File

@ -1 +0,0 @@
/usr/bin/waybar

View File

@ -0,0 +1,2 @@
#!/bin/execlineb -P
waybar