This commit is contained in:
lelgenio 2019-12-05 11:28:02 -03:00
parent 5452ce7352
commit 1674718506
13 changed files with 99 additions and 35 deletions

View File

@ -130,7 +130,7 @@ FULL_INSTALL=false
pkgs+=' syncthing nextcloud-client '
pkgs+=' deluge deezloader-remix-bin smloadr'
# Media
pkgs+=' mpv mpd mpc ncmpcpp mpv-mpris mpdris2 playerctl'
pkgs+=' sxiv mpv mpd mpc ncmpcpp mpv-mpris mpdris2 playerctl'
pkgs+=' blender gimp kdenlive picard image_optim'
# Office
pkgs+=' libreoffice-fresh libreoffice-fresh-pt-br hunspell-pt-br papirus-libreoffice-theme'

View File

@ -40,8 +40,8 @@ set -x PAGER less
end
if test $XDG_VTNR -eq 1 #faster like this
if systemctl -q is-active graphical.target && test ! $DISPLAY
# esway > .swaylog
ei3 > .i3log
esway > .swaylog
# ei3 > .i3log
end
end

View File

@ -58,6 +58,9 @@
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'"
# }}}
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
# Moving around: {{{
#
# Move your focus around
@ -175,8 +178,8 @@
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym $mod+Shift+x exec musmenu delete
bindsym $mod+Shift+s exec musmenu search
bindsym $mod+Shift+x exec musmenu delete
bindsym $mod+Shift+s exec musmenu search
# }}}
# }}}
@ -230,7 +233,7 @@
# Telegram
exec --no-startup-id telegram-desktop
# Music Player Daemon
exec 'mpd --no-daemon'
exec mpd --no-daemon
exec mpDris2
# Use i3lock
exec xss-lock --transfer-sleep-lock -- i3lock --nofork
@ -239,7 +242,7 @@
# PulseAudio icon
exec pasystray --notify=all --volume-max=100 --volume-inc=5
# Ouput manager
exec autoranr --change
exec autorandr --change
#}}}
# vim:filetype=i3config:foldmethod=marker

View File

@ -34,8 +34,6 @@ transparent = #00000000
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 27
;offset-x = 1%
;offset-y = 1%
; radius = 6.0
fixed-center = true
@ -62,25 +60,15 @@ font-5 = siji:pixelsize=10;1
modules-left = i3
modules-center = date
modules-right = mpd xbacklight battery pulseaudio-control
modules-right = mpd weather xbacklight battery pulseaudio-control
tray-position = right
tray-padding = 1
;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
cursor-click = pointer
; cursor-scroll = ns-resize
; }}}
; [module/xkeyboard]{{{
[module/xkeyboard]
@ -229,14 +217,13 @@ interval = 5
format-font = 2
date =
date-alt = " %Y-%m-%d"
date-alt = " %Y/%m/%d"
time = %H:%M
time-alt = %H:%M:%S
; format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
; format-overline = #0a6cf5
format-overline = #0a6cf5
label = %date% %time%
@ -335,6 +322,13 @@ menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
; }}}
[module/weather]
type = custom/script
exec = ~/.local/bin/forecast
; interval = 100
; label = %output%
; format-overline = #ff0000
; [settings]{{{
[settings]
format-padding = 1
@ -350,4 +344,5 @@ screenchange-reload = true
margin-top = 5
margin-bottom = 5
; }}}
; vim:ft=dosini:foldmethod=marker

View File

@ -1,3 +1,4 @@
#!/bin/sh
set -e
mbsync -aq
NEW=$(find .mail/INBOX{,.{Contas,Faculdade,Git,Trabalhos}}/{cur,new} -type f |
@ -5,4 +6,8 @@ NEW=$(find .mail/INBOX{,.{Contas,Faculdade,Git,Trabalhos}}/{cur,new} -type f |
echo $NEW | sed 's/^0$//'
if [ "$(ps -o comm= $PPID)" != "waybar" ] && pgrep waybar>/dev/null;then
pkill -SIGRTMIN+4 waybar
fi
# vim:ft=sh

View File

@ -36,4 +36,4 @@ esac
text="$MIN $MAX $TEMP°C $WEATHER"
# tooltip="$(curl -s wttr.in | paste -d'\\n' -s )"
tooltip=""
printf '{"text":"%s","tooltip":"%s"}' "$text" "$tooltip"
echo "$text"

View File

@ -2,7 +2,11 @@
set -e
MENU(){
rofi -dmenu -i $@
if [ -n "$SWAYSOCK" ];then
wofi -dIk/dev/null "$@"
else
rofi -dmenu -i $@
fi
}
search(){
@ -15,7 +19,7 @@ search(){
artist=$(echo "$music" | perl -pe 's/(.*) : (.*)/\1/')
title=$(echo "$music" | perl -pe 's/(.*) : (.*)/\2/')
mpc searchplay artist "$artist" title "$title"
mpc --quiet searchplay artist "$artist" title "$title"
}
delete(){
@ -24,8 +28,8 @@ delete(){
if [ "$answer" == "$current" ]
then
trash "$answer"
mpc next
mpc update
mpc --quiet next
mpc --quiet update
fi
}

View File

@ -1,8 +1,13 @@
#!/bin/bash
MENU(){
rofi -dmenu -i $@
if [ -n "$SWAYSOCK" ];then
wofi -dIk/dev/null "$@"
else
rofi -dmenu -i $@
fi
}
opts="Fone\nSpeaker\nHDMI"
out=$(echo -e $opts | MENU -p "Saida:")
vol=$(pamixer --get-volume)

View File

@ -5,7 +5,7 @@
# \__ \\ V V / (_| | |_| |
# |___/ \_/\_/ \__,_|\__, |
# |___/
exec swaylock
# Variables {{{
#
# Logo key.
@ -263,7 +263,7 @@
# Telegram
exec telegram-desktop
# Music Player Daemon
exec 'mpd --no-daemon'
exec mpd --no-daemon
exec mpDris2
# lock screen after a period of inactivity execp for fullscreen
for_window [class=.*] inhibit_idle fullscreen

View File

@ -8,7 +8,7 @@
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": ["clock"],
"modules-right": ["mpd", "pulseaudio", "network", "battery","custom/weather","custom/mail", "custom/updates", "tray"],
"modules-right": ["custom/recording","mpd", "pulseaudio", "network", "battery","custom/weather","custom/mail", "custom/updates", "tray"],
//Modules configuration
"sway/workspaces": {
// "disable-scroll": true,
@ -125,14 +125,13 @@
"on-click": "pavucontrol"
},
"custom/weather": {
"return-type":"json",
"exec": "$HOME/.config/waybar/custom/weather",
"exec": "forecast",
"interval": 1800
},
"custom/mail": {
"format":"{} ",
"tooltip":false,
"exec": "$HOME/.config/waybar/custom/mail",
"exec": "checkmail",
"on-click": "kitty neomutt; pkill -SIGRTMIN+4 waybar", // update system
"signal": 4,
"interval": 1800
@ -143,6 +142,11 @@
"exec": "yay -Sy > /dev/null; yay -Qqu | wc -l | sed 's/^0$//'",
"on-click": "kitty yay; pkill -SIGRTMIN+8 waybar", // update system
"signal": 8
},
"custom/recording": {
"exec": "echo ",
"exec-if": "pgrep wf-recorder",
"interval": 2
}
}

View File

@ -68,7 +68,6 @@ window#waybar.empty {
#backlight,
#network,
#pulseaudio,
#custom-media,
#custom-weather,
#custom-mail,
#custom-updates,
@ -157,6 +156,11 @@ label:focus {
/*background-color: #2980b9;*/
}
#custom-recording {
border-top: 2px solid #ee9957;
color: #ee4040;
}
#tray {
border-top: 2px solid #2980b9;
/*background-color: #2980b9;*/

2
sway/.config/wofi/config Normal file
View File

@ -0,0 +1,2 @@
width=800
height=400

View File

@ -0,0 +1,42 @@
/* window { */
/* border-radius:5px; */
/* } */
window {
/* margin: 5px; */
/* border: 2px solid red; */
background-color: #cc5757;
}
#input {
margin: 5px;
/* border: 2px solid blue; */
background-color: #252525;
color:white;
}
/* #inner-box { */
/* margin: 20px; */
/* border: 2px solid yellow; */
/* background-color: #303030; */
/* } */
#outer-box {
margin: 2px;
padding: 10px 10px 0 10px;
/* border: 2px solid green; */
/* background-color: green; */
background-color: #303030;
}
/* #scroll { */
/* margin: 5px; */
/* border: 2px solid orange; */
/* background-color: orange; */
/* } */
/* #text { */
/* /1* margin: 5px; *1/ */
/* /1* border: 2px solid cyan; *1/ */
/* /1* background-color: cyan; *1/ */
/* color:white; */
/* } */