Skip to content

Commit

Permalink
Use full paths
Browse files Browse the repository at this point in the history
  • Loading branch information
leomeinel committed May 1, 2023
1 parent 7b4cf7d commit 7082fdc
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .bash_logout
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Stop ssh-agent if it is started
[[ -n "$SSH_AUTH_SOCK" ]] &&
eval "$(ssh-agent -k)"
eval "$(/usr/bin/ssh-agent -k)"

# Clear screen
[[ "$SHLVL" = 1 ]] &&
Expand Down
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ UPDATES="$(/usr/bin/checkupdates | /usr/bin/wc -l)"
/usr/bin/echo -e "\e[31m$UPDATES\e[0m packages are out of date!"

# Prompt
eval "$(starship init bash)"
eval "$(/usr/bin/starship init /usr/bin/bash)"
2 changes: 1 addition & 1 deletion .config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
fn.system({'/usr/bin/git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
Expand Down
8 changes: 4 additions & 4 deletions .config/nwg-bar/bar.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[
{
"label": "Lock",
"exec": "swaylock -f -c 001d2021",
"exec": "/usr/bin/swaylock -f -c 001d2021",
"icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
},
{
"label": "Logout",
"exec": "sway-logout",
"exec": "/usr/local/bin/sway-logout",
"icon": "/usr/share/nwg-bar/images/system-log-out.svg"
},
{
"label": "Reboot",
"exec": "systemctl reboot",
"exec": "/usr/bin/systemctl reboot",
"icon": "/usr/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"exec": "systemctl -i poweroff",
"exec": "/usr/bin/systemctl -i poweroff",
"icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
}
]
21 changes: 9 additions & 12 deletions .config/sway/config.d/autostart
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
# Dbus
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec dbus-update-activation-environment --all 2>/dev/null
exec /usr/bin/systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec /usr/bin/dbus-update-activation-environment --all 2>/dev/null

# polkit-gnome
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

# Gnome Keyring
exec gnome-keyring-daemon --daemonize --start --components=gpg,pkcs11,secrets,ssh
exec /usr/bin/gnome-keyring-daemon --daemonize --start --components=gpg,pkcs11,secrets,ssh

# Notifications
exec swaync
exec aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log

# Touchpad gestures
exec libinput-gestures-setup start
exec /usr/bin/swaync
exec /usr/bin/aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log

# Outputs
exec kanshi
exec /usr/bin/kanshi

# XDG Desktop Portal
exec /usr/libexec/xdg-desktop-portal
exec /usr/lib/xdg-desktop-portal

# Tray
exec nm-applet --indicator
exec nextcloud --background
exec /usr/bin/nm-applet --indicator
exec /usr/bin/nextcloud --background
2 changes: 1 addition & 1 deletion .config/sway/config.d/bar
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bar
bar {
swaybar_command waybar
swaybar_command /usr/bin/waybar
}
6 changes: 3 additions & 3 deletions .config/sway/config.d/idle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Idle
exec swayidle -w \
timeout 300 'swaylock -f -c 001d2021' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 001d2021'
timeout 300 '/usr/bin/swaylock -f -c 001d2021' \
timeout 600 '/usr/bin/swaymsg "output * dpms off"' resume '/usr/bin/swaymsg "output * dpms on"' \
before-sleep '/usr/bin/swaylock -f -c 001d2021'
18 changes: 9 additions & 9 deletions .config/sway/config.d/key-bindings
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ set $down j
set $up k
set $right l
## Preferred applications
set $term alacritty
set $menu wofi --show run
set $rectangle-screenshot grim -g "$(slurp)" "$(xdg-user-dir PICTURES)/Screenshots/$(date).png"
set $screenshot grim "$(xdg-user-dir PICTURES)/Screenshots/$(date).png"
set $term "$TERMINAL"
set $menu /usr/bin/wofi --show run
set $rectangle-screenshot /usr/bin/grim -g "$(/usr/bin/slurp)" "$(/usr/bin/xdg-user-dir PICTURES)/Screenshots/$(/usr/bin/date).png"
set $screenshot /usr/bin/grim "$(/usr/bin/xdg-user-dir PICTURES)/Screenshots/$(/usr/bin/date).png"
set $volume-down ~/.config/sway/scripts/volume.sh --down
set $volume-up ~/.config/sway/scripts/volume.sh --up
set $brightness-down brightnessctl set 5%-
set $brightness-up brightnessctl set 5%+
## Sway
set $sway-exit nwg-bar
set $brightness-down /usr/bin/brightnessctl set 5%-
set $brightness-up /usr/bin/brightnessctl set 5%+
set $sway-exit /usr/bin/nwg-bar
set $sway-notifications /usr/bin/swaync-client -t -sw

# Applications
## Start terminal
Expand All @@ -44,7 +44,7 @@ set $sway-exit nwg-bar
## Enter resize mode
bindsym $mod+r mode "resize"
## Notifications
bindsym $super+n exec swaync-client -t -sw
bindsym $super+n exec $sway-notifications

# Workspaces
## Switch to workspace
Expand Down
4 changes: 2 additions & 2 deletions .config/sway/config.d/reload
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Reload notification center
exec_always swaync-client -R
exec_always swaync-client -rs
exec_always /usr/bin/swaync-client -R
exec_always /usr/bin/swaync-client -rs
10 changes: 5 additions & 5 deletions .config/sway/config.d/theme
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ default_floating_border pixel 2
hide_edge_borders smart

# GTK Theme
exec gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita'
exec gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Dark'
exec gsettings set org.gnome.desktop.wm.preferences theme 'Arc-Dark'
exec gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
exec /usr/bin/gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita'
exec /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Dark'
exec /usr/bin/gsettings set org.gnome.desktop.wm.preferences theme 'Arc-Dark'
exec /usr/bin/gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'

# Background
exec swaybg -i /usr/share/wallpapers/Custom/content/simple_tree.png
exec /usr/bin/swaybg -i /usr/share/wallpapers/Custom/content/simple_tree.png
10 changes: 5 additions & 5 deletions .config/sway/scripts/volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@
# URL: https://www.gnu.org/licenses/gpl-3.0-standalone.html
# -----
###
CURRENT=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -e '%' | sed 's/ //g' | cut -d "/" -f 2 | sed 's/%//')
CURRENT=$(/usr/bin/pactl get-sink-volume @DEFAULT_SINK@ | /usr/bin/grep -e '%' | /usr/bin/sed 's/ //g' | /usr/bin/cut -d "/" -f 2 | /usr/bin/sed 's/%//')

up() {
new="$(($CURRENT + 5))"
if [ $new -lt 100 ]; then
pactl set-sink-volume @DEFAULT_SINK@ $new%
/usr/bin/pactl set-sink-volume @DEFAULT_SINK@ $new%
else
pactl set-sink-volume @DEFAULT_SINK@ 100%
/usr/bin/pactl set-sink-volume @DEFAULT_SINK@ 100%
fi
}

down() {
new="$(($CURRENT - 5))"
if [ $new -gt 0 ]; then
pactl set-sink-volume @DEFAULT_SINK@ $new%
/usr/bin/pactl set-sink-volume @DEFAULT_SINK@ $new%
else
pactl set-sink-volume @DEFAULT_SINK@ 0%
/usr/bin/pactl set-sink-volume @DEFAULT_SINK@ 0%
fi
}

Expand Down
8 changes: 4 additions & 4 deletions .config/waybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"🔊"
]
},
"on-click": "pavucontrol"
"on-click": "/usr/bin/pavucontrol"
},
"backlight": {
"format": "{percent}% {icon}",
Expand Down Expand Up @@ -86,9 +86,9 @@
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"exec": "/usr/bin/swaync-client -swb",
"on-click": "/usr/bin/swaync-client -t -sw",
"on-click-right": "/usr/bin/swaync-client -d -sw",
"escape": true
}
}

0 comments on commit 7082fdc

Please sign in to comment.