From 2f04ec401005dfe407a6e69ddebe77827125d04d Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 8 Jan 2019 18:54:53 -0500 Subject: [PATCH] Set up melonDS config; Fish: modify build, cpugov, mcr, ta; add dot --- .config/fish/functions/build.fish | 4 ++-- .config/fish/functions/cpugov.fish | 12 ++++-------- .config/fish/functions/dot.fish | 4 ++++ .config/fish/functions/mcr.fish | 4 ++-- .config/fish/functions/ta.fish | 4 ++-- .hidden | 1 + .symlinks/melonDS.ini | 1 + melonDS.ini | 1 + 8 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 .config/fish/functions/dot.fish create mode 100644 .hidden create mode 120000 .symlinks/melonDS.ini create mode 120000 melonDS.ini diff --git a/.config/fish/functions/build.fish b/.config/fish/functions/build.fish index 8754f55..bce3a6d 100755 --- a/.config/fish/functions/build.fish +++ b/.config/fish/functions/build.fish @@ -1,4 +1,4 @@ -# Defined in /tmp/fish.SBvuh1/build.fish @ line 2 +# Defined in /tmp/fish.i459zw/build.fish @ line 2 function build s printf \ gp @@ -7,7 +7,7 @@ function build cmake -DCMAKE_INSTALL_PREFIX=/usr . make s make install - meson build + meson --prefix=/usr build ninja -C build sudo ninja -C build install end diff --git a/.config/fish/functions/cpugov.fish b/.config/fish/functions/cpugov.fish index 6eeab65..cf71510 100755 --- a/.config/fish/functions/cpugov.fish +++ b/.config/fish/functions/cpugov.fish @@ -1,14 +1,10 @@ -# Defined in /tmp/fish.EI2lVJ/cpugov.fish @ line 2 +# Defined in /tmp/fish.mndBU3/cpugov.fish @ line 2 function cpugov - set state ( cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ) - set newState "" - echo -e "The current state is [ $state ]" - if [ $state != "performance" ] + echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) + if [ (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) != "performance" ] s -i cpupower frequency-set -g performance >/dev/null - set newState ( cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ) else s cpupower frequency-set -g powersave >/dev/null - set newState ( cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ) end - echo -e "Now in *** $newState *** mode" + echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) end diff --git a/.config/fish/functions/dot.fish b/.config/fish/functions/dot.fish new file mode 100644 index 0000000..4531612 --- /dev/null +++ b/.config/fish/functions/dot.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.zTiFlh/dot.fish @ line 1 +function dot + cd ~/.dotfiles +end diff --git a/.config/fish/functions/mcr.fish b/.config/fish/functions/mcr.fish index 5271014..d271991 100755 --- a/.config/fish/functions/mcr.fish +++ b/.config/fish/functions/mcr.fish @@ -1,4 +1,4 @@ -# Defined in /tmp/fish.SCEnNd/mcr.fish @ line 2 +# Defined in /home/glados/.config/fish/functions/mcr.fish @ line 2 function mcr - eval $D/Games/Minecraft/Server/mcrcon localhost 25575 password $argv + eval $D/Games/Minecraft/Server/mcrcon localhost password end diff --git a/.config/fish/functions/ta.fish b/.config/fish/functions/ta.fish index 6bf9142..f5f5b87 100644 --- a/.config/fish/functions/ta.fish +++ b/.config/fish/functions/ta.fish @@ -1,4 +1,4 @@ -# Defined in /tmp/fish.fhflGN/ta.fish @ line 1 +# Defined in /tmp/fish.FDoq61/ta.fish @ line 2 function ta - tmux attach $argv + tmux attach -t (math 0 + "0$argv[1]") $argv[2..-1] end diff --git a/.hidden b/.hidden new file mode 100644 index 0000000..ebdd08d --- /dev/null +++ b/.hidden @@ -0,0 +1 @@ +melonDS.ini diff --git a/.symlinks/melonDS.ini b/.symlinks/melonDS.ini new file mode 120000 index 0000000..b74f74a --- /dev/null +++ b/.symlinks/melonDS.ini @@ -0,0 +1 @@ +/mnt/LocalDiskD/Games/Emulators/melonDS/melonDS.ini \ No newline at end of file diff --git a/melonDS.ini b/melonDS.ini new file mode 120000 index 0000000..6bf1b12 --- /dev/null +++ b/melonDS.ini @@ -0,0 +1 @@ +.symlinks/melonDS.ini \ No newline at end of file