Added
This commit is contained in:
parent
cf9909c20b
commit
c9d662405b
@ -23,7 +23,7 @@ All my started apps and bar is in the file ```dwm_status```
|
|||||||
Only I added link to the ```~/.dwm``` like that:
|
Only I added link to the ```~/.dwm``` like that:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
┌─[yorune@Gentoo] - [~/.dwm] - [Sat May 25, 16:03]
|
┌─[yorune@Arch-I320] - [~/.dwm] - [Sat Sep 21, 23:19]
|
||||||
└─[$]> ls -l
|
└─[$]> ls -l
|
||||||
lrwxrwxrwx 1 yorune yorune 47 May 18 18:34 autostart.sh -> /home/yorune/MEGA/Systems/Gentoo/dwm/dwm_status
|
lrwxrwxrwx 1 yorune yorune 47 May 18 18:34 autostart.sh -> /home/yorune/MEGA/Systems/Gentoo/dwm/dwm_status
|
||||||
|
|
||||||
|
BIN
Screenshot.png
BIN
Screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 2.5 MiB After Width: | Height: | Size: 1.9 MiB |
BIN
Wallpaper.jpg
Normal file
BIN
Wallpaper.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 MiB |
14
config.h
14
config.h
@ -1,6 +1,6 @@
|
|||||||
/* appearance */
|
/* appearance */
|
||||||
static const unsigned int borderpx = 2; /* border pixel of windows */
|
static const unsigned int borderpx = 4; /* border pixel of windows */
|
||||||
static const unsigned int gappx = 10; /* gaps between windows */
|
static const unsigned int gappx = 25; /* gaps between windows */
|
||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
@ -8,8 +8,8 @@ static const unsigned int systraypinning = 0; /* 0: sloppy systray follows sel
|
|||||||
static const unsigned int systrayspacing = 2; /* systray spacing */
|
static const unsigned int systrayspacing = 2; /* systray spacing */
|
||||||
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
|
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
|
||||||
static const int showsystray = 1; /* 0 means no systray */
|
static const int showsystray = 1; /* 0 means no systray */
|
||||||
static const char *fonts[] = { "monospace:size=16", "Font Awesome 5 Free Solid:size=16"};
|
static const char *fonts[] = { "mono:size=16", "Font Awesome 5 Free Solid:size=16"};
|
||||||
static const char dmenufont[] = "monospace:size=16";
|
static const char dmenufont[] = "mono:size=16";
|
||||||
static const char col_gray1[] = "#222222";
|
static const char col_gray1[] = "#222222";
|
||||||
static const char col_gray2[] = "#444444";
|
static const char col_gray2[] = "#444444";
|
||||||
static const char col_gray3[] = "#bbbbbb";
|
static const char col_gray3[] = "#bbbbbb";
|
||||||
@ -35,8 +35,6 @@ static const Rule rules[] = {
|
|||||||
{ "League of Legends", NULL, NULL, 1 << 3, True, 0 },
|
{ "League of Legends", NULL, NULL, 1 << 3, True, 0 },
|
||||||
{ "TeamSpeak 3", NULL, NULL, 1 << 3, False, 0 },
|
{ "TeamSpeak 3", NULL, NULL, 1 << 3, False, 0 },
|
||||||
{ "keepassxc", NULL, NULL, 1 << 7, False, 0 },
|
{ "keepassxc", NULL, NULL, 1 << 7, False, 0 },
|
||||||
{ "Kodi", NULL, NULL, 1 << 7, False, 0 },
|
|
||||||
{ "TeamViewer", NULL, NULL, 1 << 8, False, 0 },
|
|
||||||
{ "obs", NULL, NULL, 1 << 8, False, 0 },
|
{ "obs", NULL, NULL, 1 << 8, False, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -83,8 +81,8 @@ static const char *screenswitcher[] = { "screen-switcher", "NULL" };
|
|||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{0, 0x1008ff02, spawn, SHCMD ("light -A 10")},
|
{0, 0x1008ff02, spawn, SHCMD ("sudo light -A 10")},
|
||||||
{0, 0x1008ff03, spawn, SHCMD ("light -U 10")},
|
{0, 0x1008ff03, spawn, SHCMD ("sudo light -U 10")},
|
||||||
{0, 0x1008ff11, spawn, SHCMD ("ponymix decrease 5")},
|
{0, 0x1008ff11, spawn, SHCMD ("ponymix decrease 5")},
|
||||||
{0, 0x1008ff12, spawn, SHCMD ("ponymix toggle")},
|
{0, 0x1008ff12, spawn, SHCMD ("ponymix toggle")},
|
||||||
{0, 0x1008ff13, spawn, SHCMD ("ponymix increase 5")},
|
{0, 0x1008ff13, spawn, SHCMD ("ponymix increase 5")},
|
||||||
|
10
dwm_status
10
dwm_status
@ -7,7 +7,6 @@ xset -dpms&
|
|||||||
redshift -l 52.2327:18.3036 -t 6500:3200&
|
redshift -l 52.2327:18.3036 -t 6500:3200&
|
||||||
#compton&
|
#compton&
|
||||||
nm-applet --sm-disable&
|
nm-applet --sm-disable&
|
||||||
#/usr/local/bin/st -e "/bin/fish"&
|
|
||||||
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; new-window -n HTOP 'htop'\; new-window -n MUSIC 'cmus'"&
|
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; new-window -n HTOP 'htop'\; new-window -n MUSIC 'cmus'"&
|
||||||
firefox&
|
firefox&
|
||||||
thunderbird&
|
thunderbird&
|
||||||
@ -15,10 +14,9 @@ thunderbird&
|
|||||||
megasync&
|
megasync&
|
||||||
dunst -config&
|
dunst -config&
|
||||||
#/usr/bin/ibus-daemon -d&
|
#/usr/bin/ibus-daemon -d&
|
||||||
#sh /home/yorune/.xsessionrc&
|
|
||||||
transmission-daemon&
|
transmission-daemon&
|
||||||
pl&
|
pl&
|
||||||
getforecast&
|
#getforecast&
|
||||||
|
|
||||||
testweather() {
|
testweather() {
|
||||||
[ "$(stat -c %y "/home/yorune/.weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && ping -q -c 1 1.1.1.1 >/dev/null && curl -s "wttr.in/$location" > "/home/yorune/.weatherreport" && notify-send "🌞 Weather" "New weather forecast for today."
|
[ "$(stat -c %y "/home/yorune/.weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && ping -q -c 1 1.1.1.1 >/dev/null && curl -s "wttr.in/$location" > "/home/yorune/.weatherreport" && notify-send "🌞 Weather" "New weather forecast for today."
|
||||||
@ -45,12 +43,11 @@ printf "%s %s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down//
|
|||||||
}
|
}
|
||||||
|
|
||||||
print_temp(){
|
print_temp(){
|
||||||
echo -e " $(sensors | awk '/Core 0/ {print $3}') +$(nvidia-smi -q -d temperature | grep -i "GPU Current" |sed -r 's/GPU Current Temp ://'| sed -r 's/ C//' |sed -e 's/^[ \t]*//').0°C"
|
echo -e " $(sensors | awk '/Core 0/ {print $3}') +$(sudo nvidia-smi -q -d temperature | grep -i "GPU Current" |sed -r 's/GPU Current Temp ://'| sed -r 's/ C//' |sed -e 's/^[ \t]*//').0°C"
|
||||||
}
|
}
|
||||||
|
|
||||||
print_date(){
|
print_date(){
|
||||||
echo -e " $(date +"%d/%m %H:%M")"
|
echo -e " $(date +"%d/%m %H:%M")"
|
||||||
#echo -e " $(date +"%m-%d %H:%M")"
|
|
||||||
}
|
}
|
||||||
print_mail(){
|
print_mail(){
|
||||||
RESULT=$(echo "$(du -a ~/.mailbox/*/inbox/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)")
|
RESULT=$(echo "$(du -a ~/.mailbox/*/inbox/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)")
|
||||||
@ -125,6 +122,7 @@ esac
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
#xsetroot -name "$(print_temp) | $(usageData) | $(testweather) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
#xsetroot -name "$(print_temp) | $(usageData) | $(testweather) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||||
xsetroot -name "$(testweather) |$(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
#xsetroot -name " $(testweather) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||||
|
xsetroot -name "$(print_temp) | $(usageData) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user