mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
asdf
This commit is contained in:
parent
29f7fa1e45
commit
b7b981a53e
15 changed files with 98 additions and 223 deletions
|
@ -1,6 +1,6 @@
|
|||
env:
|
||||
# if not set, it supposedly check's if a alacritty entry exists and uses xterm-256color otherwise
|
||||
#TERM: alacritty
|
||||
# TERM: alacritty
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"optOut": false,
|
||||
"lastUpdateCheck": 1591971363597
|
||||
"lastUpdateCheck": 1592421582037
|
||||
}
|
|
@ -1,6 +1,10 @@
|
|||
fish_vi_key_bindings
|
||||
# fish_default_key_bindings
|
||||
|
||||
# disable truecolor for dvtm
|
||||
# set -e fish_term24bit
|
||||
#source /home/leon/.config/fish/gruvbox-colors.fish
|
||||
|
||||
#set -U FZF_TMUX 1
|
||||
set -U FZF_DEFAULT_COMMANDS "--filepath-word --cycle"
|
||||
set -U FZF_PREVIEW_FILE_CMD "head -n 10 | bat --color=always --decorations=never"
|
||||
|
|
|
@ -18,32 +18,32 @@ SETUVAR dangerous_nocmdhist:c\x1ed\x1ell\x1els\x1em\x1es
|
|||
SETUVAR dangerous_pwdstyle:short\x1elong\x1enone
|
||||
SETUVAR dangerous_sessions_active:\x1d
|
||||
SETUVAR dangerous_sessions_active_pid:\x1d
|
||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:00cff7
|
||||
SETUVAR fish_color_autosuggestion:555
|
||||
SETUVAR fish_color_cancel:normal
|
||||
SETUVAR fish_color_command:0087d7
|
||||
SETUVAR fish_color_comment:990000
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_cwd:008000
|
||||
SETUVAR fish_color_cwd_root:800000
|
||||
SETUVAR fish_color_end:009900
|
||||
SETUVAR fish_color_error:ff0000
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_history_current:normal
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
SETUVAR fish_color_match:normal
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:00a6b2
|
||||
SETUVAR fish_color_param:00afff
|
||||
SETUVAR fish_color_param:0087af
|
||||
SETUVAR fish_color_quote:999900
|
||||
SETUVAR fish_color_redirection:00afff
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_search_match:ffff00
|
||||
SETUVAR fish_color_selection:c0c0c0
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_color_user:00ff00
|
||||
SETUVAR fish_color_valid_path:normal
|
||||
SETUVAR fish_greeting:\x1d
|
||||
SETUVAR fish_key_bindings:fish_vi_key_bindings
|
||||
SETUVAR fish_pager_color_completion:\x1d
|
||||
SETUVAR fish_pager_color_completion:normal
|
||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
|
|
27
files/.config/fish/gruvbox-colors.fish
Normal file
27
files/.config/fish/gruvbox-colors.fish
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
set -l orange '#fe8019'
|
||||
set -l aqua '#8ec07c'
|
||||
set -l blue '#83a598'
|
||||
set -l limegreen '#b8bb26'
|
||||
set -l purple '#d3869b'
|
||||
set -l aqua '#8ec07c'
|
||||
set -l gwhite '#ebdbb2'
|
||||
set -l gray2 '#665c54'
|
||||
set -l purple '#d3869b'
|
||||
set -l gray '#a89984'
|
||||
set -l yellow '#fabd2f'
|
||||
|
||||
#set -U fish_color_command $blue
|
||||
#set -U fish_color_normal $gwhite
|
||||
#set -U fish_color_quote $aqua
|
||||
#set -U fish_color_redirection $orange
|
||||
#set -U fish_color_param $aqua
|
||||
#set -U fish_color_comment $gray
|
||||
#set -U fish_color_match $yellow
|
||||
#set -U fish_color_search_match $aqua
|
||||
#set -U fish_color_autosuggestion $gray2
|
||||
#set -U fish_color_cancel $aqua
|
||||
#set fish_color_selection
|
||||
#set fish_color_end
|
||||
#set fish_color_error
|
||||
#set fish_color_operator
|
|
@ -1,7 +1,7 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_key=47
|
||||
sort_direction=1
|
||||
hide_threads=1
|
||||
hide_kernel_threads=1
|
||||
|
|
Binary file not shown.
|
@ -58,7 +58,6 @@ import XMonad.Layout.WindowNavigation ( windowNavigation )
|
|||
import XMonad.Layout.ZoomRow
|
||||
import XMonad.Layout.ThreeColumns
|
||||
import XMonad.Layout.ResizableThreeColumns
|
||||
|
||||
import XMonad.Layout.WindowSwitcherDecoration
|
||||
import XMonad.Layout.DraggingVisualizer
|
||||
|
||||
|
@ -193,7 +192,7 @@ myLayout = avoidStruts
|
|||
((rename "Tall" $ spacingAndGaps $ mouseResizableTile {draggerType = BordersDragger})
|
||||
||| (rename "Horizon" $ spacingAndGaps $ mouseResizableTileMirrored {draggerType = BordersDragger})
|
||||
||| (rename "BSP" $ spacingAndGaps $ borderResize $ emptyBSP)
|
||||
||| (rename "ThreeCol" $ makeTabbed $ spacingAndGaps $ reflectHoriz $ ResizableThreeColMid 1 (3/100) (1/2) [])
|
||||
||| (rename "ThreeCol" $ makeTabbed $ spacingAndGaps $ ResizableThreeColMid 1 (3/100) (1/2) [])
|
||||
||| (rename "TabbedRow" $ makeTabbed $ spacingAndGaps $ zoomRow))
|
||||
|
||||
vertScreenLayouts =
|
||||
|
@ -222,10 +221,9 @@ instance MTog.Transformer WINDOWDECORATION Window where
|
|||
myStartupHook :: X ()
|
||||
myStartupHook = do
|
||||
setWMName "LG3D" -- Java stuff hack
|
||||
spawnOnce "nm-applet &"
|
||||
spawnOnce "udiskie -s &" -- Mount USB sticks automatically. -s is smart systray mode: systray icon if something is mounted
|
||||
--spawnOnce "nm-applet &"
|
||||
--spawnOnce "udiskie -s &" -- Mount USB sticks automatically. -s is smart systray mode: systray icon if something is mounted
|
||||
spawnOnce "xfce4-clipman &"
|
||||
spawnOnce "mailspring --background &"
|
||||
spawnOnce "redshift -P -O 5000 &"
|
||||
spawn "xset r rate 300 50 &" -- make key repeat quicker
|
||||
spawn "/home/leon/.screenlayout/dualscreen-stacked.sh"
|
||||
|
|
15
files/auswahl/auswahlrc
Normal file
15
files/auswahl/auswahlrc
Normal file
|
@ -0,0 +1,15 @@
|
|||
use: rofi -dmenu -i -theme /home/leon/scripts/rofi-scripts/default_theme.rasi
|
||||
|
||||
menu: set-redshift :: -no-custom
|
||||
off => redshift -x
|
||||
medium => redshift -P -O 5000
|
||||
high => redshift -P -O 4500
|
||||
extreme => redshift -P -O 4000
|
||||
|
||||
menu: translate
|
||||
de => notify-send "Translation" "$(trans :de "{{}}" --no-ansi)"
|
||||
en => notify-send "Translation" "$(trans :en "{{}}" --no-ansi)"
|
||||
|
||||
menu: search
|
||||
g => firefox https://google.com?q={{}}
|
||||
yt => firefox https://youtube.com/results?search_query={{}}
|
|
@ -26,14 +26,14 @@ def run_fan_check():
|
|||
# fan_speed = 60
|
||||
# else:
|
||||
# fan_speed = 100
|
||||
if temp < 50:
|
||||
fan_speed = 50
|
||||
if temp < 60:
|
||||
fan_speed = 50
|
||||
elif temp < 70:
|
||||
fan_speed = 50
|
||||
elif temp < 80:
|
||||
fan_speed = 60
|
||||
if temp < 60:
|
||||
fan_speed = 60
|
||||
elif temp < 70:
|
||||
fan_speed = 60
|
||||
elif temp < 80:
|
||||
fan_speed = 70
|
||||
else:
|
||||
fan_speed = 100
|
||||
|
||||
|
|
|
@ -2,10 +2,13 @@
|
|||
|
||||
|
||||
|
||||
groups=$(ls "$HOME/scripts/bookmarks")
|
||||
groups="$(ls "$HOME/scripts/bookmarks")\nauswahl"
|
||||
group_selection=$(echo -e "$groups" | rofi -i -matching fuzzy -p open -dmenu -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
|
||||
if [ "$group_selection" = "auswahl" ]; then
|
||||
auswahl "$(auswahl --list | rofi -dmenu -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -i -no-custom)"
|
||||
else
|
||||
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -matching fuzzy -dmenu -i -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
|
||||
[ -z "$selection" ] && exit 1
|
||||
|
||||
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -matching fuzzy -dmenu -i -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
|
||||
[ -z "$selection" ] && exit 1
|
||||
|
||||
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|
||||
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|
||||
fi
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Mail : adi1090x@gmail.com
|
||||
## Github : @adi1090x
|
||||
## Reddit : @adi1090x
|
||||
|
||||
rofi_command="rofi -theme /home/leon/scripts/rofi-scripts/powermenu.rasi"
|
||||
uptime=$(uptime -p | sed -e 's/up //g')
|
||||
#mem=$( free -h | grep -i mem | awk -F ' ' '{print $3}')
|
||||
cpu=$(sh ~/.config/rofi/bin/usedcpu)
|
||||
memory=$(sh ~/.config/rofi/bin/usedram)
|
||||
|
||||
# Options
|
||||
shutdown="襤"
|
||||
reboot="ﰇ"
|
||||
lock=""
|
||||
suspend="鈴"
|
||||
logout=""
|
||||
|
||||
# Variable passed to rofi
|
||||
options="$shutdown\n$reboot\n$lock\n$suspend\n$logout"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -p "祥 $uptime $cpu $memory " -dmenu -selected-row 2)"
|
||||
case $chosen in
|
||||
$shutdown)
|
||||
systemctl poweroff
|
||||
;;
|
||||
$reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
$lock)
|
||||
i3lock
|
||||
;;
|
||||
$suspend)
|
||||
mpc -q pause
|
||||
amixer set Master mute
|
||||
systemctl suspend
|
||||
;;
|
||||
$logout)
|
||||
openbox --exit
|
||||
;;
|
||||
esac
|
|
@ -1,124 +0,0 @@
|
|||
|
||||
/*
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Mail : adi1090x@gmail.com
|
||||
* Github : @adi1090x
|
||||
* Reddit : @adi1090x
|
||||
*
|
||||
*/
|
||||
|
||||
@import "colors.rasi"
|
||||
|
||||
/* ########### */
|
||||
|
||||
* {
|
||||
/* General */
|
||||
text-font: "Comfortaa 12";
|
||||
icon-font: "Hurmit Nerd Font Mono 32";
|
||||
icon-font-small: "Hurmit Nerd Font Mono 24";
|
||||
|
||||
option-6-listview-spacing: 10px;
|
||||
|
||||
menu-window-padding: 5px 15px;
|
||||
menu-inputbar-margin: 10px 0px;
|
||||
menu-prompt-padding: 10px 20px 10px 20px;
|
||||
menu-prompt-margin: 0px 0px 0px -2px;
|
||||
menu-element-border: 10px;
|
||||
menu-element-padding: 3px 8px -1px -40px;
|
||||
}
|
||||
|
||||
/* ########### */
|
||||
|
||||
#window {
|
||||
width: 29%;
|
||||
height: 20%;
|
||||
}
|
||||
|
||||
/* ########### */
|
||||
|
||||
* {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
font: @icon-font;
|
||||
}
|
||||
|
||||
#horibox {
|
||||
children: [ listview ];
|
||||
}
|
||||
#listview {
|
||||
layout: horizontal;
|
||||
}
|
||||
#element {
|
||||
padding: @option-element-padding;
|
||||
background-color: @background-light;
|
||||
}
|
||||
#element.selected {
|
||||
background-color: @accent;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/* ########### */
|
||||
|
||||
* {
|
||||
font: @text-font;
|
||||
}
|
||||
#window {
|
||||
padding: @menu-window-padding;
|
||||
children: [ inputbar, horibox ];
|
||||
}
|
||||
#inputbar {
|
||||
children: [ textbox-prompt-colon, prompt ];
|
||||
margin: @menu-inputbar-margin;
|
||||
}
|
||||
prompt,
|
||||
textbox-prompt-colon {
|
||||
padding: @menu-prompt-padding;
|
||||
border: 2px;
|
||||
border-color: @accent;
|
||||
}
|
||||
#prompt {
|
||||
margin: @menu-prompt-margin;
|
||||
background-color: @background-light;
|
||||
text-color: @accent;
|
||||
}
|
||||
#textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: "System";
|
||||
background-color: @accent;
|
||||
text-color: @background;
|
||||
}
|
||||
#horibox {
|
||||
padding: 0px;
|
||||
}
|
||||
#listview {
|
||||
spacing: @option-6-listview-spacing;
|
||||
lines: 5;
|
||||
}
|
||||
#element {
|
||||
font: @icon-font;
|
||||
border: @menu-element-border;
|
||||
padding: @menu-element-padding;
|
||||
border-color: @background-light;
|
||||
}
|
||||
#element.selected {
|
||||
border-color: @accent;
|
||||
}
|
||||
element.active,
|
||||
element.selected.urgent {
|
||||
background-color: @on;
|
||||
text-color: @background;
|
||||
border-color: @on;
|
||||
}
|
||||
element.selected.urgent {
|
||||
border-color: @accent;
|
||||
}
|
||||
element.urgent,
|
||||
element.selected.active {
|
||||
background-color: @off;
|
||||
text-color: @background;
|
||||
border-color: @off;
|
||||
}
|
||||
element.selected.active {
|
||||
border-color: @accent;
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/dash
|
||||
openDetailsAction() {
|
||||
echo "Details:surf https://hoogle.haskell.org/?hoogle=$1&scope=package:$2"
|
||||
}
|
||||
|
||||
query=$( echo "h\ng" | rofi -i -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -dmenu )
|
||||
selection=$( echo "$query" | awk '{print $1}' )
|
||||
input=$( echo "$query" | awk '{print $2}' )
|
||||
|
||||
case "$selection" in
|
||||
"h")
|
||||
query=$( echo "$input" | sed 's/ p=.*$//g' )
|
||||
package=$( echo "$input" | sed 's/.*p=//g' )
|
||||
[ "$package" = "$query" ] && package=""
|
||||
|
||||
selection=$( hoogle "$query" | rofi -matching fuzzy -p "select" -i -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -dmenu | sed 's/^\(.*\) :: .*$/\1/' | sed 's/\ /./g' )
|
||||
result=$( echo "$selection" | xargs hoogle --info )
|
||||
notify-send.sh --icon="dialog-information" --action="$(openDetailsAction "$query" "$package")" "Hoogle" "$result"
|
||||
;;
|
||||
"g")
|
||||
$BROWSER "https://google.de/search?q=$input" &
|
||||
;;
|
||||
esac
|
||||
|
19
files/scripts/swallow_app.sh
Executable file
19
files/scripts/swallow_app.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#! /bin/bash
|
||||
|
||||
file="$HOME/.local/share/unhide"
|
||||
app="$1"
|
||||
#target="$2"
|
||||
|
||||
tid=$(xdo id)
|
||||
|
||||
|
||||
hidecurrent() {
|
||||
echo $tid+$app >> $file & xdo hide
|
||||
}
|
||||
|
||||
showlast() {
|
||||
sid=$(cat $file | grep "$app" | awk -F "+" 'END{print $1}')
|
||||
xdo show -r $sid
|
||||
}
|
||||
|
||||
hidecurrent & $@ ; showlast
|
Loading…
Reference in a new issue