Skip to content

Commit

Permalink
✨ Changed .scripts to .local/bin for global execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaqanbaryan committed Mar 5, 2024
1 parent 622bad4 commit 27903be
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 15 deletions.
7 changes: 5 additions & 2 deletions ansible/packages/fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
connection: local
tasks:
- name: "Install vazir font"
ansible.builtin.command:
cmd: "echo https://github.com/rastikerdar/vazir-code-font/releases"
community.general.pacman:
executable: "yay"
name:
- "vazir-code-fonts"
state: "present"

- name: "Install nerd fonts"
ansible.builtin.command:
Expand Down
4 changes: 2 additions & 2 deletions ansible/packages/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- name: "Link scripts"
ansible.builtin.file:
src: "$PWD/../../scripts"
dest: "~/.scripts"
dest: "~/.local/bin"
state: "link"
force: true

Expand All @@ -19,7 +19,7 @@
- name: "Enable lockscreen cron"
ansible.builtin.cron:
name: "bing-lockscreen"
job: "$HOME/.scripts/bing-wallpaper.sh"
job: "bing-wallpaper"
minute: "0"

- name: "Enable mirrorlist cron"
Expand Down
2 changes: 2 additions & 0 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ set fish_cursor_visual underscore
## Rust
set -Ua fish_user_paths $HOME/.cargo/bin

set -x PATH "$PATH:$HOME/.local/bin"

## Default applications
set -gx BROWSER google-chrome-stable
set -gx EDITOR nvim
10 changes: 5 additions & 5 deletions helix/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ e = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"
"/" = ["search_selection", "global_search"]
c = ":bc"
o = "file_picker_in_current_buffer_directory"
g = ":sh ~/.scripts/helix.sh git $(~/.scripts/helix.sh getfileinfo)"
e = ":sh ~/.scripts/helix.sh explorer $(~/.scripts/helix.sh getfileinfo)"
B = ":sh ~/.scripts/helix.sh blame $(~/.scripts/helix.sh getfileinfo)"
r = ":pipe ~/.scripts/helix.sh getfileinfo"
x = ":sh ~/.scripts/helix.sh copy $(~/.scripts/helix.sh getfileinfo | awk \"{ print \\$1 }\")"
g = ":sh helix-commands git $(helix-commands getfileinfo)"
e = ":sh helix-commands explorer $(helix-commands getfileinfo)"
B = ":sh helix-commands blame $(helix-commands getfileinfo)"
r = ":pipe helix-commands getfileinfo"
x = ":sh helix-commands copy $(helix-commands getfileinfo | awk \"{ print \\$1 }\")"

[keys.normal."'"]
"." = "repeat_last_motion"
Expand Down
4 changes: 2 additions & 2 deletions hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bind = $mainMod, q, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, V, togglefloating,
bind = $mainMod, d, exec, rofi -show drun -theme $HOME/.config/rofi/launchers/type-5/style-2.rasi | xargs swaymsg exec --
bind = $mainMod, escape, exec, $HOME/.scripts/powermenu.sh
bind = $mainMod, escape, exec, $HOME/.local/bin/powermenu
bind = $mainMod, w, togglegroup,
bind = $mainMod, f, fullscreen, 1

Expand Down Expand Up @@ -204,7 +204,7 @@ exec-once = blueman-applet
exec-once = nm-applet --indicator
exec-once = waypaper --restore --backend swww
exec-once = swaync
exec-once = swayidle -w timeout 60 '$HOME/.scripts/lock.sh --grace 10 --fade-in 2' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$HOME/.scripts/lock.sh'
exec-once = swayidle -w timeout 60 '$HOME/.local/bin/lock --grace 10 --fade-in 2' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$HOME/.local/bin/lock'

# trigger when the switch is turning on
bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "LVDS-1,1366x768,1920x0,auto"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bing-wallpaper.sh → scripts/bing-wallpaper
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# 0 */6 * * * sh ~/.scripts/bing-wallpaper.sh
# 0 */6 * * * sh bing-wallpaper

# exit on error
set -e
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/powermenu.sh → scripts/powermenu
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ case ${chosen} in
run_cmd --hibernate
;;
$lock)
~/.scripts/lock.sh
$HOME/.local/bin/lock
;;
$suspend)
run_cmd --suspend
Expand Down
2 changes: 1 addition & 1 deletion sway/config.d/keybindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ floating_modifier $mod normal

# Shutdown
set $wmexit swaymsg exit
set $lock $HOME/.config/sway/scripts/lock.sh
set $lock lock
set $shutdown-menu System (l)lock, (e) exit, (s) suspend, (r) reboot, (End) shutdown
set $clipboard-history cliphist list | rofi -dmenu -matching fuzzy -sort-method fzf -sort -theme "$HOME/.config/rofi/launchers/type-1/style-11.rasi" -p "Clipboard" | cliphist decode | wl-copy
set $password-manager-ssh $HOME/dotfiles/bitwarden-rofi/bwmenu --folder-id=b028c1cb-2c6f-4e9b-888e-b071007964d2 --no-clear --auto-lock '-1' -- -matching fuzzy -sort-method fzf -sort -theme $HOME/.config/rofi/launchers/type-1/style-11.rasi
Expand Down
2 changes: 1 addition & 1 deletion sway/config.d/output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bindswitch lid:off output LVDS-1 enable
# resumed. It will also lock your screen before your computer goes to sleep.
#
exec swayidle -w \
timeout 60 '$HOME/.config/sway/scripts/lock.sh --grace 10 --fade-in 2' \
timeout 60 'lock --grace 10 --fade-in 2' \
timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '$lock --grace 10 --fade-in 2'

0 comments on commit 27903be

Please sign in to comment.