first-commit

This commit is contained in:
Raphael Jacobs 2022-10-09 16:04:17 +02:00
commit c17526db0a
11 changed files with 2011 additions and 0 deletions

23
emptty Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/sh
Selection=False
Exec=dbus-launch sway
Environment=wayland
. /etc/profile
. ~/.profile
export MOZ_DBUS_REMOTE=1
export MOZ_ENABLE_WAYLAND=1
export $(dbus-launch)
export XDG_SCREENSHOTS_DIR=/home/raphy/Pictures/Screenshots/
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=sway
# export GTK_IM_MODULE=uim
# export QT_IM_MODULE=ibus
exec dbus-launch sway

31
fish/config.fish Executable file
View File

@ -0,0 +1,31 @@
# opam configuration
#source /home/raphy/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
# fish_add_path /home/raphy/.cabal/bin /home/raphy/.cargo/bin /home/raphy/.local/bin
set EDITOR nvim
# mirroring .profile
set MOZ_ENABLE_WAYLAND 1
# FZF
set fzf_preview_file_cmd preview
set fzf_preview_dir_cmd exa --all --color=always
fzf_configure_bindings --directory=\cf
#prompt
set --global hydro_symbol_prompt "λ❱"
set --global hydro_color_prompt brblue
set --global hydro_color_pwd bryellow
source ~/.ghcup/env
# direnv hook fish | source
navi widget fish | source
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
# eval /home/raphy/miniconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

7
fish/fish_plugins Executable file
View File

@ -0,0 +1,7 @@
jorgebucaran/fisher
jethrokuan/z
franciscolourenco/done
jorgebucaran/autopair.fish
PatrickF1/fzf.fish
edc/bass
jorgebucaran/hydro

12
fish/functions/mkcdir.fish Executable file
View File

@ -0,0 +1,12 @@
function mkcdir -d "Create a directory and set CWD" -w mkdir
command mkdir $argv
if test $status = 0
switch $argv[(count $argv)]
case '-*'
case '*'
cd $argv[(count $argv)]
return
end
end
end

View File

@ -0,0 +1,41 @@
#!/usr/bin/fish
function preview -d "Preview any kind of file"
command kitty +kitten icat --clear --transfer-mode file
set c (curpos)
echo $c
switch $argv
case "*.md"
mdcat $argv
# case "*.plist"
# plutil -p $argv
case "*"
set bat_args --color always
set mime (file -b --mime-type $argv)
switch $mime[1]
case "text/*"
bat $bat_args $argv
case application/json
bat $bat_args -l json $argv
case image/{gif,jpeg,png,svg+xml,webp}
# timg -p kitty -g (math $COLUMNS - 2)x$LINES $argv
kitty +kitten icat --transfer-mode file --place (math -s0 $COLUMNS)x(math -s0 $LINES /2 )@(math $COLUMNS + 4)x(math -s0 $LINES /2) --scale-up $argv
# echo hi
# case application/{msword,vnd.{ms-excel,ms-powerpoint,openxmlformats-officedocument.{presentationml.presentation,spreadsheetml.sheet,wordprocessingml.document}},pdf} image/{heic,x-icns} video/{mp4,x-matroska}
# set tmp (mktemp -d)
# qlmanage -t -s (math $COLUMNS x 8) -o $tmp $argv &>/dev/null
# preview $tmp/*
# rm -r $tmp
case application/{gzip,java-archive,x-{7z-compressed,bzip2,chrome-extension,rar,tar,xar},zip}
7z l $argv | tail -n +12
case "*"
file -b $argv
echo "($mime[1])"
end
end
end

1516
kitty/kitty.conf Normal file

File diff suppressed because it is too large Load Diff

2
mako/config Normal file
View File

@ -0,0 +1,2 @@
max-history=4
default-timeout=5000

View File

@ -0,0 +1,36 @@
# NAKTIME color scheme
color-link default "#c9c9c9,#141414"
color-link color-column "#1B1B1B"
color-link comment "#5F5A60"
color-link constant "#4caccf"
#color-link constant.number "#CF6A4C"
color-link constant.specialChar "#DDF2A4"
color-link constant.string "#8F9D6A"
color-link current-line-number "#868686,#1B1B1B"
color-link cursor-line "#1B1B1B"
color-link divider "#1E1E1E"
color-link error "#D2A8A1"
color-link diff-added "#00AF00"
color-link diff-modified "#FFAF00"
color-link diff-deleted "#D70000"
color-link gutter-error "#9B859D"
color-link gutter-warning "#9B859D"
color-link identifier "#3f829b"
color-link identifier.class "#dad085"
color-link identifier.var "#7587A6"
color-link indent-char "#515151"
color-link line-number "#868686,#1B1B1B"
color-link current-line-number "#868686,#141414"
color-link preproc "#E0C589"
color-link special "#E0C589"
color-link statement "#69b2cd"
color-link statusline "#515151,#1E1E1E"
color-link symbol "#5b99ac"
color-link symbol.brackets "#F8F8F8"
color-link symbol.operator "#69cdca"
color-link symbol.tag "#5b99ac"
color-link tabbar "#F2F0EC,#2D2D2D"
color-link todo "#8B98AB"
color-link type "#98dff9"
color-link type.keyword "#69cdca"
color-link underlined "#8996A8"

291
sway/config Normal file
View File

@ -0,0 +1,291 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term kitty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu wofi --d -G --allow-images --show drun | xargs swaymsg exec --
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
set $pictures_path $HOME/Pictures
set $wallpapers_path $pictures_path/Walls
output * bg `find $wallpapers_path -type f | shuf -n 1` fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
#
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000 -i $pictures_path/lockscreen.jpg' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000 -i $pictures_path/lockscreen.jpg'
bindsym $mod+x exec swaylock -f -c 000000 -i $pictures_path/lockscreen.jpg
for_window [app_id=".*"] inhibit_idle focus
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while ~/scripts/status.sh; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
#
# Gaps and borders:
#
smart_borders on
gaps inner 8px
gaps outer 8px
#
# Notification daemon
#
# exec mako
#
# redshift
#
# exec gammastep -l 44.4056:8.9463
#
# Screenshots
#
# bindsym exec grimshot save active
bindsym Print exec notify-send $(grimshot save area)
bindsym Ctrl+Print exec notify-send $(grimshot copy area)
# bindsym Mod4+Mod1+p exec grimshot save output
# bindsym 4+Ctrl+p exec grimshot save window
#
# Volume control
#
# exec --no-startup-id pipewire
# exec pipewire-pulse
# exec pactl -- set-sink-volume 50%
bindsym XF86AudioRaiseVolume exec --no-startup-id "notify-send $(pamixer -i 10)"
bindsym XF86AudioLowerVolume exec --no-startup-id "notify-send $(pamixer -d 10)"
#
# Screen brightness
#
exec light -S 5
input "type:keyboard" {
xkb_layout us,it
xkb_variant ,nodeadkeys
xkb_options grp:rctrl_toggle
}
# automount
# exec udiskie --automount --notify &
# exec blueman-applet
# exec_always --no-startup-id runsvdir "/home/raphy/service/"
## Autostart everything
exec ~/scripts/autostart.sh
include /etc/sway/config.d/*

5
wofi/config Normal file
View File

@ -0,0 +1,5 @@
mode=drun
insensitive=true
allow_images=true
term=kitty
prompt=tototo

47
wofi/style.css Normal file
View File

@ -0,0 +1,47 @@
*{
font-family: "mononoki";
}
window {
background-color: #728387;
}
#input {
margin: 5px;
border-radius: 0px;
border: none;
border-bottom: 0px solid black;
background-color: #1A1826;
color: white;
}
#inner-box {
margin: 5px;
background-color: #161320;
}
#outer-box {
margin: 2px;
padding: 5px;
background-color: #161320;
/* border-radius: 15px 15px 15px 15px; */
}
#text {
margin: 5px;
color: #9dd4e0;
/* border: 2px solid cyan; */
/* background-color: cyan; */
}
/* #entry:nth-child(even){
background-color: #404552;
} */
#entry:selected {
background-color: #1A1826;
}
#text:selected {
text-decoration-color: white;
}