diff --git a/bin/gpe b/bin/gpe index 0728367..5ed9ebf 100755 --- a/bin/gpe +++ b/bin/gpe @@ -6,19 +6,15 @@ function encrypt() { } function decrypt() { local fn="$1" - if [ ${fn: -4} == ".asc" ] - then - gpg -d -o ${fn%%.asc} $@ + then gpg -d -o ${fn%%.asc} $@ elif [ ${fn: -4} == ".gpg" ] - then - gpg -d -o ${fn%%.gpg} $@ + then gpg -d -o ${fn%%.gpg} $@ fi } -## Logic case "$1" in enc|e) shift; encrypt $@ ;; dec|d) shift; decrypt $@ ;; - *) echo "Error." ;; + *) echo "Error." ;; esac diff --git a/config/openbox/README.md b/config/openbox/README.md deleted file mode 100644 index df7ce89..0000000 --- a/config/openbox/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Openbox - -![](screen.png) ---------------- - -### Install -```bash -sudo pacman -S openbox tint2 -``` - -### Install theme -```bash -mkdir ~/.theme -tar -zxf nten.tar.gz -C ~/.themes -``` diff --git a/config/openbox/autostart b/config/openbox/autostart deleted file mode 100755 index 1df2036..0000000 --- a/config/openbox/autostart +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -feh --randomize --bg-scale ~/Pictures/wallp & -tint2 -c ~/.config/openbox/tint2rc & -picom -b & diff --git a/config/openbox/menu.xml b/config/openbox/menu.xml deleted file mode 100644 index a65dc9f..0000000 --- a/config/openbox/menu.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - code - - - - - kitty -e nvim - - - - - - - - firefox - - - - - google-chrome-stable - - - - - discord - - - - - telegram-desktop - - - - - dropbox - - - - - - - - ~/.applications/simplenote.appimage - - - - - ~/.applications/joplin.appimage - - - - - ~/.applications/todoist.appimage - - - - - zathura - - - - - - - - kitty -e ranger - - - - - pcmanfm - - - - - - - - obconf - - - - - lxapperance - - - - - tint2conf - - - - - - - - - - - - - - - - - - - - yes - - - - - - kitty - - - google-chrome-stable - - - code - - - rofi -show drun -theme ntenV2 - - - - - - - - - - - diff --git a/config/openbox/nten.tar.gz b/config/openbox/nten.tar.gz deleted file mode 100644 index f461c1c..0000000 Binary files a/config/openbox/nten.tar.gz and /dev/null differ diff --git a/config/openbox/rc.xml b/config/openbox/rc.xml deleted file mode 100644 index 435a8d6..0000000 --- a/config/openbox/rc.xml +++ /dev/null @@ -1,414 +0,0 @@ - - - - 10 - 20 - - - yes - no - yes - no - 70 - no - - - Smart -
yes
- Primary - 1 -
- - nten - NLIMC - yes - yes - - sans - 8 - bold - normal - - - sans - 8 - bold - normal - - - sans - 9 - normal - normal - - - sans - 9 - normal - normal - - - sans - 9 - bold - normal - - - sans - 9 - bold - normal - - - - 1 - 1 - - Desktop - - 0 - - - yes - Nonpixel - Center - - 10 - 10 - - - - 0 - 0 - 0 - 0 - - - BottomLeft - 0 - 0 - no - Above - Vertical - no - 300 - 300 - Middle - - - C-g - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kitty - - - - - google-chrome-stable - - - - - 1 - 500 - 400 - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - no - - - - - - - - - - - yes - - - - - - - - - - - - - - - - - - client-menu - - - - - - - top - - - - - - - left - - - - - - - right - - - - - - - bottom - - - - - - - client-menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - client-menu - - - - - - - client-menu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - vertical - - - - - horizontal - - - - - - - - - - - - - - - - - previous - - - - - next - - - - - previous - - - - - next - - - - - previous - - - - - next - - - - - - - - - - - - - - - root-menu - - - - - - - previous - - - - - - menu.xml - 200 - no - 100 - 400 - yes - yes - - -
diff --git a/config/openbox/screen.png b/config/openbox/screen.png deleted file mode 100644 index 5d97c73..0000000 Binary files a/config/openbox/screen.png and /dev/null differ diff --git a/config/openbox/script/volume b/config/openbox/script/volume deleted file mode 100755 index 653360e..0000000 --- a/config/openbox/script/volume +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; } -VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)" - -case $1 in - percent) - if CHK_MUTE &> /dev/null - then - echo "" - else - echo " $VOLUME%" - fi - ;; - up) amixer sset Master 2%+ ;; - down) amixer sset Master 2%- ;; - mute) amixer sset Master toggle ;; -esac diff --git a/config/openbox/script/wifi-signal b/config/openbox/script/wifi-signal deleted file mode 100755 index 6129d50..0000000 --- a/config/openbox/script/wifi-signal +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')" -echo " $SIGNAL%" diff --git a/config/openbox/tint2rc b/config/openbox/tint2rc deleted file mode 100644 index 4474a98..0000000 --- a/config/openbox/tint2rc +++ /dev/null @@ -1,270 +0,0 @@ -#---- Generated by tint2conf 3de0 ---- -# See https://gitlab.com/o9000/tint2/wikis/Configure for -# full documentation of the configuration options. -#------------------------------------- -# Gradients -#------------------------------------- -# Backgrounds -# Background 1: Active taskbar, Battery, Clock, Launcher, Systray, Tooltip -rounded = 0 -border_width = 0 -border_sides = TBLR -border_content_tint_weight = 0 -background_content_tint_weight = 0 -background_color = #262a2b 100 -border_color = #222222 0 -background_color_hover = #000000 80 -border_color_hover = #000000 0 -background_color_pressed = #000000 80 -border_color_pressed = #000000 0 - -# Background 2: Active task -rounded = 0 -border_width = 0 -border_sides = TBLR -border_content_tint_weight = 0 -background_content_tint_weight = 0 -background_color = #008dcd 100 -border_color = #272727 0 -background_color_hover = #272727 70 -border_color_hover = #272727 0 -background_color_pressed = #272727 70 -border_color_pressed = #272727 0 - -# Background 3: Urgent task -rounded = 0 -border_width = 0 -border_sides = TBLR -border_content_tint_weight = 0 -background_content_tint_weight = 0 -background_color = #ff6c6b 60 -border_color = #d98282 0 -background_color_hover = #ff6c6b 60 -border_color_hover = #d98282 0 -background_color_pressed = #ff6c6b 60 -border_color_pressed = #d98282 0 - -# Background 4: Default task, Executor -rounded = 0 -border_width = 0 -border_sides = TBLR -border_content_tint_weight = 0 -background_content_tint_weight = 0 -background_color = #262a2b 100 -border_color = #242424 0 -background_color_hover = #242424 60 -border_color_hover = #242424 0 -background_color_pressed = #242424 60 -border_color_pressed = #242424 0 - -# Background 5: Iconified task -rounded = 0 -border_width = 0 -border_sides = TBLR -border_content_tint_weight = 0 -background_content_tint_weight = 0 -background_color = #252525 60 -border_color = #252525 0 -background_color_hover = #252525 60 -border_color_hover = #252525 0 -background_color_pressed = #252525 60 -border_color_pressed = #252525 0 - -#------------------------------------- -# Panel -panel_items = TESEC -panel_size = 100% 24 -panel_margin = 0 0 -panel_padding = 0 0 0 -panel_background_id = 0 -wm_menu = 1 -panel_dock = 0 -panel_pivot_struts = 0 -panel_position = top center horizontal -panel_layer = top -panel_monitor = all -panel_shrink = 0 -autohide = 0 -autohide_show_timeout = 0.3 -autohide_hide_timeout = 1.5 -autohide_height = 1 -strut_policy = follow_size -panel_window_name = tint2 -disable_transparency = 0 -mouse_effects = 0 -font_shadow = 0 -mouse_hover_icon_asb = 100 0 10 -mouse_pressed_icon_asb = 100 0 0 -scale_relative_to_dpi = 0 -scale_relative_to_screen_height = 0 - -#------------------------------------- -# Taskbar -taskbar_mode = single_desktop -taskbar_hide_if_empty = 0 -taskbar_padding = 0 0 0 -taskbar_background_id = 0 -taskbar_active_background_id = 1 -taskbar_name = 0 -taskbar_hide_inactive_tasks = 0 -taskbar_hide_different_monitor = 0 -taskbar_hide_different_desktop = 0 -taskbar_always_show_all_desktop_tasks = 0 -taskbar_name_padding = 0 0 -taskbar_name_background_id = 0 -taskbar_name_active_background_id = 0 -taskbar_name_font = Droid Sans Bold 8 -taskbar_name_font_color = #d1d1d1 100 -taskbar_name_active_font_color = #aaaaaa 100 -taskbar_distribute_size = 0 -taskbar_sort_order = none -task_align = left - -#------------------------------------- -# Task -task_text = 1 -task_icon = 0 -task_centered = 1 -urgent_nb_of_blink = 20 -task_maximum_size = 180 0 -task_padding = 8 6 8 -task_font = Droid Sans Bold 8 -task_tooltip = 1 -task_thumbnail = 0 -task_thumbnail_size = 210 -task_font_color = #cccccc 100 -task_active_font_color = #ffffff 100 -task_urgent_font_color = #cccccc 100 -task_iconified_font_color = #cccccc 80 -task_icon_asb = 100 0 0 -task_active_icon_asb = 100 0 0 -task_urgent_icon_asb = 100 0 0 -task_iconified_icon_asb = 80 0 0 -task_background_id = 4 -task_active_background_id = 2 -task_urgent_background_id = 3 -task_iconified_background_id = 5 -mouse_left = toggle_iconify -mouse_middle = close -mouse_right = none -mouse_scroll_up = none -mouse_scroll_down = none - -#------------------------------------- -# System tray (notification area) -systray_padding = 8 0 12 -systray_background_id = 1 -systray_sort = right2left -systray_icon_size = 18 -systray_icon_asb = 100 0 0 -systray_monitor = 1 -systray_name_filter = - -#------------------------------------- -# Launcher -launcher_padding = 8 0 16 -launcher_background_id = 1 -launcher_icon_background_id = 0 -launcher_icon_size = 16 -launcher_icon_asb = 100 0 0 -launcher_icon_theme_override = 0 -startup_notifications = 0 -launcher_tooltip = 0 -launcher_item_app = /usr/share/applications/google-chrome.desktop -launcher_item_app = /usr/share/applications/kitty.desktop -launcher_item_app = ~/.local/share/applications/todoist.desktop -launcher_item_app = /usr/share/applications/visual-studio-code.desktop - -#------------------------------------- -# Clock -time1_format = %H:%M -time2_format = -time1_font = Droid Sans Bold 8 -time1_timezone = -time2_timezone = -clock_font_color = #d1d1d1 100 -clock_padding = 8 4 -clock_background_id = 1 -clock_tooltip = -clock_tooltip_timezone = -clock_lclick_command = gsimplecal -clock_rclick_command = gsimplecal -clock_mclick_command = -clock_uwheel_command = -clock_dwheel_command = - -#------------------------------------- -# Battery -battery_tooltip = 1 -battery_low_status = 25 -battery_low_cmd = notify-send "battery low" -battery_full_cmd = -bat1_font = Droid Sans Bold 8 -bat2_font = Droid Sans Bold 8 -battery_font_color = #d1d1d1 100 -bat1_format = -bat2_format = -battery_padding = 2 0 -battery_background_id = 1 -battery_hide = 96 -battery_lclick_command = -battery_rclick_command = -battery_mclick_command = -battery_uwheel_command = -battery_dwheel_command = -ac_connected_cmd = -ac_disconnected_cmd = - -#------------------------------------- -# Executor 1 -execp = new -execp_command = $HOME/.script/volume percent -execp_interval = 1 -execp_has_icon = 0 -execp_cache_icon = 1 -execp_continuous = 0 -execp_markup = 1 -execp_lclick_command = $HOME/.config/openbox/script/volume mute -execp_rclick_command = -execp_mclick_command = -execp_uwheel_command = $HOME/.config/openbox/script/volume up -execp_dwheel_command = $HOME/.config/openbox/script/volume down -execp_font = Droid Sans Bold 8 -execp_font_color = #d1d1d1 100 -execp_padding = 8 0 -execp_background_id = 4 -execp_centered = 0 -execp_icon_w = 0 -execp_icon_h = 0 - -#------------------------------------- -# Executor 2 -execp = new -execp_command = $HOME/.config/openbox/script/wifi-signal -execp_interval = 5 -execp_has_icon = 0 -execp_cache_icon = 1 -execp_continuous = 0 -execp_markup = 1 -execp_lclick_command = -execp_rclick_command = -execp_mclick_command = -execp_uwheel_command = -execp_dwheel_command = -execp_font = Droid Sans Bold 8 -execp_font_color = #d1d1d1 100 -execp_padding = 8 0 -execp_background_id = 4 -execp_centered = 0 -execp_icon_w = 0 -execp_icon_h = 0 - -#------------------------------------- -# Tooltip -tooltip_show_timeout = 1 -tooltip_hide_timeout = 0 -tooltip_padding = 6 6 -tooltip_background_id = 1 -tooltip_font_color = #d1d1d1 100 -tooltip_font = Droid Sans Bold 8 - diff --git a/config/ranger/rc.conf b/config/ranger/rc.conf index dd6a4c6..8302117 100644 --- a/config/ranger/rc.conf +++ b/config/ranger/rc.conf @@ -22,13 +22,14 @@ set save_console_history false set scroll_offset 4 #== Mappings +map @ shell $SHELL # go to map gc cd ~/code +map gn cd ~/notes map gd cd ~/Documents map gw cd ~/Downloads map g. cd ~/.dotfiles -map @ shell $SHELL # delete map dD delete @@ -39,11 +40,11 @@ map tab_shift 1 map tab_shift -1 # archive -map sa shell zip -r archive.zip %s -map ss shell tar -czvf archive.tar.gz %s -map sd shell 7z a archive.7z %s -map se shell extract %s +map sa shell zip -r archive.zip %s +map ss shell tar -czvf archive.tar.gz %s +map sd shell 7z a archive.7z %s +map se shell extract %s # gpg -map ee shell gpe enc %s -map ed shell gpe dec %s +map ee shell gpe enc %s +map ed shell gpe dec %s