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
|
LocationMode=path-bar
|
||||||
ShowHidden=false
|
ShowHidden=false
|
||||||
ShowSizeColumn=true
|
ShowSizeColumn=true
|
||||||
GeometryX=1668
|
GeometryX=516
|
||||||
GeometryY=542
|
GeometryY=246
|
||||||
GeometryWidth=887
|
GeometryWidth=887
|
||||||
GeometryHeight=585
|
GeometryHeight=585
|
||||||
SortColumn=name
|
SortColumn=name
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-application-prefer-dark-theme=false
|
gtk-application-prefer-dark-theme=false
|
||||||
gtk-theme-name=GlossyBlack
|
gtk-theme-name=Adapta-Nokto
|
||||||
gtk-icon-theme-name=Vertex-Icons
|
gtk-icon-theme-name=Vertex-Icons
|
||||||
gtk-font-name=Linux Biolinum 10
|
gtk-font-name=Linux Biolinum 10
|
||||||
gtk-button-images=1
|
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
|
# 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 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 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 XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5%
|
||||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 1%
|
#bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5%
|
||||||
bindsym XF86HomePage exec --no-startup-id pkill -x -USR1 redshift
|
bindsym XF86HomePage exec --no-startup-id pkill -x -USR1 redshift
|
||||||
|
|
||||||
# Volume controls
|
# Volume controls
|
||||||
|
@ -371,7 +371,7 @@ exec --no-startup-id redshift
|
||||||
#exec --no-startup-id setxkbmap fr oss
|
#exec --no-startup-id setxkbmap fr oss
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id env DRI_PRIME=1 steam-native -silent
|
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 gdfs $HOME/.google_drive $HOME/Google_Drive/
|
||||||
#exec --no-startup-id transmission-gtk -m
|
#exec --no-startup-id transmission-gtk -m
|
||||||
exec --no-startup-id play -q "$HOME/Musique/WELCOME BACK.wav"
|
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
|
Ventilateur$alignr${if_match $ibm_fan>=3000}${color CC99CC}$endif$ibm_fan RPM$color
|
||||||
Entropie$alignr$entropy_avail - $entropy_perc%
|
Entropie$alignr$entropy_avail - $entropy_perc%
|
||||||
IP publique$alignr${scroll wait 24 1 4 ${execi 300 curl --connect-timeout 5 ifconfig.co}}
|
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<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
|
${if_match $battery_percent<20}${color CC99CC}$else${if_match $battery_percent<60}${color 6699CC}$else${color 66CCCC}$endif$endif$battery_bar$color
|
||||||
|
|
|
@ -1,24 +1,41 @@
|
||||||
#!/bin/bash
|
#!/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
|
case $BLOCK_BUTTON in
|
||||||
1) mocp -r ;;
|
1) [[ "$origstatus" != "STOP" ]] && mocp -r || mocp -p ;;
|
||||||
2) mocp -G ;;
|
2) mocp -G ;;
|
||||||
3) mocp -f ;;
|
3) [[ "$origstatus" != "STOP" ]] && mocp -f || mocp -p ;;
|
||||||
4) mocp -j $(($(mocp -Q "%cs") - 5))s ;;
|
4) mocp -j $(($(mocp -Q "%cs") - 5))s ;;
|
||||||
5) mocp -j $(($(mocp -Q "%cs") + 5))s ;;
|
5) mocp -j $(($(mocp -Q "%cs") + 5))s ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
status=$(mocp -Q "%state")
|
status="<span foreground=\"#6699CC\">?</span>"
|
||||||
case $status in
|
case $origstatus in
|
||||||
STOP ) status="<span foreground=\"#F2777A\">⏹</span>" ;;
|
STOP ) status="<span foreground=\"#F2777A\">■</span>" ;;
|
||||||
PAUSE ) status="<span foreground=\"#FFCC66\">⏸</span>" ;;
|
PAUSE ) status="<span foreground=\"#FFCC66\">∥</span>" ;;
|
||||||
PLAY ) status="<span foreground=\"#99CC99\">⏵</span>" ;;
|
PLAY ) status="<span foreground=\"#99CC99\">▶</span>" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dots=
|
if [[ "$origstatus" != "STOP" ]]
|
||||||
|
then
|
||||||
|
if [[ -f /dev/shm/mocp ]]
|
||||||
|
then
|
||||||
|
song=$(</dev/shm/mocp)
|
||||||
|
else
|
||||||
song=$(mocp -Q "%song")
|
song=$(mocp -Q "%song")
|
||||||
|
|
||||||
[[ -z "$song" ]] && song=$(basename "$(mocp -Q %file)")
|
[[ -z "$song" ]] && song=$(basename "$(mocp -Q %file)")
|
||||||
|
[[ -n "$song" ]] && echo "$song" > /dev/shm/mocp
|
||||||
|
fi
|
||||||
|
|
||||||
|
song="${song//&/and}"
|
||||||
|
|
||||||
if [ ${#song} -gt 30 ]
|
if [ ${#song} -gt 30 ]
|
||||||
then
|
then
|
||||||
|
@ -32,8 +49,25 @@ fi
|
||||||
time="$(mocp -Q "[%ct %tl %tt]")"
|
time="$(mocp -Q "[%ct %tl %tt]")"
|
||||||
shorttime="$(mocp -Q "%ct %tl")"
|
shorttime="$(mocp -Q "%ct %tl")"
|
||||||
|
|
||||||
[[ -z "$time" ]] && time="[00:00 00:00 00:00]"
|
if [[ "$time" = "[ ]" ]] || [[ -z "$time" ]]
|
||||||
[[ -z "$shorttime" ]] && shorttime="00:00 00:00"
|
then
|
||||||
|
time="[--:-- --:-- --:--]"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$status ${song:0:30}$dots $time"
|
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"
|
echo "$status ${song:0:15}$shortdots $shorttime"
|
||||||
|
else
|
||||||
|
[[ -f /dev/shm/mocp ]] && rm /dev/shm/mocp
|
||||||
|
echo "$status [--:-- --:-- --:--]"
|
||||||
|
echo "$status --:-- --:--"
|
||||||
|
fi
|
||||||
|
|
|
@ -87,8 +87,8 @@ ShowStreamErrors = yes
|
||||||
#MP3IgnoreCRCErrors = yes
|
#MP3IgnoreCRCErrors = yes
|
||||||
|
|
||||||
# Set playback toggles.
|
# Set playback toggles.
|
||||||
#Repeat = no
|
Repeat = yes
|
||||||
#Shuffle = no
|
Shuffle = yes
|
||||||
AutoNext = yes
|
AutoNext = yes
|
||||||
|
|
||||||
# Default FormatString:
|
# Default FormatString:
|
||||||
|
@ -177,7 +177,7 @@ HideFileExtension = yes
|
||||||
# Show file time in menu? Possible values: 'yes', 'no' and 'IfAvailable'
|
# Show file time in menu? Possible values: 'yes', 'no' and 'IfAvailable'
|
||||||
# (meaning show the time only when it is already known, which often works
|
# (meaning show the time only when it is already known, which often works
|
||||||
# faster).
|
# faster).
|
||||||
ShowTime = IfAvailable
|
ShowTime = yes
|
||||||
|
|
||||||
# Show time played as a percentage in the time progress bar.
|
# Show time played as a percentage in the time progress bar.
|
||||||
ShowTimePercent = yes
|
ShowTimePercent = yes
|
||||||
|
|
|
@ -23,9 +23,11 @@ album="$5"
|
||||||
if [[ -z "$title" ]]
|
if [[ -z "$title" ]]
|
||||||
then
|
then
|
||||||
notify-send "Music On Console" "$(basename "$file" | rev | cut -d'.' -f2- | rev)"
|
notify-send "Music On Console" "$(basename "$file" | rev | cut -d'.' -f2- | rev)"
|
||||||
|
echo "$(basename "$file" | rev | cut -d'.' -f2- | rev)" > /dev/shm/mocp
|
||||||
else
|
else
|
||||||
string="$title"
|
string="$title"
|
||||||
[[ -n "$artist" ]] && string="$artist - $string"
|
[[ -n "$artist" ]] && string="$artist - $string"
|
||||||
[[ -n "$album" ]] && string="$string\n$album"
|
[[ -n "$album" ]] && string="$string\n$album"
|
||||||
notify-send "Music On Console" "$string"
|
notify-send "Music On Console" "$string"
|
||||||
|
echo "$title" > /dev/shm/mocp
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue