Skip to content

Commit

Permalink
Adding yay instead of yaourt + battery
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Aug 14, 2019
1 parent 3cc1633 commit 8b4fc9f
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 27 deletions.
4 changes: 1 addition & 3 deletions default.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
~/.i3/config: general/i3config
~/.i3/pad.png: general/pad.png
~/.compton.conf: general/compton.conf
~/.yaourtrc: general/yaourt
~/.gcalclirc: general/gcalclirc
~/.npmrc: general/npmrc
~/.tmux.conf: general/tmux.conf
~/.tmux.conf.local: general/tmux.conf.local
~/.config/termite/config: general/termite.conf
~/.config/yay/config.json: general/yay.json
4 changes: 2 additions & 2 deletions dev.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- shell:
-
command : yaourt --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
command : yay --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
description: Installing java software
stdin: true
stdout: true
Expand All @@ -19,7 +19,7 @@
stdout: true
stderr: true
-
command : yaourt --needed --noconfirm -S sublime-text-dev aur/gitkraken
command : yay --needed --noconfirm -S sublime-text-dev aur/gitkraken
description: Installing java software
stdin: true
stdout: true
Expand Down
53 changes: 53 additions & 0 deletions docs/power.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Power management

```sh
sudo powertop
s-tui
yaourt s-tui
sudo powertop
yaourt bumblebee
yaourt bbswitch
sudo systemctl enable bumblebeed.service
sudo systemctl start bumblebeed.service

sudo powertop

sudo gpasswd -a beaussan bumblebee

xrandr --listproviders
glxspheres64
optirun glxsphere64

bumblebeed --help
optirun glxsphere64

systemctl status bumblebeed

yaourt yay
yay yay
cat /etc/pacman.conf
yay tlp
tlp
sudo systemctl enable tlp.service tlp-sleep.service
sudo systemctl start tlp tlp-sleep.service
yay tlp
```

```sh

cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl enable powertop.service
```
8 changes: 0 additions & 8 deletions general/gcalclirc

This file was deleted.

1 change: 0 additions & 1 deletion general/npmrc

This file was deleted.

4 changes: 2 additions & 2 deletions general/polybar.pkg.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# https://github.com/jaagr/polybar/wiki/User-contributed-modules#archlinux-updates
pac=$(checkupdates-aur | wc -l)
aur=$(cower -u | wc -l)
pac=$(checkupdates | wc -l)
aur=$(checkupdates-aur | wc -l)

check=$((pac + aur))
if [[ "$check" != "0" ]]
Expand Down
2 changes: 0 additions & 2 deletions general/yaourt

This file was deleted.

40 changes: 40 additions & 0 deletions general/yay.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"aururl": "https://aur.archlinux.org",
"buildDir": "$HOME/.cache/yay",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"tarbin": "bsdtar",
"redownload": "no",
"rebuild": "no",
"answerclean": "",
"answerdiff": "",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "votes",
"gitflags": "",
"removemake": "ask",
"requestsplitn": 150,
"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": false,
"combinedupgrade": false,
"useask": false
}
6 changes: 4 additions & 2 deletions general/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ export EDITOR="nvim"
export VISUAL="nvim"
export ZSH_PLUGINS_ALIAS_TIPS_EXCLUDES="_"
export ZSH_PLUGINS_ALIAS_TIPS_EXPAND=1
export ANDROID_HOME=/opt/android-sdk
export ANDROID_HOME=/home/${USER}/Android/Sdk

export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PATH=${PATH}:~/.config/yarn/global/node_modules/.bin/
export PATH=${PATH}:~/.yarn/bin:~/.config/yarn/global/node_modules/.bin/

export BROWSER=/usr/bin/google-chrome-stable

###### Alias

Expand Down Expand Up @@ -95,4 +96,5 @@ source /usr/share/zsh/site-functions/git-flow-completion.zsh

###### Overides

alias ls="lsd"
alias la="ls -alh"
12 changes: 6 additions & 6 deletions setupStd.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@

- shell:
-
command : yaourt --needed --noconfirm -S ttf-monoid ttf-unifont ttf-font-awesome
command : yay --needed --noconfirm -S pacman-contrib ttf-monoid ttf-unifont ttf-font-awesome
description: Installing fonts
stdin: true
stdout: true
stderr: true
-
command : yaourt --needed --noconfirm -S gnu-netcat rofi-git zsh feh i3-gaps-next-git xautolock polybar termite tree i3lock-fancy-git cower compton checkupdates+aur checkupdates-aur lsd ranger-git rofi-git pygmentize fzy xclip evince perl-file-mimeinfo openssh thunar-archive-plugin thunar
command : yay --needed --noconfirm -S gnu-netcat rofi-git zsh feh i3-gaps-next-git xautolock polybar termite tree i3lock-fancy-git cower compton checkupdates+aur checkupdates-aur lsd ranger-git rofi-git pygmentize fzy xclip evince perl-file-mimeinfo openssh thunar-archive-plugin thunar
description: Installing base software
stdin: true
stdout: true
stderr: true
-
command : yaourt --needed --noconfirm -S yarn gitflow-avh gitflow-zshcompletion-avh nodejs jetbrains-toolbox npm nvm neovim
command : yay --needed --noconfirm -S yarn gitflow-avh gitflow-zshcompletion-avh nodejs jetbrains-toolbox npm nvm neovim
description: Installing codding tools
stdin: true
stdout: true
stderr: true
-
command : yaourt --needed --noconfirm -S telegram-desktop spotify-dev slack-desktop
command : yay --needed --noconfirm -S telegram-desktop spotify-dev slack-desktop
description: Installing other software
stdin: true
stdout: true
stderr: true
-
command : yaourt --needed --noconfirm -S docker docker-compose && sudo systemctl enable docker && sudo systemctl start docker && sudo groupadd docker && sudo usermod -a -G docker $USER
command : yay --needed --noconfirm -S docker docker-compose && sudo systemctl enable docker && sudo systemctl start docker && sudo groupadd docker && sudo usermod -a -G docker $USER
description: Installing docker
stdin: true
stdout: true
stderr: true
-
command : yaourt --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
command : yay --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
description: Installing java software
stdin: true
stdout: true
Expand Down
2 changes: 1 addition & 1 deletion zsh.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- shell:
-
command : yaourt --needed --noconfirm -S fzy zsh
command : yay --needed --noconfirm -S fzy zsh
description: Installing fonts
stdin: true
stdout: true
Expand Down

0 comments on commit 8b4fc9f

Please sign in to comment.