i3status_wrapper: add emoji of battery, rename wrapper

This commit is contained in:
TheK4n 2023-01-23 20:50:32 +03:00
parent cd31360232
commit 1cb99ef623
4 changed files with 9 additions and 3 deletions

View File

@ -73,7 +73,7 @@ i3:
mkdir -p ~/.config/i3status mkdir -p ~/.config/i3status
ln -s $(PWD)/sub/i3/config ~/.config/i3/config ln -s $(PWD)/sub/i3/config ~/.config/i3/config
ln -s $(PWD)/sub/i3/statusconfig ~/.config/i3status/config ln -s $(PWD)/sub/i3/statusconfig ~/.config/i3status/config
ln -s $(PWD)/functions/i3status_wrapper.sh ~/.local/bin/i3status_wrapper.sh ln -s $(PWD)/functions/i3status_wrapper ~/.local/bin/i3status_wrapper
bat: bat:
test -d ~/.config/bat || \ test -d ~/.config/bat || \

View File

@ -39,7 +39,7 @@ function remove_holder {
function headphones { function headphones {
battery_status="$(bluetoothctl info 14:0A:29:0A:6A:2F | grep "Battery Percentage" | awk -F '[()]' '{ print "🎧"$2"%" }')" battery_status="$(bluetoothctl info 14:0A:29:0A:6A:2F | grep "Battery Percentage" | awk -F '[()]' '{ print "🎧🔋"$2"%" }')"
local json="{ \"full_text\": \"$battery_status\", \"color\": \"#FFFFFF\"}" local json="{ \"full_text\": \"$battery_status\", \"color\": \"#FFFFFF\"}"

View File

@ -198,7 +198,7 @@ bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { bar {
status_command exec ~/.local/bin/i3status_wrapper.sh status_command exec ~/.local/bin/i3status_wrapper
tray_output DP-0 tray_output DP-0
} }

View File

@ -3,6 +3,12 @@ local status, nvim_treesitter = pcall(require, "nvim-treesitter")
if (not status) then return end if (not status) then return end
nvim_treesitter.setup { nvim_treesitter.setup {
ensure_installed = {"python", "lua", "vim", "html", "rust"},
sync_install = true,
auto_install = true, auto_install = true,
highlight = {
enable = true,
}
} }