mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2025-02-17 18:03:23 -05:00
67 lines
1.6 KiB
Bash
Executable File
67 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#-*-coding:utf-8 -*-
|
|
#Auto updated?
|
|
# Yes
|
|
#File:
|
|
# lemonbar_config
|
|
#Author:
|
|
# The-Repo-Club [wayne6324@gmail.com]
|
|
#Github:
|
|
# https://github.com/The-Repo-Club/
|
|
#
|
|
#Created:
|
|
# Tue 07 December 2021, 02:36:45 PM [GMT+1]
|
|
#Modified:
|
|
# Sun 06 November 2022, 05:24:52 PM [GMT]
|
|
#
|
|
#Description:
|
|
# <Todo>
|
|
#
|
|
#Dependencies:
|
|
# <None>
|
|
#
|
|
# shellcheck disable=all
|
|
|
|
first=$(xrandr | grep -w connected | awk '{print $1}' | sed -n '1p')
|
|
second=$(xrandr | grep -w connected | awk '{print $1}' | sed -n '2p')
|
|
|
|
topleft() {
|
|
echo -e "%{l}$(lemonbar_workspaces $first)%{r}$(lemonbar_keyboard)$(lemonbar_sep)$(lemonbar_updates)$(lemonbar_sep)$(lemonbar_volume)$(lemonbar_sep)$(lemonbar_battery)$(lemonbar_sep)$(lemonbar_network)$(lemonbar_sep)$(lemonbar_clock)"
|
|
}
|
|
|
|
bottomleft() {
|
|
echo -e "%{l}$(lemonbar_cpu)$(lemonbar_sep)$(lemonbar_ram)$(lemonbar_sep)$(lemonbar_kernel)%{c}$(lemonbar_window) %{r}$(lemonbar_disk)"
|
|
}
|
|
|
|
topright() {
|
|
echo -e "%{l}$(lemonbar_workspaces $second)%{r}$(lemonbar_keyboard)$(lemonbar_sep)$(lemonbar_updates)$(lemonbar_sep)$(lemonbar_volume)$(lemonbar_sep)$(lemonbar_battery)$(lemonbar_sep)$(lemonbar_network)$(lemonbar_sep)$(lemonbar_clock)"
|
|
}
|
|
|
|
bottomright() {
|
|
echo -e "%{l}$(lemonbar_cpu)$(lemonbar_sep)$(lemonbar_ram)$(lemonbar_sep)$(lemonbar_kernel)%{c}$(lemonbar_window) %{r}$(lemonbar_disk)"
|
|
}
|
|
|
|
while true; do
|
|
case $1 in
|
|
-tl | --topleft)
|
|
topleft
|
|
wait
|
|
;;
|
|
-bl | --bottomleft)
|
|
bottomleft
|
|
wait
|
|
;;
|
|
-tr | --topright)
|
|
topright
|
|
wait
|
|
;;
|
|
-br | --bottomright)
|
|
bottomright
|
|
wait
|
|
;;
|
|
*)
|
|
break
|
|
;;
|
|
esac
|
|
done
|