mirror of
https://github.com/alrayyes/legacy-dotfiles
synced 2023-11-13 18:16:41 +00:00
Converted md to org, added dwm
This commit is contained in:
parent
99ffad71d8
commit
f543ef8f97
22
LICENSE.md
22
LICENSE.md
@ -1,22 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
=====================
|
||||
|
||||
Copyright (c) `2016` `Ryan Kes`
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
25
LICENSE.org
Normal file
25
LICENSE.org
Normal file
@ -0,0 +1,25 @@
|
||||
* The MIT License (MIT)
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: the-mit-license-mit
|
||||
:END:
|
||||
|
||||
Copyright (c) =2016= =Ryan Kes=
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@ -1,9 +0,0 @@
|
||||
# Legacy Dotfiles
|
||||
|
||||
Old dotfiles that I don't use anymore
|
||||
|
||||
# License
|
||||
|
||||
This theme is released under the MIT License. For more information read the [license][license].
|
||||
|
||||
[license]: https://github.com/alrayyes/legacy-dotfiles/blob/master/LICENSE.md
|
20
README.org
Normal file
20
README.org
Normal file
@ -0,0 +1,20 @@
|
||||
* Legacy Dotfiles
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: legacy-dotfiles
|
||||
:END:
|
||||
|
||||
Old dotfiles that I don't use anymore
|
||||
- [[https://dwm.suckless.org/][dwm]]
|
||||
- [[https://i3wm.org/][i3wm]]
|
||||
- [[https://moc.daper.net/][moc]]
|
||||
- [[https://www.newsbeuter.org/][newsbeuter]]
|
||||
- [[https://github.com/davatorium/rofi][rofi]]
|
||||
- [[https://www.spacemacs.org/][spacemacs]]
|
||||
|
||||
* License
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: license
|
||||
:END:
|
||||
|
||||
This theme is released under the MIT License. For more information read
|
||||
the [[LICENSE.org][license]].
|
8
dwm/.Xresources.desktop
Normal file
8
dwm/.Xresources.desktop
Normal file
@ -0,0 +1,8 @@
|
||||
!-------------------------------------------------------------------------------
|
||||
! Xft settings
|
||||
!-------------------------------------------------------------------------------
|
||||
|
||||
Xft.antialias: false
|
||||
Xft.rgba: rgb
|
||||
Xft.hinting: true
|
||||
Xft.hintstyle: hintslight
|
9
dwm/.Xresources.thinkpad
Normal file
9
dwm/.Xresources.thinkpad
Normal file
@ -0,0 +1,9 @@
|
||||
!-------------------------------------------------------------------------------
|
||||
! Xft settings
|
||||
!-------------------------------------------------------------------------------
|
||||
|
||||
Xft.dpi: 160
|
||||
Xft.antialias: false
|
||||
Xft.rgba: rgb
|
||||
Xft.hinting: true
|
||||
Xft.hintstyle: hintslight
|
61
dwm/.dwm/autostart.sh
Executable file
61
dwm/.dwm/autostart.sh
Executable file
@ -0,0 +1,61 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Set working directory to home
|
||||
cd ~
|
||||
|
||||
# Set screen orientation if second monitor is connected
|
||||
SCREENCOUNT=$(xrandr | grep -c "\*")
|
||||
|
||||
# If multi screen add special mode for monitor so it supports 1440p over HDMI
|
||||
if [ "$SCREENCOUNT" -eq 2 ]
|
||||
then
|
||||
if [ -f "$HOME/.local/bin/screen_desktop" ]
|
||||
then
|
||||
screen_desktop
|
||||
# Make sure mouse is on main screen so windows are launched there
|
||||
xdotool mousemove 3360 1080
|
||||
fi
|
||||
else
|
||||
if [ -f "$HOME/.local/bin/screen" ]
|
||||
then
|
||||
screen
|
||||
fi
|
||||
fi
|
||||
|
||||
# lock screen after x minutes and on laptop close lid
|
||||
xautolock -time 10 -locker ~/.local/bin/lock &
|
||||
xss-lock -- ~/.local/bin/lock &
|
||||
xcompmgr &
|
||||
sxhkd &
|
||||
|
||||
if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]
|
||||
then
|
||||
xwallpaper --output HDMI-2 --zoom ~/.cache/wall2.png --output DP-1 --zoom ~/.cache/wall1.png &
|
||||
elif [ -e ~/.cache/wall1.png ]
|
||||
then
|
||||
xwallpaper --output eDP1 --zoom ~/.cache/wall1.png &
|
||||
fi
|
||||
|
||||
# switch off microphones
|
||||
amixer -c 2 set Mic nocap
|
||||
amixer -c 3 set Mic nocap
|
||||
|
||||
unclutter &
|
||||
dunst &
|
||||
slstatus &
|
||||
|
||||
redshift-gtk &
|
||||
nm-applet &
|
||||
syncthing-gtk &
|
||||
gpodder &
|
||||
|
||||
exec st -c tmux -e tmux &
|
||||
exec spotify &
|
||||
|
||||
if [ -e /usr/bin/firefox ]
|
||||
then
|
||||
exec firefox &
|
||||
elif [ -e /usr/bin/iceweasel ]
|
||||
then
|
||||
exec iceweasel &
|
||||
fi
|
3
dwm/.local/bin/lock
Executable file
3
dwm/.local/bin/lock
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
gllock
|
12
dwm/.local/bin/maimpick
Executable file
12
dwm/.local/bin/maimpick
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
TIMESTAMP=$(date '+%Y-%m-%d-%H%M%S')
|
||||
|
||||
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
|
||||
"a selected area") maim -s ~/Pictures/Screenshots/pic-selected-"$TIMESTAMP".png && notify-send -i ~/Pictures/Screenshots/pic-selected-"$TIMESTAMP".png "Desktop Screenshot pic-selected-$TIMESTAMP.png" ;;
|
||||
"current window") maim -i "$(xdotool getactivewindow)" ~/Pictures/Screenshots/pic-window-"$TIMESTAMP".png && notify-send -i ~/Pictures/Screenshots/pic-window-"$TIMESTAMP".png "Desktop Screenshot pic-window-$TIMESTAMP.png";;
|
||||
"full screen") maim ~/Pictures/Screenshots/pic-full-"$TIMESTAMP".png && notify-send -i ~/Pictures/Screenshots/pic-full-"$TIMESTAMP".png "Desktop Screenshot pic-full-$TIMESTAMP.png" ;;
|
||||
"a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
|
||||
"current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
|
||||
"full screen (copy)") maim | xclip -selection clipboard -t image/png ;;
|
||||
esac
|
6
dwm/.local/bin/screen_desktop
Executable file
6
dwm/.local/bin/screen_desktop
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
xrandr --newmode "2560x1440_40" 201.00 2560 2720 2984 3408 1440 1443 1448 1476 -hsync +vsync
|
||||
xrandr --addmode HDMI-2 2560x1440_40
|
||||
|
||||
xrandr --output VGA-1 --off --output DP-1 --primary --mode 3840x2160 --rotate normal --output HDMI-3 --off --output HDMI-2 --mode 2560x1440_40 --pos 0x0 --rotate left --output HDMI-1 --off
|
14
dwm/.xinitrc
Normal file
14
dwm/.xinitrc
Normal file
@ -0,0 +1,14 @@
|
||||
setxkbmap -option caps:escape
|
||||
|
||||
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
|
||||
|
||||
# Enable numberlock
|
||||
if [ -x /usr/bin/numlockx ]; then
|
||||
/usr/bin/numlockx on
|
||||
fi
|
||||
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export AWT_TOOLKIT=MToolkit
|
||||
wmname LG3D
|
||||
|
||||
exec bspwm
|
@ -1,13 +0,0 @@
|
||||
# Script: isactive-bluetooth
|
||||
|
||||
A script that shows if bluetooth is on or off.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/isactive-bluetooth]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/isactive-bluetooth.sh
|
||||
interval = 10
|
||||
```
|
@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$(systemctl is-active bluetooth.service)" = "active" ]; then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
@ -1,25 +0,0 @@
|
||||
# Script: player-mpris-tail
|
||||
|
||||
This script displays the current track and the play-pause status without polling. Information is obtained by listening to MPRIS events, so it is updated instantaneously on change.
|
||||
|
||||
![player-mpris-tail](screenshots/1.png)
|
||||
|
||||
![player-mpris-tail](screenshots/2.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* [playerctl](https://github.com/acrisci/playerctl)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/player-mpris-tail]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/player-mpris-tail.py
|
||||
tail = true
|
||||
click-left = ~/polybar-scripts/player-ctrl.sh previous
|
||||
click-right = ~/polybar-scripts/player-ctrl.sh next
|
||||
click-middle = ~/polybar-scripts/player-ctrl.sh play-pause
|
||||
```
|
@ -1,40 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function listPlayers {
|
||||
echo "$(dbus-send --session --dest=org.freedesktop.DBus \
|
||||
--type=method_call --print-reply /org/freedesktop/DBus \
|
||||
org.freedesktop.DBus.ListNames | grep org.mpris.MediaPlayer2 |
|
||||
awk -F\" '{print $2}' | cut -d '.' -f4- )"
|
||||
}
|
||||
|
||||
function getPlayerStatus {
|
||||
playerctl --player="$1" status
|
||||
}
|
||||
|
||||
function getActivePlayer {
|
||||
players=($(listPlayers))
|
||||
for player in ${players[@]}; do
|
||||
if [ "$(getPlayerStatus "${player}")" == "Playing" ]; then
|
||||
playing=$player
|
||||
fi
|
||||
done
|
||||
for player in ${players[@]}; do
|
||||
if [ "$(getPlayerStatus "${player}")" == "Paused" ]; then
|
||||
paused=$player
|
||||
fi
|
||||
done
|
||||
if [ -n "$playing" ]; then
|
||||
echo "$playing"
|
||||
elif [ -n "$paused" ]; then
|
||||
echo "$paused"
|
||||
else
|
||||
# Return last (newest?) player
|
||||
echo ${players[@]: -1}
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$1" == "--get-active" ]; then
|
||||
getActivePlayer
|
||||
else
|
||||
exec playerctl --player="$(getActivePlayer)" "$@"
|
||||
fi
|
@ -1,115 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import time
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
import gi
|
||||
gi.require_version('Playerctl', '1.0')
|
||||
from gi.repository import Playerctl, GLib
|
||||
|
||||
MUSIC_ICON = ''
|
||||
PAUSE_ICON = ''
|
||||
PLAYER_CLOSED_ICON = ''
|
||||
|
||||
def listPlayers():
|
||||
return [
|
||||
playername.split('"')[1].split('.')[-1]
|
||||
for playername
|
||||
in subprocess.getoutput(
|
||||
'dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep org.mpris.MediaPlayer2'
|
||||
).split("\n")
|
||||
]
|
||||
|
||||
def getPlayerStatus(playername):
|
||||
return subprocess.getoutput(
|
||||
'playerctl --player="%s" status' % playername
|
||||
)
|
||||
|
||||
def getActivePlayer():
|
||||
players = [ { 'name': player, 'status': getPlayerStatus(player) } for player in listPlayers() ]
|
||||
playing = [ player['name'] for player in players if player['status'] == 'Playing' ]
|
||||
paused = [ player['name'] for player in players if player['status'] == 'Paused' ]
|
||||
if len(playing):
|
||||
return playing[-1]
|
||||
if len(paused):
|
||||
return paused[-1]
|
||||
if len(players):
|
||||
return players[-1]['name']
|
||||
|
||||
class PlayerStatus:
|
||||
def __init__(self):
|
||||
self._player = None
|
||||
self._player_class = None
|
||||
self._player_name = None
|
||||
self._icon = PAUSE_ICON
|
||||
|
||||
self._last_artist = None
|
||||
self._last_title = None
|
||||
|
||||
self._last_status = ''
|
||||
|
||||
def show(self):
|
||||
self._init_player()
|
||||
|
||||
# Wait for events
|
||||
main = GLib.MainLoop()
|
||||
main.run()
|
||||
|
||||
def _init_player(self):
|
||||
while True:
|
||||
try:
|
||||
self._player_name = getActivePlayer()
|
||||
self._player_class = Playerctl.Player()
|
||||
if self._player_name:
|
||||
self._player = self._player_class.new(self._player_name)
|
||||
else:
|
||||
self._player = self._player_class.new()
|
||||
self._player.on('metadata', self._on_metadata)
|
||||
self._player.on('play', self._on_play)
|
||||
self._player.on('pause', self._on_pause)
|
||||
self._player.on('exit', self._on_exit)
|
||||
status = self._player.get_property('status')
|
||||
if status == 'Playing':
|
||||
self._icon = MUSIC_ICON
|
||||
elif status == 'Paused':
|
||||
self._icon = PAUSE_ICON
|
||||
self._on_metadata(self._player, self._player.get_property('metadata'))
|
||||
break
|
||||
|
||||
except:
|
||||
self._print_flush(PLAYER_CLOSED_ICON)
|
||||
time.sleep(2)
|
||||
|
||||
def _on_metadata(self, player, e):
|
||||
if 'xesam:artist' in e.keys() and 'xesam:title' in e.keys():
|
||||
self._artist = e['xesam:artist'][0]
|
||||
self._title = e['xesam:title']
|
||||
self._print_song()
|
||||
|
||||
def _on_play(self, player):
|
||||
self._icon = MUSIC_ICON
|
||||
self._print_song()
|
||||
|
||||
def _on_pause(self, player):
|
||||
self._icon = PAUSE_ICON
|
||||
self._print_song()
|
||||
|
||||
def _on_exit(self, player):
|
||||
self._init_player()
|
||||
|
||||
def _print_song(self):
|
||||
self._print_flush(
|
||||
'{} {} - {}'.format(self._icon, self._artist, self._title))
|
||||
|
||||
"""
|
||||
Seems to assure print() actually prints when no terminal is connected
|
||||
"""
|
||||
|
||||
def _print_flush(self, status, **kwargs):
|
||||
if status != self._last_status:
|
||||
print(status, **kwargs)
|
||||
sys.stdout.flush()
|
||||
self._last_status = status
|
||||
|
||||
PlayerStatus().show()
|
Binary file not shown.
Before Width: | Height: | Size: 9.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.0 KiB |
@ -1,24 +0,0 @@
|
||||
# Script: updates-arch-combined
|
||||
|
||||
A script that shows if there are updates for Arch Linux and AUR updates.
|
||||
|
||||
See also [updates-arch](../updates-arch) and [updates-arch-aur](../updates-arch-aur).
|
||||
|
||||
![updates-arch-combined](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
The possibilities depend on your AUR helper. Not all helpers can report the pending updates.
|
||||
|
||||
At the moment `trizen` and `cower` are documented. Take a look at the script to see how it works.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/updates-arch-combined]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/updates-arch-combined.sh
|
||||
interval = 600
|
||||
```
|
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB |
@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates_arch=$(checkupdates | wc -l)
|
||||
|
||||
# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then
|
||||
if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then
|
||||
updates_aur=0
|
||||
fi
|
||||
|
||||
updates=$(("$updates_arch" + "$updates_aur"))
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo " $updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
@ -1,564 +0,0 @@
|
||||
;=====================================================
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains alot of information
|
||||
;
|
||||
;=====================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/laptop-bottom]
|
||||
bottom = true
|
||||
monitor = ${env:MONITOR:e-DP1}
|
||||
width = 100%
|
||||
|
||||
height = 27
|
||||
radius = 6.0
|
||||
fixed-center = false
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = DejaVuSansMono Nerd Font Mono:pixelsize=14
|
||||
font-1 = "Wuncon Siji:pixelsize=14;1"
|
||||
|
||||
modules-center = mpd player-mpris-tail
|
||||
|
||||
[bar/laptop-top]
|
||||
monitor = ${env:MONITOR:e-DP1}
|
||||
width = 100%
|
||||
height = 27
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 6.0
|
||||
fixed-center = false
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = DejaVuSansMono Nerd Font Mono:pixelsize=14
|
||||
font-1 = "Wuncon Siji:pixelsize=14;1"
|
||||
|
||||
modules-left = i3
|
||||
modules-center = tun0 tun1 wlan bluetooth
|
||||
modules-right = github updates-arch-combined battery xbacklight filesystem volume-laptop memory cpu temperature date
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
;tray-transparent = true
|
||||
;tray-background = #0063ff
|
||||
|
||||
;wm-restack = bspwm
|
||||
;wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
;scroll-up = bspwm-desknext
|
||||
;scroll-down = bspwm-deskprev
|
||||
|
||||
;scroll-up = i3wm-wsnext
|
||||
;scroll-down = i3wm-wsprev
|
||||
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
|
||||
[bar/monitor1]
|
||||
monitor = ${env:MONITOR:DP-1}
|
||||
width = 100%
|
||||
height = 27
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 6.0
|
||||
fixed-center = false
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = DejaVuSansMono Nerd Font Mono:pixelsize=10
|
||||
font-1 = "Wuncon Siji:pixelsize=10;1"
|
||||
|
||||
modules-left = i3
|
||||
modules-center = mpd player-mpris-tail
|
||||
modules-right = github updates-arch-combined bluetooth eth filesystem volume memory cpu temperature date
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
;tray-transparent = true
|
||||
;tray-background = #0063ff
|
||||
|
||||
;wm-restack = bspwm
|
||||
;wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
;scroll-up = bspwm-desknext
|
||||
;scroll-down = bspwm-deskprev
|
||||
|
||||
;scroll-up = i3wm-wsnext
|
||||
;scroll-down = i3wm-wsprev
|
||||
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
mount-1 = /home
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
; Only show workspaces on the same output as the bar
|
||||
;pin-workspaces = true
|
||||
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = #000
|
||||
label-mode-background = ${colors.primary}
|
||||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %index%
|
||||
label-focused-background = ${module/bspwm.label-focused-background}
|
||||
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||
|
||||
; unfocused = Inactive workspace on any monitor
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||
|
||||
; visible = Active workspace on unfocused monitor
|
||||
label-visible = %index%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
; urgent = Workspace with urgency hint set
|
||||
label-urgent = %index%
|
||||
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
icon-prev =
|
||||
icon-stop =
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label =
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #ff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%%
|
||||
format = <label> <ramp-coreload>
|
||||
|
||||
ramp-coreload-0 = ▁
|
||||
ramp-coreload-1 = ▂
|
||||
ramp-coreload-2 = ▃
|
||||
ramp-coreload-3 = ▄
|
||||
ramp-coreload-4 = ▅
|
||||
ramp-coreload-5 = ▆
|
||||
ramp-coreload-6 = ▇
|
||||
ramp-coreload-7 = █
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
||||
ramp-used-0 = ▁
|
||||
ramp-used-1 = ▂
|
||||
ramp-used-2 = ▃
|
||||
ramp-used-3 = ▄
|
||||
ramp-used-4 = ▅
|
||||
ramp-used-5 = ▆
|
||||
ramp-used-6 = ▇
|
||||
ramp-used-7 = █
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp4s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-packetloss = <animation-packetloss> <label-connected>
|
||||
format-disconnected =
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
|
||||
label-connected = "%essid% %signal% %downspeed:8% %upspeed:8%"
|
||||
|
||||
ramp-signal-0 = ▁
|
||||
ramp-signal-1 = ▂
|
||||
ramp-signal-2 = ▃
|
||||
ramp-signal-3 = ▄
|
||||
ramp-signal-4 = ▅
|
||||
ramp-signal-5 = ▆
|
||||
ramp-signal-6 = ▇
|
||||
ramp-signal-7 = █
|
||||
|
||||
animation-packetloss-0 = ⚠
|
||||
animation-packetloss-1 = 📶
|
||||
; Framerate in milliseconds
|
||||
animation-packetloss-framerate = 500
|
||||
|
||||
[module/tun0]
|
||||
type = internal/network
|
||||
interface = tun0
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = "嬨 "
|
||||
label-connected = "%ifname%"
|
||||
|
||||
[module/tun1]
|
||||
type = internal/network
|
||||
interface = tun1
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = "嬨 "
|
||||
label-connected = "%ifname%"
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = eno1
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = "%local_ip% %downspeed% %upspeed%"
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
;
|
||||
[module/enp0s31f6]
|
||||
type = internal/network
|
||||
interface = enp0s31f6
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = "%local_ip% %downspeed% %upspeed%"
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
|
||||
date =
|
||||
date-alt = " %d-%m-%Y"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix =
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
label = %date% %time%
|
||||
|
||||
[module/volume]
|
||||
type = internal/volume
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = 蓼
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/volume-laptop]
|
||||
type = internal/volume
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = 蓼
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature%
|
||||
label-warn = %temperature%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
menu-0-0 = reboot
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = power off
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[module/github]
|
||||
type = internal/github
|
||||
token = ${file:~/.github-access-token}
|
||||
format = <label>
|
||||
label = " %notifications%"
|
||||
|
||||
[module/updates-arch-combined]
|
||||
type = custom/script
|
||||
exec = /bin/sh ~/.config/polybar/bin/updates-arch-combined/updates-arch-combined.sh
|
||||
interval = 600
|
||||
|
||||
[module/player-mpris-tail]
|
||||
type = custom/script
|
||||
exec = python ~/.config/polybar/bin/player-mpris-tail/player-mpris-tail.py
|
||||
tail = true
|
||||
click-left = /bin/sh ~/.config/polybar/bin/player-mpris-tail/player-ctrl.sh previous
|
||||
click-right = /bin/sh ~/.config/polybar/bin/player-mpris-tail/player-ctrl.sh next
|
||||
click-middle = /bin/sh ~/.config/polybar/bin/player-mpris-tail/player-ctrl.sh play-pause
|
||||
|
||||
[module/bluetooth]
|
||||
type = custom/script
|
||||
exec = /bin/sh ~/.config/polybar/bin/isactive-bluetooth/isactive-bluetooth.sh
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
|
||||
[global/wm]
|
||||
margin-top = 5
|
||||
margin-bottom = 5
|
||||
|
||||
; vim:ft=dosini
|
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar monitor1 &
|
||||
|
||||
echo "Bars launched..."
|
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar laptop-top &
|
||||
polybar laptop-bottom &
|
||||
|
||||
echo "Bars launched..."
|
Loading…
Reference in New Issue
Block a user