Màj conf i3, MOC, Conky + Ajout HTOP
This commit is contained in:
parent
895271871b
commit
237e903e77
8 changed files with 101 additions and 39 deletions
|
@ -2,8 +2,8 @@
|
|||
LocationMode=path-bar
|
||||
ShowHidden=false
|
||||
ShowSizeColumn=true
|
||||
GeometryX=1668
|
||||
GeometryY=542
|
||||
GeometryX=516
|
||||
GeometryY=246
|
||||
GeometryWidth=887
|
||||
GeometryHeight=585
|
||||
SortColumn=name
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Settings]
|
||||
gtk-application-prefer-dark-theme=false
|
||||
gtk-theme-name=GlossyBlack
|
||||
gtk-theme-name=Adapta-Nokto
|
||||
gtk-icon-theme-name=Vertex-Icons
|
||||
gtk-font-name=Linux Biolinum 10
|
||||
gtk-button-images=1
|
||||
|
|
26
.config/htop/htoprc
Normal file
26
.config/htop/htoprc
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=47
|
||||
sort_direction=1
|
||||
hide_threads=0
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=1
|
||||
shadow_other_users=1
|
||||
show_thread_names=1
|
||||
show_program_path=1
|
||||
highlight_base_name=1
|
||||
highlight_megabytes=1
|
||||
highlight_threads=1
|
||||
tree_view=1
|
||||
header_margin=1
|
||||
detailed_cpu_time=1
|
||||
cpu_count_from_zero=0
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=0
|
||||
color_scheme=0
|
||||
delay=15
|
||||
left_meters=LeftCPUs2 Blank CPU Memory Swap Blank Battery Tasks
|
||||
left_meter_modes=1 2 1 1 1 2 1 2
|
||||
right_meters=RightCPUs2 Blank CPU Memory LoadAverage Blank Clock Uptime
|
||||
right_meter_modes=1 2 2 2 2 2 2 2
|
|
@ -93,10 +93,10 @@ bindsym $mod+Ctrl+m exec pavucontrol
|
|||
################################################################################################
|
||||
|
||||
# Screen brightness controls
|
||||
#bindsym XF86MonBrightnessUp exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) + 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 937 > /sys/class/backlight/intel_backlight/brightness
|
||||
#bindsym XF86MonBrightnessDown exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) - 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 0 > /sys/class/backlight/intel_backlight/brightness
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 1%
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 1%
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) + 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 937 > /sys/class/backlight/intel_backlight/brightness
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) - 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 0 > /sys/class/backlight/intel_backlight/brightness
|
||||
#bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5%
|
||||
#bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5%
|
||||
bindsym XF86HomePage exec --no-startup-id pkill -x -USR1 redshift
|
||||
|
||||
# Volume controls
|
||||
|
@ -371,7 +371,7 @@ exec --no-startup-id redshift
|
|||
#exec --no-startup-id setxkbmap fr oss
|
||||
exec --no-startup-id nm-applet
|
||||
exec --no-startup-id env DRI_PRIME=1 steam-native -silent
|
||||
exec --no-startup-id qbittorrent
|
||||
exec --no-startup-id sleep 5 && qbittorrent
|
||||
#exec --no-startup-id gdfs $HOME/.google_drive $HOME/Google_Drive/
|
||||
#exec --no-startup-id transmission-gtk -m
|
||||
exec --no-startup-id play -q "$HOME/Musique/WELCOME BACK.wav"
|
||||
|
|
2
.conkyrc
2
.conkyrc
|
@ -98,7 +98,7 @@ Uptime$alignr$uptime
|
|||
Ventilateur$alignr${if_match $ibm_fan>=3000}${color CC99CC}$endif$ibm_fan RPM$color
|
||||
Entropie$alignr$entropy_avail - $entropy_perc%
|
||||
IP publique$alignr${scroll wait 24 1 4 ${execi 300 curl --connect-timeout 5 ifconfig.co}}
|
||||
breizh.me$alignr${execi 300 host breizh.me | grep 'has address' | cut -d' ' -f4}
|
||||
#breizh.me$alignr${execi 300 host breizh.me | grep 'has address' | cut -d' ' -f4}
|
||||
|
||||
${if_match $battery_percent<10}${color CC99CC}${blink Batterie $battery}${else}Batterie $battery$endif
|
||||
${if_match $battery_percent<20}${color CC99CC}$else${if_match $battery_percent<60}${color 6699CC}$else${color 66CCCC}$endif$endif$battery_bar$color
|
||||
|
|
|
@ -1,39 +1,73 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
if pidof mocp &>/dev/null
|
||||
then
|
||||
origstatus=$(mocp -Q "%state")
|
||||
else
|
||||
origstatus=STOP
|
||||
[[ -n "$BLOCK_BUTTON" ]] && mocp -S
|
||||
fi
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) mocp -r ;;
|
||||
1) [[ "$origstatus" != "STOP" ]] && mocp -r || mocp -p ;;
|
||||
2) mocp -G ;;
|
||||
3) mocp -f ;;
|
||||
3) [[ "$origstatus" != "STOP" ]] && mocp -f || mocp -p ;;
|
||||
4) mocp -j $(($(mocp -Q "%cs") - 5))s ;;
|
||||
5) mocp -j $(($(mocp -Q "%cs") + 5))s ;;
|
||||
esac
|
||||
|
||||
status=$(mocp -Q "%state")
|
||||
case $status in
|
||||
STOP ) status="<span foreground=\"#F2777A\">⏹</span>" ;;
|
||||
PAUSE ) status="<span foreground=\"#FFCC66\">⏸</span>" ;;
|
||||
PLAY ) status="<span foreground=\"#99CC99\">⏵</span>" ;;
|
||||
status="<span foreground=\"#6699CC\">?</span>"
|
||||
case $origstatus in
|
||||
STOP ) status="<span foreground=\"#F2777A\">■</span>" ;;
|
||||
PAUSE ) status="<span foreground=\"#FFCC66\">∥</span>" ;;
|
||||
PLAY ) status="<span foreground=\"#99CC99\">▶</span>" ;;
|
||||
esac
|
||||
|
||||
dots=
|
||||
song=$(mocp -Q "%song")
|
||||
|
||||
[[ -z "$song" ]] && song=$(basename "$(mocp -Q %file)")
|
||||
|
||||
if [ ${#song} -gt 30 ]
|
||||
if [[ "$origstatus" != "STOP" ]]
|
||||
then
|
||||
if [[ -f /dev/shm/mocp ]]
|
||||
then
|
||||
song=$(</dev/shm/mocp)
|
||||
else
|
||||
song=$(mocp -Q "%song")
|
||||
[[ -z "$song" ]] && song=$(basename "$(mocp -Q %file)")
|
||||
[[ -n "$song" ]] && echo "$song" > /dev/shm/mocp
|
||||
fi
|
||||
|
||||
song="${song//&/and}"
|
||||
|
||||
if [ ${#song} -gt 30 ]
|
||||
then
|
||||
dots="…"
|
||||
fi
|
||||
if [ ${#song} -gt 15 ]
|
||||
then
|
||||
fi
|
||||
if [ ${#song} -gt 15 ]
|
||||
then
|
||||
shortdots="…"
|
||||
fi
|
||||
|
||||
time="$(mocp -Q "[%ct %tl %tt]")"
|
||||
shorttime="$(mocp -Q "%ct %tl")"
|
||||
|
||||
if [[ "$time" = "[ ]" ]] || [[ -z "$time" ]]
|
||||
then
|
||||
time="[--:-- --:-- --:--]"
|
||||
fi
|
||||
|
||||
if [[ -z "$shorttime" ]] || [[ "$shorttime" = " " ]]
|
||||
then
|
||||
shorttime="--:-- --:--"
|
||||
fi
|
||||
|
||||
if [[ "${#shorttime}" -eq 6 ]]
|
||||
then
|
||||
shorttime="${shorttime}--:--"
|
||||
fi
|
||||
|
||||
echo "$status ${song:0:30}$dots ${time/ ]/ --:-- --:--]}"
|
||||
echo "$status ${song:0:15}$shortdots $shorttime"
|
||||
else
|
||||
[[ -f /dev/shm/mocp ]] && rm /dev/shm/mocp
|
||||
echo "$status [--:-- --:-- --:--]"
|
||||
echo "$status --:-- --:--"
|
||||
fi
|
||||
|
||||
time="$(mocp -Q "[%ct %tl %tt]")"
|
||||
shorttime="$(mocp -Q "%ct %tl")"
|
||||
|
||||
[[ -z "$time" ]] && time="[00:00 00:00 00:00]"
|
||||
[[ -z "$shorttime" ]] && shorttime="00:00 00:00"
|
||||
|
||||
echo "$status ${song:0:30}$dots $time"
|
||||
echo "$status ${song:0:15}$shortdots $shorttime"
|
||||
|
|
|
@ -87,8 +87,8 @@ ShowStreamErrors = yes
|
|||
#MP3IgnoreCRCErrors = yes
|
||||
|
||||
# Set playback toggles.
|
||||
#Repeat = no
|
||||
#Shuffle = no
|
||||
Repeat = yes
|
||||
Shuffle = yes
|
||||
AutoNext = yes
|
||||
|
||||
# Default FormatString:
|
||||
|
@ -177,7 +177,7 @@ HideFileExtension = yes
|
|||
# Show file time in menu? Possible values: 'yes', 'no' and 'IfAvailable'
|
||||
# (meaning show the time only when it is already known, which often works
|
||||
# faster).
|
||||
ShowTime = IfAvailable
|
||||
ShowTime = yes
|
||||
|
||||
# Show time played as a percentage in the time progress bar.
|
||||
ShowTimePercent = yes
|
||||
|
|
|
@ -23,9 +23,11 @@ album="$5"
|
|||
if [[ -z "$title" ]]
|
||||
then
|
||||
notify-send "Music On Console" "$(basename "$file" | rev | cut -d'.' -f2- | rev)"
|
||||
echo "$(basename "$file" | rev | cut -d'.' -f2- | rev)" > /dev/shm/mocp
|
||||
else
|
||||
string="$title"
|
||||
[[ -n "$artist" ]] && string="$artist - $string"
|
||||
[[ -n "$album" ]] && string="$string\n$album"
|
||||
notify-send "Music On Console" "$string"
|
||||
echo "$title" > /dev/shm/mocp
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue