Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invert script optimizations #362

Merged
merged 4 commits into from
Apr 1, 2020
Merged

Invert script optimizations #362

merged 4 commits into from
Apr 1, 2020

Conversation

UnixParadigm
Copy link
Contributor

List of changes:

  • Removed unnecessary if statement and unnecessary /dev/null redirect on line 19
  • Line 26 can use argless printf rather than echo -n
  • Error verbose prints in red and to STDERR rather than to STDOUT
    • (could change it back to print errors to STDOUT for compat)
  • Textually replaced compton with picom where applicable
  • Removed unnecessary semicolons after exit commands
  • Replaced backticks with $()

I could've/likely missed a few things, however the script still seems runs the same for me.

Removed unnecessary if statement and unnecessary /dev/null redirect on line 19
Line 26 can use argless printf rather than echo -n
Error verbose prints in red and to STDERR rather than to STDOUT
Textually replaced compton with picom where applicable.
Removed unnecessary semicolons after exit commands

I might've missed/screwed something but lets hope that isnt the case 😎
Missed a textual remnant of compton, whoops
Missed a few more comptons in comments
@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #362 into next will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             next     #362      +/-   ##
==========================================
+ Coverage   32.39%   32.40%   +0.01%     
==========================================
  Files          46       46              
  Lines        8523     8523              
==========================================
+ Hits         2761     2762       +1     
+ Misses       5762     5761       -1     
Impacted Files Coverage Δ
src/x.h 21.05% <0.00%> (-57.90%) ⬇️
src/utils.h 52.63% <0.00%> (-21.06%) ⬇️
src/log.h 56.25% <0.00%> (-12.50%) ⬇️
src/picom.c 65.69% <0.00%> (+0.09%) ⬆️
src/opengl.h 14.28% <0.00%> (+14.28%) ⬆️
src/common.h 42.85% <0.00%> (+28.57%) ⬆️
src/win.h 41.66% <0.00%> (+41.66%) ⬆️

Error verbose for lack of X Display variable now uses stderr function
@yshui
Copy link
Owner

yshui commented Apr 1, 2020

Looks good to me.

Thanks!

@yshui yshui merged commit 85086bc into yshui:next Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants