Refonte i3blocks
This commit is contained in:
parent
b52a0c9014
commit
ab471b32d7
21 changed files with 75 additions and 167 deletions
|
@ -57,9 +57,9 @@ Xautolock.locker: i3lock-wrapper -e
|
|||
XTerm*reverseVideo: on
|
||||
XTerm*selectToClipboard: true
|
||||
|
||||
!URxvt.font: xft:IBM Plex Mono:antialias=true:pixelsize=13,xft:DejaVu Sans Mono:antialias=true:pixelsize=13,xft:Noto Sans Mono:pixelsize=13:antialias=true
|
||||
URxvt.font: xft:xos4 Terminus:size=12,xft:DejaVu Sans Mono:antialias=true:size=12,xft:Noto Sans Mono:size=12:antialias=true
|
||||
!URxvt.letterSpace: -1
|
||||
!URxvt.font: xft:IBM Plex Mono:pixelsize=14,xft:DejaVu Sans Mono:pixelsize=14,xft:Noto Sans Mono:pixelsize=14
|
||||
URxvt.font: xft:xos4 Terminus:pixelsize=14,xft:DejaVu Sans Mono:antialias=false:pixelsize=14,xft:Noto Sans Mono:pixelsize=14:antialias=false
|
||||
!URxvt.letterSpace: 0
|
||||
!URxvt.depth: 32
|
||||
!URxvt.background: [100]#000000
|
||||
|
||||
|
@ -149,6 +149,7 @@ URxvt*cursorUnderline: true
|
|||
! URxvt*font: xft:Latin Modern Mono
|
||||
! URxvt*boldFont: xft:Latin Modern Mono:size=12,xft:xos4 Terminus
|
||||
! URxvt*italicFont: xft:Latin Modern Mono:size=12,xft:xos4 Terminus
|
||||
!URxvt.letterSpace: -1
|
||||
! URxvt*boldItalicFont: xft:Latin Modern Mono:size=12,xft:xos4 Terminus
|
||||
! URxvt*intensityStyles: true
|
||||
! URxvt*inputMethod: name
|
||||
|
|
|
@ -22,7 +22,7 @@ if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
|||
export XDG_CURRENT_DESKTOP=i3
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export BROWSER="systemd-run --user --scope -p MemoryLimit=2G firefox"
|
||||
export BROWSER="systemd-run --user --scope -p MemoryMax=2G firefox"
|
||||
export TERMINAL=urxvtc
|
||||
startx
|
||||
logout
|
||||
|
|
|
@ -123,15 +123,13 @@ method = ncurses
|
|||
# background must also be defined in hex or remain commented out. 1 = on, 0 = off.
|
||||
# You can define as many as 8 different colors. They range from bottom to top of screen
|
||||
gradient = 1
|
||||
gradient_count = 8
|
||||
gradient_count = 6
|
||||
gradient_color_1 = '#6699CC'
|
||||
gradient_color_2 = '#6699CC'
|
||||
gradient_color_3 = '#6699CC'
|
||||
gradient_color_4 = '#6699CC'
|
||||
gradient_color_5 = '#CC99CC'
|
||||
gradient_color_6 = '#CC99CC'
|
||||
gradient_color_7 = '#F2777A'
|
||||
gradient_color_8 = '#F2777A'
|
||||
gradient_color_3 = '#CC99CC'
|
||||
gradient_color_4 = '#CC99CC'
|
||||
gradient_color_5 = '#F2777A'
|
||||
gradient_color_6 = '#F2777A'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ conky.config = {
|
|||
format_human_readable = true,
|
||||
short_units = true,
|
||||
if_up_strictness = 'link',
|
||||
use_spacer = left,
|
||||
use_spacer = right,
|
||||
text_buffer_size = 2048,
|
||||
|
||||
color2 = 'F2F0EC',
|
||||
|
|
|
@ -101,18 +101,16 @@ bindsym $mod+Ctrl+m exec pavucontrol
|
|||
bindsym $mod+Home exec --no-startup-id pkill -x -USR1 redshift
|
||||
|
||||
# Volume controls
|
||||
# bindsym XF86AudioRaiseVolume exec --no-startup-id BLOCK_BUTTON=4 ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
# bindsym XF86AudioLowerVolume exec --no-startup-id BLOCK_BUTTON=5 ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
# bindsym XF86AudioMute exec --no-startup-id BLOCK_BUTTON=2 ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
# bindsym XF86AudioMicMute exec --no-startup-id BLOCK_BUTTON=2 BLOCK_INSTANCE=Capture ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id button=4 ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id button=5 ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86AudioMute exec --no-startup-id button=2 ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86AudioMicMute exec --no-startup-id button=2 instance=mic ${HOME}/.i3blocks/volume && pkill -RTMIN+10 i3blocks
|
||||
|
||||
# Media controls
|
||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||||
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
||||
bindsym $mod+XF86AudioPlay exec --no-startup-id mpc stop
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id mpc volume +2
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id mpc volume -2
|
||||
|
||||
# Beep tog
|
||||
bindsym $mod+Delete exec --no-startup-id $HOME/.local/bin/toggle-beep && pkill -SIGRTMIN+14 i3blocks
|
||||
|
|
|
@ -48,9 +48,9 @@ interval=5
|
|||
# Support multiple chips, though lm-sensors.
|
||||
# The script may be called with -w and -c switches to specify thresholds,
|
||||
# see the script for details.
|
||||
[temperature]
|
||||
#[temperature]
|
||||
#instance=coretemp-isa-0000
|
||||
interval=3
|
||||
#interval=3
|
||||
#separator=false
|
||||
#
|
||||
#[temperature]
|
||||
|
@ -60,14 +60,14 @@ interval=3
|
|||
#
|
||||
# The type defaults to "mem" if the instance is not specified.
|
||||
[memory]
|
||||
#separator=false
|
||||
separator=false
|
||||
interval=2
|
||||
#min_width=RAM 99.99%
|
||||
|
||||
#[memory]
|
||||
#instance=swap
|
||||
[memory]
|
||||
instance=swap
|
||||
##separator=false
|
||||
#interval=2
|
||||
interval=2
|
||||
##min_width=swap 99.9%
|
||||
|
||||
# Disk usage
|
||||
|
@ -166,8 +166,13 @@ signal=13
|
|||
# The first parameter sets the step (and units to display)
|
||||
# The second parameter overrides the mixer selection
|
||||
# See the script for details.
|
||||
[toggle-sink]
|
||||
interval=once
|
||||
separator=false
|
||||
separator_block_width=0
|
||||
|
||||
[volume]
|
||||
instance=vol
|
||||
#instance=vol
|
||||
#instance=PCM
|
||||
interval=once
|
||||
signal=10
|
||||
|
@ -179,7 +184,6 @@ instance=mic
|
|||
interval=once
|
||||
signal=10
|
||||
|
||||
|
||||
# Key indicators
|
||||
#
|
||||
# Add the following bindings to i3 config file:
|
||||
|
@ -195,7 +199,6 @@ interval=60
|
|||
[beep]
|
||||
interval=once
|
||||
signal=14
|
||||
separator=false
|
||||
|
||||
[keyindicator]
|
||||
instance=Caps
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
{
|
||||
"aururl": "https://aur.archlinux.org",
|
||||
"buildDir": "/home/breizh/.cache/yay",
|
||||
"editor": "vim",
|
||||
"editorflags": "",
|
||||
"makepkgbin": "/usr/bin/makepkg",
|
||||
"makepkgconf": "",
|
||||
"pacmanbin": "/usr/bin/pacman",
|
||||
"pacmanconf": "/etc/pacman.conf",
|
||||
"tarbin": "/usr/bin/bsdtar",
|
||||
"redownload": "no",
|
||||
"rebuild": "no",
|
||||
"answerclean": "",
|
||||
"answerdiff": "",
|
||||
"answeredit": "",
|
||||
"answerupgrade": "",
|
||||
"gitbin": "git",
|
||||
"gpgbin": "gpg",
|
||||
"gpgflags": "",
|
||||
"mflags": "",
|
||||
"sortby": "name",
|
||||
"gitflags": "",
|
||||
"removemake": "yes",
|
||||
"requestsplitn": 50,
|
||||
"sortmode": 0,
|
||||
"completionrefreshtime": 7,
|
||||
"sudoloop": true,
|
||||
"timeupdate": false,
|
||||
"devel": false,
|
||||
"cleanAfter": false,
|
||||
"gitclone": true,
|
||||
"provides": true,
|
||||
"pgpfetch": true,
|
||||
"upgrademenu": true,
|
||||
"cleanmenu": true,
|
||||
"diffmenu": false,
|
||||
"editmenu": true,
|
||||
"combinedupgrade": true,
|
||||
"useask": false
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
[
|
||||
{
|
||||
"pkgname": "kickthemout-git",
|
||||
"url": "https://api.github.com/repos/k4m4/kickthemout/branches",
|
||||
"sha": "00997333823abe317bc0597e2740e54da443e045"
|
||||
},
|
||||
{
|
||||
"pkgname": "cheat-git",
|
||||
"url": "https://api.github.com/repos/chrisallenlane/cheat/branches",
|
||||
"sha": "aa1e12625e5ee42fbfdf6f5a093233a8b99af81a"
|
||||
},
|
||||
{
|
||||
"pkgname": "pacli",
|
||||
"url": "https://api.github.com/repos/Manjaro-Pek/pacli",
|
||||
"sha": "1e1b0c4f6ab2748abb67694a45905ee86ed50316"
|
||||
},
|
||||
{
|
||||
"pkgname": "alacritty-terminfo-git",
|
||||
"url": "https://api.github.com/repos/jwilm/alacritty",
|
||||
"sha": "475ebecfc4e0648242e82e256dee1489f3a3fe81"
|
||||
},
|
||||
{
|
||||
"pkgname": "siji-git",
|
||||
"url": "https://api.github.com/repos/stark/siji",
|
||||
"sha": "25468227348e2d4b3abbc163b2e2d68882fa2ba6"
|
||||
},
|
||||
{
|
||||
"pkgname": "alacritty-git",
|
||||
"url": "https://api.github.com/repos/jwilm/alacritty",
|
||||
"sha": "f298ebb2179eff947cdb9cb7a4bd96e9739eac5c"
|
||||
},
|
||||
{
|
||||
"pkgname": "fbterm-git",
|
||||
"url": "https://api.github.com/repos/izmntuk/fbterm",
|
||||
"sha": "5b48962aa46648a94e3f74609059830218730455"
|
||||
},
|
||||
{
|
||||
"pkgname": "polybar",
|
||||
"url": "https://api.github.com/repos/jaagr/polybar",
|
||||
"sha": "258f55a5ff59cd43274954fc0caf27ed5a457508"
|
||||
},
|
||||
{
|
||||
"pkgname": "i3lock-blur",
|
||||
"url": "https://api.github.com/repos/karulont/i3lock-blur",
|
||||
"sha": "17b092f82d452752475d6c5e3c23e3c7a88335ed"
|
||||
},
|
||||
{
|
||||
"pkgname": "vim-youcompleteme-git",
|
||||
"url": "https://api.github.com/repos/jwilm/racerd",
|
||||
"sha": "29cd4c6fd2a9301e49931c2e065b2e10c4b587e4"
|
||||
},
|
||||
{
|
||||
"pkgname": "bettercap-git",
|
||||
"url": "https://api.github.com/repos/bettercap/bettercap",
|
||||
"sha": "b63c20b757e1936b97fde6c403c5415a6178bfed"
|
||||
}
|
||||
]
|
|
@ -5,12 +5,10 @@ then
|
|||
$HOME/.local/bin/toggle-beep
|
||||
fi
|
||||
|
||||
echo -n "beep "
|
||||
|
||||
if [[ -e /dev/input/by-path/platform-pcspkr-event-spkr ]]
|
||||
then
|
||||
echo "<span foreground=\"#99CC99\">█</span>"
|
||||
echo "<span foreground=\"#99CC99\">beep</span>"
|
||||
else
|
||||
echo "<span foreground=\"#515151\">█</span>"
|
||||
echo "<span foreground=\"#747369\">beep</span>"
|
||||
fi
|
||||
|
||||
|
|
|
@ -19,5 +19,5 @@ if [[ -f "$runtime/oss" ]]
|
|||
then
|
||||
echo "oss "
|
||||
else
|
||||
echo "bepo"
|
||||
echo "bépo"
|
||||
fi
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
active=$(systemctl --user show -p ActiveState --value dunst.service)
|
||||
|
||||
echo -n "dunst "
|
||||
|
||||
if [[ "$active" == "active" ]]
|
||||
then
|
||||
if [[ -n "$button" ]]
|
||||
|
@ -13,10 +11,10 @@ then
|
|||
|
||||
if [[ "$(dunstctl is-paused)" == "true" ]]
|
||||
then
|
||||
echo "<span foreground=\"#FFCC66\">█</span>"
|
||||
echo "<span foreground=\"#FFCC66\">dunst</span>"
|
||||
else
|
||||
echo "<span foreground=\"#99CC99\">█</span>"
|
||||
echo "<span foreground=\"#99CC99\">dunst</span>"
|
||||
fi
|
||||
else
|
||||
echo "<span foreground=\"#F2777A\">█</span>"
|
||||
echo "<span foreground=\"#F2777A\">dunst</span>"
|
||||
fi
|
||||
|
|
|
@ -28,4 +28,4 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
echo "wan <span foreground=\"$color\">█</span>"
|
||||
echo "<span foreground=\"$color\">wan</span>"
|
||||
|
|
|
@ -8,7 +8,7 @@ if [[ "$status" = "on" ]]
|
|||
then
|
||||
color="#99CC99"
|
||||
else
|
||||
color="#515151"
|
||||
color="#747369"
|
||||
fi
|
||||
|
||||
echo "${instance,*} <span foreground=\"$color\">█</span>"
|
||||
echo "<span foreground=\"$color\">${instance,*}</span>"
|
||||
|
|
|
@ -50,5 +50,5 @@ else
|
|||
color15="#F2777A"
|
||||
fi
|
||||
|
||||
printf "load <span foreground=\"$color\">%4.4s</span> <span foreground=\"$color5\">%4.4s</span> <span foreground=\"$color15\">%4.4s</span>\n" ${load} ${load5} ${load15}
|
||||
#printf "load <span foreground=\"$color\">%4.4s</span> <span foreground=\"$color5\">%4.4s</span> <span foreground=\"$color15\">%4.4s</span>\n" ${load} ${load5} ${load15}
|
||||
printf "load <span foreground=\"$color\">%4.4s</span>\n" ${load}
|
||||
|
|
24
.i3blocks/toggle-sink
Executable file
24
.i3blocks/toggle-sink
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
currentport=$(pacmd list-sinks | grep -Po "active port:.*")
|
||||
|
||||
if [[ -n "$button" ]]
|
||||
then
|
||||
if [[ "$currentport" == "active port: <analog-output-lineout>" ]]
|
||||
then
|
||||
pacmd set-sink-port "alsa_output.pci-0000_0b_00.3.analog-stereo" "analog-output-headphones"
|
||||
echo "head"
|
||||
else
|
||||
pacmd set-sink-port "alsa_output.pci-0000_0b_00.3.analog-stereo" "analog-output-lineout"
|
||||
echo "line"
|
||||
fi
|
||||
pkill -RTMIN+10 i3blocks
|
||||
else
|
||||
if [[ "$currentport" == "active port: <analog-output-lineout>" ]]
|
||||
then
|
||||
echo "line"
|
||||
else
|
||||
echo "head"
|
||||
fi
|
||||
fi
|
|
@ -3,11 +3,9 @@
|
|||
runtime="${XDG_RUNTIME_DIR}/i3blocks"
|
||||
[[ ! -d "$runtime" ]] && mkdir -p "$runtime"
|
||||
|
||||
echo -n "updt "
|
||||
|
||||
if [[ -f ${runtime}/claws_offline ]]
|
||||
then
|
||||
echo "<span foreground=\"#F2777A\">█</span>"
|
||||
echo "<span foreground=\"#F2777A\">updt</span>"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
@ -22,9 +20,9 @@ total=$((${#avail[@]} + ${#aur[@]}))
|
|||
|
||||
if [[ $total -eq 0 ]]
|
||||
then
|
||||
echo "<span foreground=\"#99CC99\">█</span>"
|
||||
echo "<span foreground=\"#99CC99\">updt</span>"
|
||||
else
|
||||
echo "<span foreground=\"#FFCC66\">█</span>"
|
||||
echo "<span foreground=\"#FFCC66\">updt</span>"
|
||||
if [[ $(cat ${runtime}/updates) -lt $total ]] || [[ -n "$BLOCK_BUTTON" ]]
|
||||
then
|
||||
[[ $total -eq 1 ]] && dunstify -r "57453" "1 mise à jour disponible" "$(for item in ${avail[@]} ${aur[@]}; do echo -n $item; done)"
|
||||
|
|
|
@ -25,5 +25,5 @@ else
|
|||
color="#99CC99"
|
||||
fi
|
||||
|
||||
printf "%s <span foreground=\"%s\">%2d%%</span>\n" "$BLOCK_INSTANCE" "$color" "$volume"
|
||||
printf "%s <span foreground=\"%s\">%2d%%</span>\n" "$instance" "$color" "$volume"
|
||||
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo -n "vpn "
|
||||
|
||||
if nmcli dev | grep tun0 | cut -f3 | grep " connecté" &>/dev/null
|
||||
then
|
||||
echo "<span foreground=\"#99CC99\">█</span>"
|
||||
echo "<span foreground=\"#99CC99\">vpn</span>"
|
||||
[[ ! -f /dev/shm/vpn ]] && echo 1 > /dev/shm/vpn
|
||||
else
|
||||
echo "<span foreground=\"#515151\">█</span>"
|
||||
echo "<span foreground=\"#747369\">vpn</span>"
|
||||
if [[ -f /dev/shm/vpn ]]
|
||||
then
|
||||
notify-send -u critical "VPN" "Déconnecté"
|
||||
|
|
3
.local/bin/dmenu
Executable file
3
.local/bin/dmenu
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec /usr/bin/dmenu -i -nb "#393939" -nf "#a09f93" -sb "#6699cc" -sf "#2d2d2d" -fn "IBM Plex Mono-10" "$@"
|
|
@ -1,20 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
actualpwd="$PWD"
|
||||
|
||||
temp=$(mktemp -d)
|
||||
|
||||
cd "$temp"
|
||||
|
||||
for file in "${actualpwd}/"*
|
||||
do
|
||||
ln -s "$file" ./
|
||||
done
|
||||
|
||||
youtube-dl -o '%(title)s.%(ext)s' "$@" --exec "mv -n {} \"${actualpwd}/\""
|
||||
|
||||
status="$?"
|
||||
|
||||
#rm -rf "$temp"
|
||||
|
||||
exit $status
|
||||
youtube-dl --external-downloader aria2c "$@"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# XScreenSaver Preferences File
|
||||
# Written by xscreensaver-demo 5.43 for breizh on Sun Feb 23 16:34:34 2020.
|
||||
# Written by xscreensaver-demo 5.44 for breizh on Thu Nov 5 18:53:27 2020.
|
||||
# https://www.jwz.org/xscreensaver/
|
||||
|
||||
timeout: 0:15:00
|
||||
|
@ -280,6 +280,9 @@ programs: \
|
|||
GL: handsy -root \n\
|
||||
GL: deepstars -root \n\
|
||||
GL: gravitywell -root \n\
|
||||
scooter -root \n\
|
||||
GL: etruscanvenus -root \n\
|
||||
GL: gibson -root \n\
|
||||
|
||||
|
||||
pointerPollTime: 0:00:05
|
||||
|
|
Loading…
Reference in a new issue