Updated config, added README and clean script
This commit is contained in:
parent
52f0f8d1ad
commit
0715f8b16b
6 changed files with 62 additions and 12 deletions
21
README.MD
Normal file
21
README.MD
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# 2ndbeam's cringe config
|
||||
## Packages
|
||||
```
|
||||
$ sudo pacman -S river lua lua-posix wlr-randr \
|
||||
waylock swaybg alacritty wofi \
|
||||
slurp grim wl-clipboard waybar \
|
||||
mpd mpc vimix-cursors fish
|
||||
```
|
||||
## Setup
|
||||
In config root directory run:
|
||||
```
|
||||
$ fish ./setup.fish
|
||||
```
|
||||
This will create symlinks to config files in inner directories.
|
||||
|
||||
Do not move files, otherwise symlinks won't work.
|
||||
|
||||
To remove symlinks run:
|
||||
```
|
||||
$ fish ./clean.fish
|
||||
```
|
||||
24
clean.fish
Executable file
24
clean.fish
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
# This script removes all symlinks in ~/.config that were added by setup.fish.
|
||||
set ignored ls (string split ' ' (cat ignored))
|
||||
set lscommand (string join ' --hide=' $ignored)
|
||||
set directories (eval $lscommand)
|
||||
|
||||
for directory in $directories
|
||||
set confdir ~/.config/$directory
|
||||
if ! test -d $confdir
|
||||
echo Directory $confdir does not exist. Skipping...
|
||||
continue
|
||||
end
|
||||
|
||||
set content (ls $confdir)
|
||||
for file in $content
|
||||
if test -L $confdir/$file
|
||||
rm $confdir/$file
|
||||
echo Removed $confdir/$file.
|
||||
else
|
||||
echo $confdir/$file is not symlink. Skipping...
|
||||
end
|
||||
end
|
||||
end
|
||||
1
ignored
Normal file
1
ignored
Normal file
|
|
@ -0,0 +1 @@
|
|||
ignored setup.fish clean.fish README.MD
|
||||
|
|
@ -94,7 +94,7 @@ local river_options = {
|
|||
['border-color-focused'] = '0xeceff4',
|
||||
['border-color-unfocused'] = '0x81a1c1',
|
||||
['border-color-urgent'] = '0xbf616a',
|
||||
['xcursor-theme'] = { 'Bibata-Modern-Ice', 24 },
|
||||
['xcursor-theme'] = { 'Vimix-cursors', 24 },
|
||||
['background-color'] = '0x2e3440',
|
||||
|
||||
-- Other options
|
||||
|
|
@ -189,12 +189,6 @@ local mappings = {
|
|||
key = 'Q',
|
||||
command = 'exit',
|
||||
},
|
||||
-- Super+Shift+X to lock the screen
|
||||
{
|
||||
mod = { 'Super', 'Shift' },
|
||||
key = 'X',
|
||||
command = { 'spawn', 'swaylock' },
|
||||
},
|
||||
-- Super+{J,K} to focus next/previous view in the layout stack
|
||||
{
|
||||
mod = 'Super',
|
||||
|
|
|
|||
16
setup.fish
16
setup.fish
|
|
@ -1,18 +1,28 @@
|
|||
#!/usr/bin/fish
|
||||
# This script makes symlinks to configuration files in directories
|
||||
set directories (ls --hide=setup.fish)
|
||||
|
||||
# This script makes symlinks to configuration files in inner directories
|
||||
set ignored ls (string split ' ' (cat ignored))
|
||||
set lscommand (string join ' --hide=' $ignored)
|
||||
set directories (eval $lscommand)
|
||||
|
||||
for directory in $directories
|
||||
set confdir ~/.config/$directory
|
||||
if ! test -d $confdir
|
||||
mkdir ~/.config/$directory
|
||||
echo Created directory ~/.config/$directory.
|
||||
end
|
||||
|
||||
set content (ls $directory)
|
||||
for file in $content
|
||||
if ! test -e $confdir/$file
|
||||
ln -s (pwd)/$directory/$file $confdir/$file
|
||||
echo Created $confdir/$file.
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Specific configs procedures
|
||||
rename init.lua init ~/.config/river/init.lua
|
||||
if test -e ~/.config/river/init.lua
|
||||
rename init.lua init ~/.config/river/init.lua
|
||||
echo Renamed ~/.config/river/init.lua to init.
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"output": "HDMI-A-1",
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 30,
|
||||
"height": 32,
|
||||
"spacing": 4,
|
||||
"modules-left": [
|
||||
"river/tags"
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
"output": "eDP-2",
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 30,
|
||||
"height": 32,
|
||||
"spacing": 4,
|
||||
"modules-left": [
|
||||
"river/tags"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue