Compare commits
9 Commits
fc4bcb1f0b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ada0604178 | |||
| 85c0cd8691 | |||
| 1fdbf50a02 | |||
| 75b7c1f998 | |||
| 481734c291 | |||
| 8f78497f56 | |||
| 4db2c3461e | |||
| 6189aec9b5 | |||
| d85455d6c8 |
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
unset export_paths
|
unset export_paths
|
||||||
export_paths+=("${HOME}/dotfiles/scripts")
|
export_paths+=("${HOME}/dotfiles/scripts")
|
||||||
|
export_paths+=("${HOME}/dotfiles/desktop-files")
|
||||||
export_paths+=("/opt/jlink")
|
export_paths+=("/opt/jlink")
|
||||||
export_paths+=("${HOME}/.cargo/bin")
|
export_paths+=("${HOME}/.cargo/bin")
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
# to find scripts and utilities
|
# to find scripts and utilities
|
||||||
|
|
||||||
export_paths=("${HOME}/dotfiles/scripts")
|
export_paths=("${HOME}/dotfiles/scripts")
|
||||||
|
export_paths+=("${HOME}/dotfiles/desktop-files")
|
||||||
export_paths+=("${HOME}/tools/jlink")
|
export_paths+=("${HOME}/tools/jlink")
|
||||||
|
|
||||||
for entry in ${export_paths[@]}; do
|
for entry in ${export_paths[@]}; do
|
||||||
|
|||||||
+2
-2
@@ -63,8 +63,8 @@ fi
|
|||||||
# because `libreWolf` is ambiguous for tab completion
|
# because `libreWolf` is ambiguous for tab completion
|
||||||
if $(which librewolf &>/dev/null); then
|
if $(which librewolf &>/dev/null); then
|
||||||
alias firefox='librewolf'
|
alias firefox='librewolf'
|
||||||
elif $(which LibreWolf.AppImage &>/dev/null); then
|
elif $(which librewolf.appimage &>/dev/null); then
|
||||||
alias firefox='LibreWolf.AppImage'
|
alias firefox='librewolf.appimage'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# short forms for tmux commands
|
# short forms for tmux commands
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=netbrowser
|
Name=firefox
|
||||||
Comment=launch zegonix browser of choice
|
Comment=launch zegonix browser of choice
|
||||||
Exec=librewolf.appimage
|
Exec=bash start-browser.sh
|
||||||
Type=Application
|
Type=Application
|
||||||
|
Categories=Network;WebBrowser;
|
||||||
@@ -168,8 +168,8 @@ bindsym $mod+o move workspace to output up
|
|||||||
bindsym $mod+p move workspace to output right
|
bindsym $mod+p move workspace to output right
|
||||||
|
|
||||||
# take screenshots
|
# take screenshots
|
||||||
bindsym $mod+s exec --no-startup-id maim -suo | xclip -selection clipboard -t image/png
|
bindsym $mod+s exec --no-startup-id bash x11-screenshot.sh --clipboard
|
||||||
bindsym $mod+Shift+s exec --no-startup-id maim -suo "${HOME}/Pictures/screenshots/$(date '+%Y%m%d_%H%M%S').png"
|
bindsym $mod+Shift+s exec --no-startup-id bash x11-screenshot.sh
|
||||||
|
|
||||||
# use pactl for media keys
|
# use pactl for media keys
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
@@ -197,7 +197,7 @@ mouse_warping none
|
|||||||
############################
|
############################
|
||||||
|
|
||||||
# load background image
|
# load background image
|
||||||
exec --no-startup-id feh --bg-fill ~/dotfiles/images/game_scene.jpg
|
exec --no-startup-id feh --bg-fill ~/dotfiles/images/pixel-windows.png
|
||||||
|
|
||||||
# window border style
|
# window border style
|
||||||
default_border pixel 2
|
default_border pixel 2
|
||||||
@@ -205,8 +205,8 @@ default_floating_border pixel 0
|
|||||||
for_window [class=".*"] border pixel 1
|
for_window [class=".*"] border pixel 1
|
||||||
|
|
||||||
# gaps between windows and screen border
|
# gaps between windows and screen border
|
||||||
gaps inner 4 px
|
gaps inner 6 px
|
||||||
gaps outer 2 px
|
gaps outer 0 px
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 108 KiB |
@@ -23,7 +23,7 @@ function __search-history {
|
|||||||
READLINE_POINT=$((0 + ${#command}))
|
READLINE_POINT=$((0 + ${#command}))
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$-" == *i* ]] && which fzf &>/dev/null; then
|
if [[ "$-" == *i* ]] && $(which fzf &>/dev/null); then
|
||||||
bind -r "\C-r"
|
bind -r "\C-r"
|
||||||
bind -x '"\C-r": __search-history'
|
bind -x '"\C-r": __search-history'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if $(which librewolf &>/dev/null); then
|
||||||
|
librewolf
|
||||||
|
elif $(which librewolf.appimage); then
|
||||||
|
librewolf.appimage
|
||||||
|
else
|
||||||
|
notify-send "[ERROR]" "Failed to start browser"
|
||||||
|
fi
|
||||||
Executable
+26
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
unset use_clipboard
|
||||||
|
if [[ "$1" == "-c" ]] || [[ "$1" == "--clipboard" ]]; then
|
||||||
|
use_clipboard="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! $(which maim &>/dev/null); then
|
||||||
|
notify-send "[screenshot]" "missing \`maim\`"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [[ -n "${use_clipboard}" ]] && ! $(which xclip &>/dev/null); then
|
||||||
|
notify-send "[screenshot]" "missing \`xclip\`"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${use_clipboard}" ]]; then
|
||||||
|
screenshots_path="${HOME}/screenshots"
|
||||||
|
echo "${screenshots_path}"
|
||||||
|
if [[ ! -d "${screenshots_path}" ]]; then
|
||||||
|
mkdir "${screenshots_path}"
|
||||||
|
fi
|
||||||
|
maim -suo "${screenshots_path}/$(date '+%Y%m%d_%H%M%S').png"
|
||||||
|
else
|
||||||
|
maim -suo | xclip -selection clipboard -t image/png
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user