-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from mr-mustash/u/pking/everything_else_updated
Bulk update from personal laptop
- Loading branch information
Showing
19 changed files
with
93 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set -Ux PYENV_ROOT $HOME/.pyenv | ||
fish_add_path $PYENV_ROOT/bin | ||
|
||
pyenv init - | source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
function brew-update --description="update brew and cleanup after itself" | ||
set -lx bold (tput bold) | ||
set -lx normal (tput sgr0) | ||
|
||
echo -e "$bold Brew Update $normal" | ||
command brew update | ||
|
||
echo -e "$bold Brew Upgrde $normal" | ||
command brew upgrade | ||
|
||
echo -e "$bold Brew Cleanup $normal" | ||
command brew cleanup --prune-prefix | ||
command brew cleanup | ||
command brew cleanup -s | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function git_checkout_default -d 'git pull origin refs/remotes/origin/HEAD' | ||
if git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null 1>&2 | ||
set -l default_branch (git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') | ||
echo "git checkout $default_branch" | ||
else | ||
echo "Not a git directory!" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function git_diff_default -d 'git pull origin refs/remotes/origin/HEAD' | ||
if git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null 1>&2 | ||
set -l default_branch (git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') | ||
echo "git diff $default_branch" | ||
else | ||
echo "Not a git directory!" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function git_pull_origin_default -d 'git pull origin refs/remotes/origin/HEAD' | ||
if git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null 1>&2 | ||
set -l default_branch (git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') | ||
echo "git pull origin $default_branch" | ||
else | ||
echo "Not a git directory!" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
tilde/.config/fish/prompt/prompt_functions/__fish_prompt_git_checkout_default_abbr.fish
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
local movies = {} | ||
|
||
local previousBrightness = hs.brightness.get() | ||
|
||
-- List of applications to watch | ||
local watchedApps = { | ||
"Movist Pro", | ||
"TV" -- Add other app names here as needed | ||
} | ||
|
||
local function isWatchedApp(name) | ||
for _, appName in ipairs(watchedApps) do | ||
if name == appName then | ||
return true | ||
end | ||
end | ||
return false | ||
end | ||
|
||
local function moviestCall(name, eventType, _) | ||
if isWatchedApp(name) then -- Check if the app is in the watched list | ||
if eventType == hs.application.watcher.activated then | ||
previousBrightness = hs.brightness.get() | ||
_log(string.format("%s activated. Previous brightness was %s.", name, previousBrightness)) | ||
|
||
hs.shortcuts.run("Enable Vivid") | ||
hs.brightness.set(100) | ||
|
||
elseif eventType == hs.application.watcher.deactivated then | ||
_log(string.format("%s deactivated. Restoring brightness to %s.", name, previousBrightness)) | ||
|
||
hs.shortcuts.run("Disable Vivid") | ||
hs.brightness.set(previousBrightness) | ||
end | ||
end | ||
end | ||
|
||
function movies.init() | ||
local initStart = os.clock() | ||
moviestWatcher = hs.application.watcher.new(moviestCall) | ||
moviestWatcher:start() | ||
_log(string.format("%s loaded in %.4f seconds.", debug.getinfo(1, "S").short_src:match("([^/]+)$"), os.clock() - initStart)) | ||
end | ||
|
||
return movies |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.